grammars/source.loomscript.json in github-linguist-7.11.1 vs grammars/source.loomscript.json in github-linguist-7.12.0

- old
+ new

@@ -1,208 +2 @@ -{ - "name": "LoomScript", - "scopeName": "source.loomscript", - "patterns": [ - { - "include": "#comments" - }, - { - "include": "#keywords" - }, - { - "include": "#strings" - }, - { - "name": "meta.declaration.loomscript", - "begin": "import", - "end": ";", - "beginCaptures": { - "0": { - "name": "keyword.other.import.loomscript" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.terminator.loomscript" - } - } - }, - { - "name": "meta.package.loomscript", - "begin": "(package)\\s+", - "end": "([\\w\\.]+)?", - "beginCaptures": { - "1": { - "name": "storage.modifier.loomscript" - } - }, - "endCaptures": { - "1": { - "name": "entity.name.type.package.loomscript" - } - } - } - ], - "repository": { - "comments": { - "patterns": [ - { - "name": "comment.line.double-slash.loomscript", - "match": "(//).*$\\n?", - "captures": { - "1": { - "name": "punctuation.definition.comment.loomscript" - } - } - }, - { - "name": "comment.block.loomscript", - "begin": "/\\*", - "end": "\\*/", - "captures": { - "0": { - "name": "punctuation.definition.comment.loomscript" - } - } - } - ] - }, - "keywords": { - "patterns": [ - { - "name": "constant.language.loomscript", - "match": "\\b(true|false|null)\\b" - }, - { - "name": "constant.numeric.loomscript", - "match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b" - }, - { - "name": "keyword.cast.loomscript", - "match": "\\bas\\b" - }, - { - "name": "keyword.control.loomscript", - "match": "\\b(if|else|while|do|for|each|in|case|switch|do|default|with|return)\\b" - }, - { - "name": "keyword.control.end.loomscript", - "match": "\\b(exit|return|break|continue)\\b" - }, - { - "name": "keyword.control.new.loomscript", - "match": "\\b(new)\\b" - }, - { - "name": "keyword.control.ternary.loomscript", - "match": "\\?|:" - }, - { - "name": "keyword.declaration.loomscript", - "match": "\\b(\\.\\.\\.|class|const|extends|function|get|implements|interface|package|set|namespace|var)\\b" - }, - { - "name": "keyword.operator.loomscript", - "match": "\\b(delete|is|typeof)\\b" - }, - { - "name": "keyword.operator.arithmetic.loomscript", - "match": "(\\-|\\+|\\*|\\/|\\~\\/|%)" - }, - { - "name": "keyword.operator.assignment.loomscript", - "match": "(=)" - }, - { - "name": "keyword.operator.assignment.arithmetic.loomscript", - "match": "(([+*/%-]|\\~)=)" - }, - { - "name": "keyword.operator.bitwise.loomscript", - "match": "(\u003c\u003c|\u003e\u003e\u003e?|~|\\^|\\||\u0026)" - }, - { - "name": "keyword.operator.comparison.loomscript", - "match": "(===?|!==?|\u003c=?|\u003e=?)" - }, - { - "name": "keyword.operator.increment-decrement.loomscript", - "match": "(\\-\\-|\\+\\+)" - }, - { - "name": "keyword.operator.logical.loomscript", - "match": "(!|\u0026\u0026|\\|\\|)" - }, - { - "name": "keyword.operator.assignment.bitwise.loomscript", - "match": "((\u0026|\\^|\\||\u003c\u003c|\u003e\u003e\u003e?)=)" - }, - { - "name": "keyword.special-type.loomscript", - "match": "\\b(\\*|Null)\\b" - }, - { - "name": "punctuation.terminator.loomscript", - "match": ";" - }, - { - "name": "storage.modifier.loomscript", - "match": "\\b(dynamic|final|internal|native|override|private|protected|public|static)\\b" - }, - { - "name": "storage.type.primitive.loomscript", - "match": "\\b(?:void|bool|int)\\b" - }, - { - "name": "variable.language.loomscript", - "match": "\\b(this|super)\\b" - } - ] - }, - "strings": { - "patterns": [ - { - "name": "string.quoted.double.loomscript", - "begin": "\"", - "end": "\"", - "patterns": [ - { - "name": "constant.character.escape.loomscript", - "match": "\\\\." - } - ], - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.loomscript" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.loomscript" - } - } - }, - { - "name": "string.quoted.single.loomscript", - "begin": "'", - "end": "'", - "patterns": [ - { - "name": "constant.character.escape.loomscript", - "match": "\\\\." - } - ], - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.loomscript" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.loomscript" - } - } - } - ] - } - } -} +{"name":"LoomScript","scopeName":"source.loomscript","patterns":[{"include":"#comments"},{"include":"#keywords"},{"include":"#strings"},{"name":"meta.declaration.loomscript","begin":"import","end":";","beginCaptures":{"0":{"name":"keyword.other.import.loomscript"}},"endCaptures":{"0":{"name":"punctuation.terminator.loomscript"}}},{"name":"meta.package.loomscript","begin":"(package)\\s+","end":"([\\w\\.]+)?","beginCaptures":{"1":{"name":"storage.modifier.loomscript"}},"endCaptures":{"1":{"name":"entity.name.type.package.loomscript"}}}],"repository":{"comments":{"patterns":[{"name":"comment.line.double-slash.loomscript","match":"(//).*$\\n?","captures":{"1":{"name":"punctuation.definition.comment.loomscript"}}},{"name":"comment.block.loomscript","begin":"/\\*","end":"\\*/","captures":{"0":{"name":"punctuation.definition.comment.loomscript"}}}]},"keywords":{"patterns":[{"name":"constant.language.loomscript","match":"\\b(true|false|null)\\b"},{"name":"constant.numeric.loomscript","match":"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b"},{"name":"keyword.cast.loomscript","match":"\\bas\\b"},{"name":"keyword.control.loomscript","match":"\\b(if|else|while|do|for|each|in|case|switch|do|default|with|return)\\b"},{"name":"keyword.control.end.loomscript","match":"\\b(exit|return|break|continue)\\b"},{"name":"keyword.control.new.loomscript","match":"\\b(new)\\b"},{"name":"keyword.control.ternary.loomscript","match":"\\?|:"},{"name":"keyword.declaration.loomscript","match":"\\b(\\.\\.\\.|class|const|extends|function|get|implements|interface|package|set|namespace|var)\\b"},{"name":"keyword.operator.loomscript","match":"\\b(delete|is|typeof)\\b"},{"name":"keyword.operator.arithmetic.loomscript","match":"(\\-|\\+|\\*|\\/|\\~\\/|%)"},{"name":"keyword.operator.assignment.loomscript","match":"(=)"},{"name":"keyword.operator.assignment.arithmetic.loomscript","match":"(([+*/%-]|\\~)=)"},{"name":"keyword.operator.bitwise.loomscript","match":"(\u003c\u003c|\u003e\u003e\u003e?|~|\\^|\\||\u0026)"},{"name":"keyword.operator.comparison.loomscript","match":"(===?|!==?|\u003c=?|\u003e=?)"},{"name":"keyword.operator.increment-decrement.loomscript","match":"(\\-\\-|\\+\\+)"},{"name":"keyword.operator.logical.loomscript","match":"(!|\u0026\u0026|\\|\\|)"},{"name":"keyword.operator.assignment.bitwise.loomscript","match":"((\u0026|\\^|\\||\u003c\u003c|\u003e\u003e\u003e?)=)"},{"name":"keyword.special-type.loomscript","match":"\\b(\\*|Null)\\b"},{"name":"punctuation.terminator.loomscript","match":";"},{"name":"storage.modifier.loomscript","match":"\\b(dynamic|final|internal|native|override|private|protected|public|static)\\b"},{"name":"storage.type.primitive.loomscript","match":"\\b(?:void|bool|int)\\b"},{"name":"variable.language.loomscript","match":"\\b(this|super)\\b"}]},"strings":{"patterns":[{"name":"string.quoted.double.loomscript","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.loomscript","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.loomscript"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.loomscript"}}},{"name":"string.quoted.single.loomscript","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.loomscript","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.loomscript"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.loomscript"}}}]}}}