parent
7f02011b88
commit
42b97aaf40
|
@ -30,9 +30,10 @@ class NasmGrammar(Grammar):
|
|||
PatternRule("nasm.identifier", r'\$?' + word),
|
||||
PatternRule("nasm.float", r"[0-9]+\.[0-9]*|\.[0-9]+|([0-9]|[0-9]+\.[0-9]*|\.[0-9]+)[eE][\+-]?[0-9]+"),
|
||||
PatternRule('delimiter', r'(?://|%%|<<|>>|[~!\.\*/%\-\+\(\)\[\],\|\^\&])'),
|
||||
# TODO: nasm strings seem like they are single-line only
|
||||
RegionRule('string', '"""', StringGrammar4, '"""'),
|
||||
RegionRule('string', "'''", StringGrammar3, "'''"),
|
||||
RegionRule('string', '"', StringGrammar2, '"'),
|
||||
RegionRule('string', '"', StringGrammar2, '"'),
|
||||
RegionRule('string', "'", StringGrammar1, "'"),
|
||||
PatternRule('eol', '\n'),
|
||||
PatternRule('continuation', r'\\\n$'),
|
||||
|
|
Loading…
Reference in New Issue