Skip to content

Commit d914282

Browse files
committed
Add links for broken character-class parsing
1 parent dd50822 commit d914282

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

syntaxes/regex.tmLanguage.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@
11651165
]
11661166
},
11671167
"character-class-posix": {
1168-
"comment": "oniguruma checks for ending bracket `:]` accounting for escapes",
1168+
"comment": "oniguruma checks for ending bracket `:]` accounting for escapes. https://github.com/kkos/oniguruma/blob/v6.9.8/src/regparse.c#L5393-L5416",
11691169
"begin": "\\G(?=\\[:(?>[^]:\\\\\"]++|:+(?!])|\\\\{1,3}.?)*+:])",
11701170
"end": "(?!\\G)",
11711171
"name": "meta.character-class.posix.tm",
@@ -1175,7 +1175,7 @@
11751175
"name": "meta.character-class.posix.tm invalid.illegal.posix-bracket-type.tm"
11761176
},
11771177
{
1178-
"comment": "[:...:] [^...] oniguruma also checks for ending bracket `:]` within 20 characters, NOT accounting for escapes",
1178+
"comment": "[:...:] [^...] oniguruma also checks for ending bracket `:]` within 20 characters, NOT accounting for escapes. https://github.com/kkos/oniguruma/blob/v6.9.8/src/regparse.c#L6616-L6629",
11791179
"begin": "\\G\\[:\\^?(?=(?>[^]:\\\\\"]|\\\\u\\h{4}|\\\\.?){,20}:])",
11801180
"end": ":]|(?=\")",
11811181
"captures": { "0": { "name": "support.function.tm" } },
@@ -1228,12 +1228,12 @@
12281228
]
12291229
},
12301230
{
1231-
"comment": "No ending bracket `:]`",
1231+
"comment": "No ending bracket `:]` https://github.com/kkos/oniguruma/blob/v6.9.8/src/regparse.c#L6603-L6604",
12321232
"match": "\\G\\[:\\^?(?>alnum|alpha|ascii|blank|cntrl|x?digit|graph|lower|print|punct|space|upper|word)",
12331233
"name": "invalid.illegal.posix-bracket-type.tm"
12341234
},
12351235
{
1236-
"comment": "oniguruma treats `[:^` as literal characters if there is no name and no ending bracket `:]` within 20 characters or before a colon `:` or square bracket `]`",
1236+
"comment": "oniguruma treats `[:^` as literal characters if there is no name and no ending bracket `:]` within 20 characters or before a colon `:` or square bracket `]` https://github.com/kkos/oniguruma/blob/v6.9.8/src/regparse.c#L6631",
12371237
"include": "#character-class-literal"
12381238
}
12391239
]

0 commit comments

Comments
 (0)