World of Warcraft Lua uses a few non-standard escape patterns, which are easy enough to add and shouldn't introduce any confusions with errors messages on other dialects.

This commit is contained in:
Matt Hargett
2022-07-24 13:04:14 -07:00
parent 50b06f37bc
commit 08cc6a1c5c

View File

@ -60,6 +60,7 @@ Tested by Matt Hargett with:
- Entire codebase for luvit: https://github.com/luvit/luvit/
- Entire codebase for lit: https://github.com/luvit/lit/
- Entire codebase and test suite for neovim v0.7.2: https://github.com/neovim/neovim/tree/v0.7.2
- Entire codebase for World of Warcraft Interface: https://github.com/tomrus88/BlizzardInterfaceCode
*/
grammar Lua;
@ -288,7 +289,7 @@ HexExponentPart
fragment
EscapeSequence
: '\\' [abfnrtvz"'\\]
: '\\' [abfnrtvz"'|$#\\]
| '\\' '\r'? '\n'
| DecimalEscape
| HexEscape