From 53409bf710c27ece8d4d4e234143d66a767f78dd Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Tue, 27 May 2025 10:34:35 -0700 Subject: [PATCH] Fix lexer --- moonscript.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') ]