Fix lexer
This commit is contained in:
parent
edb413665d
commit
1dcaa134fc
@ -67,14 +67,14 @@ class CustomLexer(LuaLexer):
|
|||||||
include('base')
|
include('base')
|
||||||
],
|
],
|
||||||
'dqs': [
|
'dqs': [
|
||||||
(r'"', String, '#pop'),
|
(r'"', String.Double, '#pop'),
|
||||||
(r'\\.|\'', String), # double-quoted string don't need ' escapes
|
(r'\\.|\'', String), # double-quoted string don't need ' escapes
|
||||||
(r'#\{', String.Interpol, "interpoling_string"),
|
(r'#\{', String.Interpol, "interpoling_string"),
|
||||||
(r'#', String),
|
(r'#', String),
|
||||||
include('strings')
|
include('strings')
|
||||||
],
|
],
|
||||||
'sqs': [
|
'sqs': [
|
||||||
(r"'", String, '#pop'),
|
(r"'", String.Single, '#pop'),
|
||||||
(r'#|\\.|"', String), # single quoted strings don't need " escapses
|
(r'#|\\.|"', String), # single quoted strings don't need " escapses
|
||||||
include('strings')
|
include('strings')
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user