Skip to content

Commit 0508258

Browse files
committed
allow dynamic labels to contain macro argumnts
1 parent 833d5d9 commit 0508258

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/exp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,8 @@ const char *pushsymbol(const char *str)
994994
*ptr == '.' ||
995995
(*ptr >= 'a' && *ptr <= 'z') ||
996996
(*ptr == '@') || // UCASM compatibility, allow at-sign to apear in label names
997+
(*ptr == '{') || // allow dynamic labels to use macro arguments
998+
(*ptr == '}') ||
997999
(*ptr >= 'A' && *ptr <= 'Z') ||
9981000
(*ptr >= '0' && *ptr <= '9');
9991001
++ptr

0 commit comments

Comments
 (0)