parent
6639271c29
commit
b39b121a4b
10
mode_nasm.py
10
mode_nasm.py
|
@ -3,14 +3,8 @@ from lex2 import Grammar, PatternRule, RegionRule
|
||||||
|
|
||||||
class StringGrammar(Grammar):
|
class StringGrammar(Grammar):
|
||||||
rules = [
|
rules = [
|
||||||
PatternRule(
|
PatternRule(name=r'octal', pattern=r'\\[0-7]{3}'),
|
||||||
name=r'octal',
|
PatternRule(name=r'escaped', pattern=r'\\.'),
|
||||||
pattern=r'\\[0-7]{3}',
|
|
||||||
),
|
|
||||||
PatternRule(
|
|
||||||
name=r'escaped',
|
|
||||||
pattern=r'\\.',
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
class NasmGrammar(Grammar):
|
class NasmGrammar(Grammar):
|
||||||
|
|
Loading…
Reference in New Issue