|
1165 | 1165 | ] |
1166 | 1166 | }, |
1167 | 1167 | "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", |
1169 | 1169 | "begin": "\\G(?=\\[:(?>[^]:\\\\\"]++|:+(?!])|\\\\{1,3}.?)*+:])", |
1170 | 1170 | "end": "(?!\\G)", |
1171 | 1171 | "name": "meta.character-class.posix.tm", |
|
1175 | 1175 | "name": "meta.character-class.posix.tm invalid.illegal.posix-bracket-type.tm" |
1176 | 1176 | }, |
1177 | 1177 | { |
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", |
1179 | 1179 | "begin": "\\G\\[:\\^?(?=(?>[^]:\\\\\"]|\\\\u\\h{4}|\\\\.?){,20}:])", |
1180 | 1180 | "end": ":]|(?=\")", |
1181 | 1181 | "captures": { "0": { "name": "support.function.tm" } }, |
|
1228 | 1228 | ] |
1229 | 1229 | }, |
1230 | 1230 | { |
1231 | | - "comment": "No ending bracket `:]`", |
| 1231 | + "comment": "No ending bracket `:]` https://github.com/kkos/oniguruma/blob/v6.9.8/src/regparse.c#L6603-L6604", |
1232 | 1232 | "match": "\\G\\[:\\^?(?>alnum|alpha|ascii|blank|cntrl|x?digit|graph|lower|print|punct|space|upper|word)", |
1233 | 1233 | "name": "invalid.illegal.posix-bracket-type.tm" |
1234 | 1234 | }, |
1235 | 1235 | { |
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", |
1237 | 1237 | "include": "#character-class-literal" |
1238 | 1238 | } |
1239 | 1239 | ] |
|
0 commit comments