Instead of trying to build a regular expression string, just build a structured thing with seq() and choice() and whatnot. This is technically uglier but fixes a problem I found with comment regular expressions so you know, it works, which is better than not working. Also now tokens get named and maybe that's good? It's so hard to say. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| parser.py | ||
| runtime.py | ||
| tree_sitter.py | ||