mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
feat: add kos parser and queries (#8389)
This commit is contained in:
parent
300b906a95
commit
31fc7e10cd
7 changed files with 365 additions and 0 deletions
6
runtime/queries/kos/injections.scm
Normal file
6
runtime/queries/kos/injections.scm
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(((comment) @_jsdoc_comment
|
||||
(#lua-match? @_jsdoc_comment "^/[*][*][^*].*[*]/$")) @injection.content
|
||||
(#set! injection.language "jsdoc"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue