spacevim/bundle/nvim-treesitter-0.9.1/queries/hack/highlights.scm
JIe 2bb7059579
Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
init
2024-08-21 14:17:26 +08:00

318 lines
4.1 KiB
Scheme

(variable) @variable
(identifier) @variable
((variable) @variable.builtin
(#eq? @variable.builtin "$this"))
(braced_expression) @none
(scoped_identifier
(qualified_identifier
(identifier) @type))
[
(comment)
(heredoc)
] @comment @spell
((comment) @comment.documentation
(#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$"))
"function" @keyword.function
[
"type"
"interface"
"implements"
"class"
"using"
"namespace"
"attribute"
"const"
"extends"
"insteadof"
] @keyword
[
"async"
"await"
] @keyword.coroutine
[
"use"
"include"
"include_once"
"require"
"require_once"
] @include
[
"new"
"print"
"echo"
"newtype"
"clone"
"as"
] @keyword.operator
"return" @keyword.return
[
(abstract_modifier)
(final_modifier)
(static_modifier)
(visibility_modifier)
(xhp_modifier)
] @type.qualifier
[
"shape"
"tuple"
(array_type)
"bool"
"float"
"int"
"string"
"arraykey"
"void"
"nonnull"
"mixed"
"dynamic"
"noreturn"
] @type.builtin
[
(null)
] @constant.builtin
[
(true)
(false)
] @boolean
(type_specifier) @type
(new_expression
(_) @type)
(alias_declaration "newtype" . (_) @type)
(alias_declaration "type" . (_) @type)
(class_declaration
name: (identifier) @type)
(type_parameter
name: (identifier) @type)
(collection
(qualified_identifier
(identifier) @type .))
[
"@required"
"@lateinit"
(attribute_modifier)
] @attribute
[
"="
"??="
".="
"|="
"^="
"&="
"<<="
">>="
"+="
"-="
"*="
"/="
"%="
"**="
"==>"
"|>"
"??"
"||"
"&&"
"|"
"^"
"&"
"=="
"!="
"==="
"!=="
"<"
">"
"<="
">="
"<=>"
"<<"
">>"
"->"
"+"
"-"
"."
"*"
"/"
"%"
"**"
"++"
"--"
"!"
"?:"
"="
"??="
".="
"|="
"^="
"&="
"<<="
">>="
"+="
"-="
"*="
"/="
"%="
"**="
"=>"
;; type modifiers
"@"
"?"
"~"
] @operator
(integer) @number
(float) @float
(parameter
(variable) @parameter)
(call_expression
function: (qualified_identifier (identifier) @function.call .))
(call_expression
function: (scoped_identifier (identifier) @function.call .))
(call_expression
function: (selection_expression
(qualified_identifier (identifier) @method.call .)))
(qualified_identifier
(_) @namespace .
(_))
(use_statement
(qualified_identifier
(_) @namespace .)
(use_clause))
(use_statement
(use_type "namespace")
(use_clause
(qualified_identifier
(identifier) @namespace .)
alias: (identifier)? @namespace))
(use_statement
(use_type "const")
(use_clause
(qualified_identifier
(identifier) @constant .)
alias: (identifier)? @constant))
(use_statement
(use_type "function")
(use_clause
(qualified_identifier
(identifier) @function .)
alias: (identifier)? @function))
(use_statement
(use_type "type")
(use_clause
(qualified_identifier
(identifier) @type .)
alias: (identifier)? @type))
(use_clause
(use_type "namespace")
(qualified_identifier
(_) @namespace .)
alias: (identifier)? @namespace)
(use_clause
(use_type "function")
(qualified_identifier
(_) @function .)
alias: (identifier)? @function)
(use_clause
(use_type "const")
(qualified_identifier
(_) @constant .)
alias: (identifier)? @constant)
(use_clause
(use_type "type")
(qualified_identifier
(_) @type .)
alias: (identifier)? @type)
(function_declaration
name: (identifier) @function)
(method_declaration
name: (identifier) @method)
(type_arguments
[ "<" ">" ] @punctuation.bracket)
[ "(" ")" "[" "]" "{" "}" "<<" ">>"] @punctuation.bracket
(xhp_open
[ "<" ">" ] @tag.delimiter)
(xhp_close
[ "</" ">" ] @tag.delimiter)
[ "." ";" "::" ":" "," ] @punctuation.delimiter
(qualified_identifier
"\\" @punctuation.delimiter)
(ternary_expression
["?" ":"] @conditional.ternary)
[
"if"
"else"
"elseif"
"switch"
"case"
] @conditional
[
"try"
"catch"
"finally"
] @exception
[
"for"
"while"
"foreach"
"do"
"continue"
"break"
] @repeat
[
(string)
(xhp_string)
] @string
[
(xhp_open)
(xhp_close)
] @tag
(ERROR) @error