diff options
| author | qvalentin <valentin.theodor@web.de> | 2024-02-04 11:23:23 +0100 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-03-03 13:09:20 +0100 |
| commit | 9e1f3c336940e77adee81ca340e1bf0635e655f3 (patch) | |
| tree | 3c783bccab8ef3e024d8fb6b5ab7c1536e0853ed /queries/helm/highlights.scm | |
| parent | bot(lockfile): update arduino, gpg, sourcepawn, ssh_config, vue, wing (diff) | |
| download | nvim-treesitter-9e1f3c336940e77adee81ca340e1bf0635e655f3.tar nvim-treesitter-9e1f3c336940e77adee81ca340e1bf0635e655f3.tar.gz nvim-treesitter-9e1f3c336940e77adee81ca340e1bf0635e655f3.tar.bz2 nvim-treesitter-9e1f3c336940e77adee81ca340e1bf0635e655f3.tar.lz nvim-treesitter-9e1f3c336940e77adee81ca340e1bf0635e655f3.tar.xz nvim-treesitter-9e1f3c336940e77adee81ca340e1bf0635e655f3.tar.zst nvim-treesitter-9e1f3c336940e77adee81ca340e1bf0635e655f3.zip | |
feat: add gotemplate and helm parser support
Diffstat (limited to 'queries/helm/highlights.scm')
| -rw-r--r-- | queries/helm/highlights.scm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/queries/helm/highlights.scm b/queries/helm/highlights.scm new file mode 100644 index 000000000..ab5803a8a --- /dev/null +++ b/queries/helm/highlights.scm @@ -0,0 +1,46 @@ +; inherits: gotmpl + +; Builtin functions +(function_call + function: (identifier) @function.builtin + (#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" + "title" "untitle" "repeat" "substr" "nospace" "trunc" "abbrev" "abbrevboth" "initials" + "randAlphaNum" "randAlpha" "randNumeric" "randAscii" "wrap" "wrapWith" "contains" "hasPrefix" + "hasSuffix" "quote" "squote" "cat" "indent" "nindent" "replace" "plural" "snakecase" "camelcase" + "kebabcase" "swapcase" "shuffle" "toStrings" "toDecimal" "toJson" "mustToJson" "toPrettyJson" + "mustToPrettyJson" "toRawJson" "mustToRawJson" "fromYaml" "fromJson" "fromJsonArray" + "fromYamlArray" "toYaml" "regexMatch" "mustRegexMatch" "regexFindAll" "mustRegexFinDall" + "regexFind" "mustRegexFind" "regexReplaceAll" "mustRegexReplaceAll" "regexReplaceAllLiteral" + "mustRegexReplaceAllLiteral" "regexSplit" "mustRegexSplit" "sha1sum" "sha256sum" "adler32sum" + "htpasswd" "derivePassword" "genPrivateKey" "buildCustomCert" "genCA" "genSelfSignedCert" + "genSignedCert" "encryptAES" "decryptAES" "now" "ago" "date" "dateInZone" "duration" + "durationRound" "unixEpoch" "dateModify" "mustDateModify" "htmlDate" "htmlDateInZone" "toDate" + "mustToDate" "dict" "get" "set" "unset" "hasKey" "pluck" "dig" "merge" "mustMerge" + "mergeOverwrite" "mustMergeOverwrite" "keys" "pick" "omit" "values" "deepCopy" "mustDeepCopy" + "b64enc" "b64dec" "b32enc" "b32dec" "list" "first" "mustFirst" "rest" "mustRest" "last" + "mustLast" "initial" "mustInitial" "append" "mustAppend" "prepend" "mustPrepend" "concat" + "reverse" "mustReverse" "uniq" "mustUniq" "without" "mustWithout" "has" "mustHas" "compact" + "mustCompact" "index" "slice" "mustSlice" "until" "untilStep" "seq" "add" "add1" "sub" "div" + "mod" "mul" "max" "min" "len" "addf" "add1f" "subf" "divf" "mulf" "maxf" "minf" "floor" "ceil" + "round" "getHostByName" "base" "dir" "clean" "ext" "isAbs" "kindOf" "kindIs" "typeOf" "typeIs" + "typeIsLike" "deepequal" "semver" "semverCompare" "urlParse" "urlJoin" "urlquery" "lookup" + "include") + ) + +; {{ .Values.test }} +(selector_expression + operand: + (field + name: (identifier) @constant.builtin + (#any-of? @constant.builtin + "Values" "Chart" "Release" "Capabilities" "Files" "Subcharts" "Template")) + (field_identifier)) + +; {{ $.Values.test }} +(selector_expression + operand: (variable) + field: (field_identifier) @constant.builtin + (#any-of? @constant.builtin + "Values" "Chart" "Release" "Capabilities" "Files" "Subcharts" "Template")) |
