forked from Mirrors/helix
Improvements to Meson syntax. (#4572)
Co-authored-by: Garrett D'Amore <garrett.damore@weka.io> Co-authored-by: Michael Davis <mcarsondavis@gmail.com>pull/1/head
parent
70ebbd018a
commit
f843967059
@ -1,62 +1,62 @@
|
||||
(string_literal) @string
|
||||
(comment) @comment
|
||||
|
||||
(boolean_literal) @constant.builtin.boolean
|
||||
(integer_literal) @constant.numeric.integer
|
||||
|
||||
(comment) @comment.line
|
||||
(function_id) @function
|
||||
(keyword_arg_key) @variable.other.member
|
||||
(id_expression) @variable
|
||||
; these are listed first, because they override keyword queries
|
||||
(function_expression (identifier) @function)
|
||||
|
||||
[
|
||||
"if"
|
||||
"elif"
|
||||
"else"
|
||||
"endif"
|
||||
] @keyword.control.conditional
|
||||
(assignment_operator)
|
||||
(additive_operator)
|
||||
(multiplicative_operator)
|
||||
(equality_operator)
|
||||
">="
|
||||
"<="
|
||||
"<"
|
||||
">"
|
||||
"+"
|
||||
"-"
|
||||
] @operator
|
||||
|
||||
[
|
||||
"foreach"
|
||||
"endforeach"
|
||||
] @keyword.control.repeat
|
||||
(and)
|
||||
(or)
|
||||
(not)
|
||||
(in)
|
||||
] @keyword.operator
|
||||
|
||||
[
|
||||
"break"
|
||||
"continue"
|
||||
] @keyword.control
|
||||
"(" ")" "[" "]" "{" "}"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"not"
|
||||
"in"
|
||||
"and"
|
||||
"or"
|
||||
] @keyword.operator
|
||||
(if)
|
||||
(elif)
|
||||
(else)
|
||||
(endif)
|
||||
] @keyword.control.conditional
|
||||
|
||||
[
|
||||
"!"
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
"/"
|
||||
"%"
|
||||
"=="
|
||||
"!="
|
||||
">"
|
||||
"<"
|
||||
">="
|
||||
"<="
|
||||
] @operator
|
||||
(foreach)
|
||||
(endforeach)
|
||||
(break)
|
||||
(continue)
|
||||
] @keyword.control.repeat
|
||||
|
||||
(boolean_literal) @constant.builtin.boolean
|
||||
(int_literal) @constant.numeric.integer
|
||||
|
||||
(keyword_argument keyword: (identifier) @variable.parameter)
|
||||
(escape_sequence) @constant.character.escape
|
||||
(bad_escape) @warning
|
||||
|
||||
[
|
||||
":"
|
||||
","
|
||||
"."
|
||||
","
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
(string_literal)
|
||||
(fstring_literal)
|
||||
] @string
|
||||
|
||||
(identifier) @variable
|
||||
|
Loading…
Reference in New Issue