diff --git a/moonscript.py b/moonscript.py index 135128b..f146431 100644 --- a/moonscript.py +++ b/moonscript.py @@ -67,14 +67,14 @@ class CustomLexer(LuaLexer): include('base') ], 'dqs': [ - (r'"', String, '#pop'), + (r'"', String.Double, '#pop'), (r'\\.|\'', String), # double-quoted string don't need ' escapes (r'#\{', String.Interpol, "interpoling_string"), (r'#', String), include('strings') ], 'sqs': [ - (r"'", String, '#pop'), + (r"'", String.Single, '#pop'), (r'#|\\.|"', String), # single quoted strings don't need " escapses include('strings') ]