mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
14
runtime/queries/razor/folds.scm
Normal file
14
runtime/queries/razor/folds.scm
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[
|
||||
(razor_if)
|
||||
(razor_switch)
|
||||
(razor_for)
|
||||
(razor_foreach)
|
||||
(razor_while)
|
||||
(razor_do_while)
|
||||
(razor_try)
|
||||
(razor_catch)
|
||||
(razor_finally)
|
||||
(razor_compound_using)
|
||||
(razor_section)
|
||||
(razor_block)
|
||||
] @fold
|
||||
58
runtime/queries/razor/highlights.scm
Normal file
58
runtime/queries/razor/highlights.scm
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
; inherits: c_sharp
|
||||
|
||||
[
|
||||
(razor_comment)
|
||||
(html_comment)
|
||||
] @comment @spell
|
||||
|
||||
[
|
||||
"at_page"
|
||||
"at_using"
|
||||
"at_model"
|
||||
"at_rendermode"
|
||||
"at_inject"
|
||||
"at_implements"
|
||||
"at_layout"
|
||||
"at_inherits"
|
||||
"at_attribute"
|
||||
"at_typeparam"
|
||||
"at_namespace"
|
||||
"at_preservewhitespace"
|
||||
"at_block"
|
||||
"at_at_escape"
|
||||
"at_colon_transition"
|
||||
] @constant.macro
|
||||
|
||||
[
|
||||
"at_lock"
|
||||
"at_section"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"at_if"
|
||||
"at_switch"
|
||||
] @keyword.conditional
|
||||
|
||||
[
|
||||
"at_for"
|
||||
"at_foreach"
|
||||
"at_while"
|
||||
"at_do"
|
||||
] @keyword.repeat
|
||||
|
||||
[
|
||||
"at_try"
|
||||
"catch"
|
||||
"finally"
|
||||
] @keyword.exception
|
||||
|
||||
[
|
||||
"at_implicit"
|
||||
"at_explicit"
|
||||
] @variable
|
||||
|
||||
"at_await" @keyword.coroutine
|
||||
|
||||
(razor_rendermode) @property
|
||||
|
||||
(razor_attribute_name) @function
|
||||
11
runtime/queries/razor/injections.scm
Normal file
11
runtime/queries/razor/injections.scm
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
; inherits: c_sharp
|
||||
|
||||
([
|
||||
(html_comment)
|
||||
(razor_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((element) @injection.content
|
||||
(#set! injection.language "html")
|
||||
(#set! injection.combined))
|
||||
Loading…
Add table
Add a link
Reference in a new issue