{
"information_for_contributors": [
"This file has been converted from https://github.com/fadeevab/make.tmbundle/blob/master/Syntaxes/Makefile.plist",
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/fadeevab/make.tmbundle/commit/91b724d1ad86fa65e4b240a960311a280b92f971",
"name": "Makefile",
"scopeName": "source.makefile",
"patterns": [
"include": "#comment"
},
"include": "#variables"
"include": "#variable-assignment"
"include": "#directives"
"include": "#recipe"
"include": "#target"
}
"repository": {
"comment": {
"begin": "(^[ ]+)?(?=#)",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.makefile"
"end": "(?!\\G)",
"begin": "#",
"0": {
"name": "punctuation.definition.comment.makefile"
"end": "(?=[^\\\\])$",
"name": "comment.line.number-sign.makefile",
"match": "\\\\\\n",
"name": "constant.character.escape.continuation.makefile"
]
"directives": {
"begin": "^[ ]*([s\\-]?include)\\b",
"name": "keyword.control.include.makefile"
"end": "^",
"match": "%",
"name": "constant.other.placeholder.makefile"
"begin": "^[ ]*(vpath)\\b",
"name": "keyword.control.vpath.makefile"
"begin": "^\\s*(?:(override)\\s*)?(define)\\s*([^\\s]+)\\s*(=|\\?=|:=|\\+=)?(?=\\s)",
"captures": {
"name": "keyword.control.override.makefile"
"2": {
"name": "keyword.control.define.makefile"
"3": {
"name": "variable.other.makefile"
"4": {
"name": "punctuation.separator.key-value.makefile"
"end": "^\\s*(endef)\\b",
"name": "meta.scope.conditional.makefile",
"begin": "\\G(?!\\n)",
"begin": "^[ ]*(export)\\b",
"name": "keyword.control.$1.makefile"
"match": "[^\\s]+",
"begin": "^[ ]*(override|private)\\b",
"begin": "^[ ]*(unexport|undefine)\\b",
"begin": "^\\s*(ifeq|ifneq|ifdef|ifndef)(?=\\s)",
"end": "^\\s*(endif)\\b",
"begin": "\\G",
"name": "meta.scope.condition.makefile",
"begin": "^\\s*else(?=\\s)",
"name": "keyword.control.else.makefile"
"include": "$self"
"target": {
"begin": "^(?!\\t)([^:]*)(:)(?!\\=)",
"name": "support.function.target.$1.makefile"
"match": "^\\s*(\\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))\\s*$"
"begin": "(?=\\S)",
"end": "(?=\\s|$)",
"name": "entity.name.function.target.makefile",
"end": "[^\\\\]$",
"name": "meta.scope.target.makefile",
"name": "meta.scope.prerequisites.makefile",
"match": "%|\\*",
"recipe": {
"begin": "^\\t([+\\-@]*)",
"name": "meta.scope.recipe.makefile",
"variable-assignment": {
"begin": "(^[ ]*|\\G\\s*)([^\\s:#=]+)\\s*((?<![?:+!])=|\\?=|:=|\\+=|!=)",
"name": "variable.other.makefile",
"end": "\\n",
"interpolation": {
"include": "#parentheses-interpolation"
"include": "#braces-interpolation"
"parentheses-interpolation": {
"begin": "\\(",
"end": "\\)",
"include": "#interpolation"
"braces-interpolation": {
"begin": "{",
"end": "}",
"variables": {
"include": "#simple-variable"
"include": "#variable-parentheses"
"include": "#variable-braces"
"simple-variable": {
"match": "\\$[^(){}]",
"name": "variable.language.makefile"
"variable-parentheses": {
"begin": "\\$\\(",
"name": "punctuation.definition.variable.makefile"
"end": "\\)|((?<!\\\\)\\n)",
"name": "string.interpolated.makefile",
"include": "#builtin-variable-parentheses"
"include": "#function-variable-parentheses"
"include": "#flavor-variable-parentheses"
"include": "#another-variable-parentheses"
"variable-braces": {
"begin": "\\${",
"end": "}|((?<!\\\\)\\n)",
"include": "#builtin-variable-braces"
"include": "#function-variable-braces"
"include": "#flavor-variable-braces"
"include": "#another-variable-braces"
"builtin-variable-parentheses": {
"match": "(?<=\\()(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\.LIBPATTERNS)(?=\\s*\\))",
"builtin-variable-braces": {
"match": "(?<={)(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\.LIBPATTERNS)(?=\\s*})",
"function-variable-parentheses": {
"begin": "(?<=\\()(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\s",
"name": "support.function.$1.makefile"
"end": "(?=\\)|((?<!\\\\)\\n))",
"name": "meta.scope.function-call.makefile",
"function-variable-braces": {
"begin": "(?<={)(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\s",
"end": "(?=}|((?<!\\\\)\\n))",
"flavor-variable-parentheses": {
"begin": "(?<=\\()(origin|flavor)\\s(?=[^\\s)]+\\s*\\))",
"contentName": "variable.other.makefile",
"end": "(?=\\))",
"flavor-variable-braces": {
"begin": "(?<={)(origin|flavor)\\s(?=[^\\s}]+\\s*})",
"end": "(?=})",
"another-variable-parentheses": {
"begin": "(?<=\\()(?!\\))",
"another-variable-braces": {
"begin": "(?<={)(?!})",