Skip to content

Commit a9718d4

Browse files
committed
Fix invalid groups within negative lookbehind
1 parent c855c52 commit a9718d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntaxes/regex.tmLanguage.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
},
326326
{
327327
"comment": "(...)",
328-
"begin": "\\((?!\\?[-~<=:!{|IimxWDSPy]|\\*[A-Za-z_])",
328+
"begin": "\\((?!\\?[-~<>=:!{(|IimxWDSPy]|\\*[A-Za-z_])",
329329
"end": "\\)|(?=\")",
330330
"captures": { "0": { "name": "invalid.illegal.tm markup.underline" } },
331331
"patterns": [
@@ -351,7 +351,7 @@
351351
},
352352
{
353353
"comment": "(...)",
354-
"begin": "\\((?!\\?[-~<=:!{|IimxWDSPy]|\\*[A-Za-z_])",
354+
"begin": "\\((?!\\?[-~<>=:!{(|IimxWDSPy]|\\*[A-Za-z_])",
355355
"end": "\\)|(?=\")",
356356
"captures": { "0": { "name": "invalid.illegal.tm markup.underline" } },
357357
"patterns": [

0 commit comments

Comments
 (0)