Fix lexer

This commit is contained in:
Catalin Constantin Mititiuc 2025-05-27 10:34:35 -07:00
parent a9a04070f6
commit 53409bf710

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