Skip to content
Browse files

fix escape character syntax

  • Loading branch information...
1 parent ba8fc31 commit baf891f1392dfbe8972b8d75581366ed3e601e89 @osa1 committed Jan 30, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Language/Lua/Lexer.x
View
4 src/Language/Lua/Lexer.x
@@ -27,8 +27,8 @@ $sqstr = \0-\255 # [ \' \n ] -- valid character in a string literal
$longstr = \0-\255 -- valid character in a long string
-- escape characters
-@charescd = \\ ([ntvbrfaeE\\\?\"] | $octdigit{1,3} | x$hexdigit+ | X$hexdigit+)
-@charescs = \\ ([ntvbrfaeE\\\?\'] | $octdigit{1,3} | x$hexdigit+ | X$hexdigit+)
+@charescd = '\\' ([ntvbrfaeE\\\?\"] | $octdigit{1,3} | x$hexdigit+ | X$hexdigit+)
+@charescs = '\\' ([ntvbrfaeE\\\?\'] | $octdigit{1,3} | x$hexdigit+ | X$hexdigit+)
@digits = $digit+
@hexdigits = $hexdigit+

0 comments on commit baf891f

Please sign in to comment.
Something went wrong with that request. Please try again.