Skip to content

Commit 25f74fd

Browse files
committed
Allow chars { and } in ASM context
1 parent d6e495b commit 25f74fd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/libzxbpp/zxbasmpplex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def t_INITIAL_CHAR(self, t):
106106
return t
107107

108108
def t_INITIAL_TOKEN(self, t):
109-
r"[][%'`,.:$()*/<>~&|+^-]"
109+
r"[][}{%'`,.:$()*/<>~&|+^-]"
110110
return t
111111

112112
def t_prepro_define_defargs_defargsopt_defexpr_pragma_NEWLINE(self, t):

src/libzxbpp/zxbpplex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def t_asm_CHAR(self, t):
122122
return t
123123

124124
def t_asm_TOKEN(self, t):
125-
r"[]['`.:$*/+<>|&~%^-]"
125+
r"[][}{'`.:$*/+<>|&~%^-]"
126126
return t
127127

128128
def t_INITIAL_CONTINUE(self, t):

0 commit comments

Comments
 (0)