feat(gotmpl,helm): raise highlight priorities (#6712)

This commit is contained in:
Kai Moschcau 2024-07-03 09:59:18 +02:00 committed by GitHub
parent 0209151fd2
commit f1a4a75005
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 51 additions and 21 deletions

View file

@ -1,8 +1,11 @@
; inherits: gotmpl
; For the reasoning concerning the priorities, see gotmpl highlights.
;
; Builtin functions
(function_call
function: (identifier) @function.builtin
(#set! priority 110)
(#any-of? @function.builtin
"and" "or" "not" "eq" "ne" "lt" "le" "gt" "ge" "default" "required" "empty" "fail" "coalesce"
"ternary" "print" "println" "printf" "trim" "trimAll" "trimPrefix" "trimSuffix" "lower" "upper"
@ -33,6 +36,7 @@
(selector_expression
operand: (field
name: (identifier) @constant.builtin
(#set! priority 110)
(#any-of? @constant.builtin
"Values" "Chart" "Release" "Capabilities" "Files" "Subcharts" "Template"))
(field_identifier))
@ -41,5 +45,6 @@
(selector_expression
operand: (variable)
field: (field_identifier) @constant.builtin
(#set! priority 110)
(#any-of? @constant.builtin
"Values" "Chart" "Release" "Capabilities" "Files" "Subcharts" "Template"))