File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ module.exports = grammar({
193193 ) ,
194194
195195 _escape_sequence : $ => choice (
196- prec ( 2 , token . immediate ( seq ( '\\' , / [ ^ a b f n r t v x u ' \" \\ \? ] / ) ) ) ,
196+ prec ( 2 , token . immediate ( seq ( '\\' , / [ ^ b f n r t s ' \" \\ ] / ) ) ) ,
197197 prec ( 1 , $ . escape_sequence )
198198 ) ,
199199 escape_sequence : _ => token . immediate ( seq (
@@ -1266,7 +1266,7 @@ module.exports = grammar({
12661266 super : $ => 'super' ,
12671267
12681268 // https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-IdentifierChars
1269- identifier : $ => / [ \p{ L } _ $ ] [ \p{ L } \p { Nd } \u00A2 _ $ ] * / ,
1269+ identifier : _ => / [ \p{ XID_Start } _ $ ] [ \p{ XID_Continue } \u00A2 _ $ ] * / ,
12701270
12711271 // http://stackoverflow.com/questions/13014947/regex-to-match-a-c-style-multiline-comment/36328890#36328890
12721272 comment : $ => choice (
You can’t perform that action at this time.
0 commit comments