nvim-treesitter/queries/make/highlights.scm

117 lines
1.7 KiB
Scheme
Raw Normal View History

2022-09-26 10:19:02 +01:00
(comment) @comment @spell
2021-12-14 10:47:47 +00:00
(conditional
(_ [
"ifeq"
"else"
"ifneq"
"ifdef"
"ifndef"
] @conditional)
"endif" @conditional)
(rule (targets
(word) @function.builtin
(#any-of? @function.builtin
".DEFAULT"
".SUFFIXES"
".DELETE_ON_ERROR"
".EXPORT_ALL_VARIABLES"
".IGNORE"
".INTERMEDIATE"
".LOW_RESOLUTION_TIME"
".NOTPARALLEL"
".ONESHELL"
2021-12-14 10:47:47 +00:00
".PHONY"
".POSIX"
".PRECIOUS"
".SECONDARY"
".SECONDEXPANSION"
".SILENT"
2021-12-14 10:47:47 +00:00
".SUFFIXES")))
(rule ["&:" ":" "::"] @operator)
(export_directive "export" @keyword)
(override_directive "override" @keyword)
(include_directive ["include" "-include"] @include)
(variable_assignment
(word) @symbol)
(variable_assignment [
"?="
":="
"+="
"="
] @operator)
(variable_assignment
(word) @variable.builtin
(#any-of? @variable.builtin
".DEFAULT_GOAL"
".EXTRA_PREREQS"
".FEATURES"
".INCLUDE_DIRS"
".RECIPEPREFIX"
".SHELLFLAGS"
".VARIABLES"
"MAKEARGS"
"MAKEFILE_LIST"
"MAKEFLAGS"
"MAKE_RESTARTS"
"MAKE_TERMERR"
"MAKE_TERMOUT"
"SHELL"
2022-11-16 18:23:54 +02:00
))
2021-12-14 10:47:47 +00:00
; Use string to match bash
2022-11-16 18:23:54 +02:00
(variable_reference (word) @string) @operator
2021-12-14 10:47:47 +00:00
(shell_function
["$" "(" ")"] @operator
2022-11-16 18:23:54 +02:00
"shell" @function.builtin)
2021-12-14 10:47:47 +00:00
(function_call ["$" "(" ")"] @operator)
(substitution_reference ["$" "(" ")"] @operator)
2021-12-14 10:47:47 +00:00
(function_call [
"subst"
"patsubst"
"strip"
"findstring"
"filter"
"filter-out"
"sort"
"word"
"words"
"wordlist"
"firstword"
"lastword"
"dir"
"notdir"
"suffix"
"basename"
"addsuffix"
"addprefix"
"join"
"wildcard"
"realpath"
"abspath"
"error"
"warning"
"info"
"origin"
"flavor"
"foreach"
"if"
"or"
"and"
"call"
"eval"
"file"
"value"
2022-11-16 18:23:54 +02:00
] @function.builtin)