From 08cc6a1c5c11d2458b4c7c827b82dab589474397 Mon Sep 17 00:00:00 2001 From: Matt Hargett Date: Sun, 24 Jul 2022 13:04:14 -0700 Subject: [PATCH] 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. --- .../src/main/antlr4/net/sourceforge/pmd/lang/lua/antlr4/Lua.g4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pmd-lua/src/main/antlr4/net/sourceforge/pmd/lang/lua/antlr4/Lua.g4 b/pmd-lua/src/main/antlr4/net/sourceforge/pmd/lang/lua/antlr4/Lua.g4 index 697c0b6a4a..a59299d907 100644 --- a/pmd-lua/src/main/antlr4/net/sourceforge/pmd/lang/lua/antlr4/Lua.g4 +++ b/pmd-lua/src/main/antlr4/net/sourceforge/pmd/lang/lua/antlr4/Lua.g4 @@ -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