Updated grammars

This commit is contained in:
Alex Ross
2018-11-06 11:39:33 +01:00
parent 6eb24fb349
commit c71f524777
7 changed files with 480 additions and 487 deletions

View File

@@ -4,7 +4,7 @@
"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/d94d403d6d31623763a4ff86b656886fa699ef60",
"version": "https://github.com/fadeevab/make.tmbundle/commit/c6b3ae6e4f22e01fc483be5bb34a9682c28f3219",
"name": "Makefile",
"scopeName": "source.makefile",
"patterns": [
@@ -17,6 +17,9 @@
{
"include": "#variable-assignment"
},
{
"include": "#target"
},
{
"include": "#recipe"
},
@@ -288,7 +291,7 @@
}
]
},
"recipe": {
"target": {
"begin": "^(?!\\t)([^:]*)(:)(?!\\=)",
"beginCaptures": {
"1": {
@@ -344,37 +347,28 @@
"include": "#variables"
}
]
}
]
},
"recipe": {
"begin": "^\\t",
"end": "[^\\\\]$",
"name": "meta.scope.recipe.makefile",
"patterns": [
{
"match": "\\\\\\n",
"name": "constant.character.escape.continuation.makefile"
},
{
"begin": "^\\t",
"name": "meta.scope.recipe.makefile",
"patterns": [
{
"captures": {
"0": {
"patterns": [
{
"match": "\\\\\\n",
"name": "constant.character.escape.continuation.makefile"
},
{
"include": "#variables"
},
{
"include": "source.shell"
}
]
}
},
"match": ".+\\n?"
}
],
"while": "^\\t"
"include": "#variables"
},
{
"include": "source.shell"
}
]
},
"variable-assignment": {
"begin": "(^[ ]*|\\G\\s*)([^\\s]+)\\s*(=|\\?=|:=|\\+=)",
"begin": "(^[ ]*|\\G\\s*)([^\\s]+)\\s*((?<![?:+!])=|\\?=|:=|\\+=|!=)",
"beginCaptures": {
"2": {
"name": "variable.other.makefile"