mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(ecma_injections): limit function names to alphanumeric characters only
This commit is contained in:
parent
9361484fa4
commit
8e9cc89955
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@
|
|||
(template_string) @injection.content)
|
||||
(template_string) @injection.content
|
||||
]
|
||||
(#lua-match? @injection.language "^[a-zA-Z][a-zA-Z0-9]*$")
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#not-eq? @injection.language "svg"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue