grammars/source.mcfunction.json in github-linguist-7.6.1 vs grammars/source.mcfunction.json in github-linguist-7.7.0
- old
+ new
@@ -45,10 +45,18 @@
"name": "entity.name.function.mcfunction"
}
}
},
{
+ "match": "([a-z0-9_\\.\\-\\/]+)",
+ "captures": {
+ "1": {
+ "name": "entity.name.function.mcfunction"
+ }
+ }
+ },
+ {
"begin": "(\\[)",
"end": "(\\])",
"patterns": [
{
"include": "#block_predicate.arguments"
@@ -192,10 +200,25 @@
"1": {
"name": "invalid.illegal.mcfunction"
}
}
},
+ "command.token.block_predicate_without_namespace": {
+ "name": "meta.command.token.block_predicate_without_namespace.mcfunction",
+ "begin": "(?\u003c= )(?=(\\#)?([a-z0-9_\\.\\-\\/]+)(\\[ *([a-z_][a-z0-9_]*) *\\=))",
+ "end": "(?=\\n)|(?:(?\u003c=\\])(?!\\{)|(?\u003c=\\}))([^ \\n]*)",
+ "patterns": [
+ {
+ "include": "#block_predicate"
+ }
+ ],
+ "endCaptures": {
+ "1": {
+ "name": "invalid.illegal.mcfunction"
+ }
+ }
+ },
"command.token.boolean": {
"name": "meta.command.token.boolean.mcfunction",
"match": "(?\u003c= )(true|false)(?=[ \\n]|$)",
"captures": {
"1": {
@@ -222,10 +245,22 @@
"1": {
"name": "support.class.mcfunction"
}
}
},
+ "command.token.greedy_parent": {
+ "name": "meta.command.token.greedy_parent.mcfunction",
+ "match": "((?\u003c=^say | say ))(.*)$",
+ "captures": {
+ "1": {
+ "name": "entity.name.mcfunction"
+ },
+ "2": {
+ "name": "string.quoted.mcfunction"
+ }
+ }
+ },
"command.token.literal": {
"name": "meta.command.token.literal.mcfunction",
"match": "(?\u003c= )([a-z_][a-z0-9_]*)(?=[ \\n]|$)",
"captures": {
"1": {
@@ -360,11 +395,11 @@
}
}
},
"command.token.root_redirect": {
"name": "meta.command.token.root_redirect.mcfunction",
- "match": "(?\u003c= )(run) ?([a-z_][a-z0-9_]*)?(?=[ \\n]|$)",
+ "match": "(?\u003c= )(run) ([a-z_][a-z0-9_]*)?(?=[ \\n]|$)",
"captures": {
"1": {
"name": "entity.name.mcfunction"
},
"2": {
@@ -555,10 +590,13 @@
},
{
"include": "#command.token.block_predicate"
},
{
+ "include": "#command.token.block_predicate_without_namespace"
+ },
+ {
"include": "#command.token.resource_location"
},
{
"include": "#command.token.tagged_resource_location"
},
@@ -579,10 +617,13 @@
},
{
"include": "#command.token.root_redirect"
},
{
+ "include": "#command.token.greedy_parent"
+ },
+ {
"include": "#command.token.literal"
},
{
"include": "#command.token.uuid"
},
@@ -670,29 +711,38 @@
},
"comment.block.line": {
"patterns": [
{
"name": "meta.comment.block.annotation.mcfunction",
- "match": "((\\@\\w*)\\b.*)$",
+ "match": "((\\@\\w*)\\b(.*))$",
"captures": {
"1": {
"name": "comment.block.mcfunction"
},
"2": {
"name": "markup.heading.mcfunction"
+ },
+ "3": {
+ "name": "comment.block.mcfunction"
}
}
},
{
"name": "meta.comment.block.heading.mcfunction",
- "match": "((\\#.*))$",
+ "match": "((\u003e)((.*)))$",
"captures": {
"1": {
"name": "comment.block.mcfunction"
},
"2": {
- "name": "markup.heading.mcfunction"
+ "name": "markup.list.mcfunction"
+ },
+ "3": {
+ "name": "markup.bold.mcfunction"
+ },
+ "4": {
+ "name": "markup.list.mcfunction"
}
}
},
{
"name": "meta.comment.block.text.mcfunction",
@@ -928,10 +978,10 @@
]
},
"nbt_path.property": {
"patterns": [
{
- "begin": "(\\.)?(\\w+)(\\[)",
+ "begin": "(\\.)?(\\w+)?(\\[)",
"end": "(\\])|(?=\\n)",
"patterns": [
{
"include": "#nbt_path.index"
}