aMOPel / tree-sitter-nim

tree-sitter parser for the nim programming language
MIT License
36 stars 10 forks source link

[New Feature] std/strformat interpolation #10

Closed aMOPel closed 2 years ago

aMOPel commented 2 years ago

official grammar:

no official grammar

example:

https://nim-lang.org/docs/strformat.html

fmt"{expr}"
&"{expr}"
fmt"""{expr}"""
&"""{expr}"""

desired behavior

match the expressions inside {} as real expressions in the AST