nedpals / tree-sitter-v

Tree-sitter parser for V
MIT License
24 stars 5 forks source link

String interpolation fails for variables named c or r next to the end of the string #17

Open hungrybluedev opened 3 years ago

hungrybluedev commented 3 years ago

Due to the special treatment of c_string_literal and raw_string_literal which have to be prefixed with c and r before the quote respectively, the following cases fail:

'$c'
'$r'

c and r should be recognised as idenifiers in this instance.