diff options
| author | mryouse | 2022-05-18 05:01:17 +0000 |
|---|---|---|
| committer | mryouse | 2022-05-18 05:01:17 +0000 |
| commit | 4d8c7d27ca6c5e01499a86de19fcaad4eacc0229 (patch) | |
| tree | adeabb3798fde4010ff902a433f1038f70c0bd9c /lexer.py | |
| parent | 5d1298d100888173ad98fbc5b9a0725ed78cd1a5 (diff) | |
add hash to front of boolean
Diffstat (limited to 'lexer.py')
| -rw-r--r-- | lexer.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -168,9 +168,9 @@ def get_string(data, line): def get_bool(data, line): if len(data) >= 4 and data[:4] == "true": - return Token(TokenType.TRUE, "true", True, line), 4 + return Token(TokenType.TRUE, "#true", True, line), 4 elif len(data) >= 5 and data[:5] == "false": - return Token(TokenType.FALSE, "false", False, line), 5 + return Token(TokenType.FALSE, "#false", False, line), 5 else: raise Exception("couldn't parse boolean") |
