tree-sitter-lua icon indicating copy to clipboard operation
tree-sitter-lua copied to clipboard

Add escape_sequence node inside string

Open lguarda opened this issue 2 years ago • 0 comments

Hello, The c tree sitter seems to declare escape_sequence in string https://github.com/tree-sitter/tree-sitter-c/blob/f35789006ccbe5be8db21d1a2dd4cc0b5a1286f2/src/grammar.json#L6317

Which make it possible to add specific highlight for escaped sequence https://github.com/nvim-treesitter/nvim-treesitter/blob/411e771d511442ab81670701f5c830f6c74aadd7/queries/c/highlights.scm#L109

I don't really understand how string are declared for the tree sitter lua parser, so is it possible to do the same thing as the c grammar with the current state of the lua grammar?

lguarda avatar Apr 05 '23 13:04 lguarda