Skip to content

Commit 399b4a8

Browse files
committed
SINGLE_QUOTED_STRING bug fix : '\\'
1 parent 99d4c13 commit 399b4a8

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/tang/intellij/lua

1 file changed

+1
-1
lines changed

src/main/java/com/tang/intellij/lua/lua.flex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ DOC_COMMENT=----*.*(\n{LINE_WS}*----*.*)*
7070

7171
//Strings
7272
DOUBLE_QUOTED_STRING=\"([^\\\"]|\\\S|\\[\r\n])*\"? //\"([^\\\"\r\n]|\\[^\r\n])*\"?
73-
SINGLE_QUOTED_STRING='([^\']|\\\S|\\[\r\n])*'? //'([^\\'\r\n]|\\[^\r\n])*'?
73+
SINGLE_QUOTED_STRING='([^\\\']|\\\S|\\[\r\n])*'? //'([^\\'\r\n]|\\[^\r\n])*'?
7474
//[[]]
7575
LONG_STRING=\[=*\[[\s\S]*\]=*\]
7676

0 commit comments

Comments
 (0)