August 11, 2025 at 10:09 am #30366
Participant
Yes, thank you for asking!
While the formatting is a lot better, there is the following shortcoming:
Rather than not applying a rule,
(?^#_text_c==0)
only postpones a rule’s formatting until c==0
.
This can lead to incorrect formatting.
Example case (simplified regex):
Rule 1) Format javascript strings (?^#_text_c==0)".*?"
and
Rule 2) Format javascript template literals (?^#_text_c==0)\/.+?\/
On line 2:
The formatting between the «; "
» is incorrect.
And rule 1 is not applied to «"a string"
»
If it were possible to set (?^#_text_c==0)
to ignore (i.e. not apply) the rule rather than just postpone its formatting, then this shortcoming would be solved.