Skip to content

Commit 34e935e

Browse files
committed
Allow "." in INIT labels
1 parent e987a92 commit 34e935e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/zxbpp/zxbasmpplex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def t_line_prepro_pragma_defargs_define_skip(self, t):
146146
pass # Ignore whitespaces and tabs
147147

148148
def t_prepro_ID(self, t):
149-
r'[_a-zA-Z][_a-zA-Z0-9]*' # preprocessor directives
149+
r'[._a-zA-Z][._a-zA-Z0-9]*' # preprocessor directives
150150
t.type = reserved_directives.get(t.value.lower(), 'ID')
151151
if t.type == 'DEFINE':
152152
t.lexer.begin('define')

src/zxbpp/zxbpplex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def t_if_LT(self, t):
223223
return t
224224

225225
def t_prepro_ID(self, t):
226-
r'[_a-zA-Z][_a-zA-Z0-9]*' # preprocessor directives
226+
r'[._a-zA-Z][._a-zA-Z0-9]*' # preprocessor directives
227227
t.type = reserved_directives.get(t.value.lower(), 'ID')
228228
states_ = {
229229
'DEFINE': 'define',

0 commit comments

Comments
 (0)