Fix lexer

This commit is contained in:
Catalin Constantin Mititiuc 2025-06-16 20:18:05 -07:00
parent edb413665d
commit 1dcaa134fc

View File

@ -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')
]