Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add escape_sequence node inside string #20

Open
lguarda opened this issue Apr 5, 2023 · 0 comments
Open

Add escape_sequence node inside string #20

lguarda opened this issue Apr 5, 2023 · 0 comments

Comments

@lguarda
Copy link

lguarda commented Apr 5, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant