We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b23e44 commit 16a083eCopy full SHA for 16a083e
arkdoc/parser/tokenizer.py
@@ -22,8 +22,7 @@ def __str__(self):
22
TokenSpecification = [
23
("NUMBER", r"\d+(\.\d*)?"),
24
("STRING", r"\"[^\"]*\""),
25
- ("BEGIN_MACRO", r"(\$"),
26
- ("ID", r"[\w:?=!@&<>+\-%*/.]+"),
+ ("ID", r"[\w:?=!@&<>+\-%*/.$]+"),
27
("LPAREN", r"[(\[{]"),
28
("RPAREN", r"[)\]}]"),
29
("COMMENT", r"#[^\n]*"),
@@ -101,7 +100,7 @@ def tree_from_tokens(tokens: List[Token]) -> List:
101
100
L.append(token)
102
token = tokens.pop(0)
103
104
- if token.type == "LPAREN" or token.type == "BEGIN_MACRO":
+ if token.type == "LPAREN":
105
L2 = []
106
while tokens[0].type != "RPAREN":
107
L2.append(tree_from_tokens(tokens))
0 commit comments