feat(razor): add parser and queries (#7545)

This commit is contained in:
Tristan Knight 2025-02-01 19:06:26 +00:00 committed by GitHub
parent bcd0b26607
commit 39bf51ff68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 95 additions and 0 deletions

View 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