Use special lexer rules for escapes; fixes catastrophic backtracking, and highlights them too. Fixes #2356
8 lines
160 B
Text
8 lines
160 B
Text
---input---
|
|
just\ key
|
|
|
|
---tokens---
|
|
'just' Name.Attribute
|
|
'\\ ' Literal.String.Escape
|
|
'key' Name.Attribute
|
|
'\n' Text.Whitespace
|