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

- old
+ new

@@ -1,234 +2 @@ -{ - "name": "Nit", - "scopeName": "source.nit", - "patterns": [ - { - "include": "#strings" - }, - { - "include": "#markup" - }, - { - "include": "#comments" - }, - { - "include": "#keyword" - }, - { - "include": "#constant" - }, - { - "include": "#storage" - }, - { - "include": "#variable" - }, - { - "include": "#entity" - } - ], - "repository": { - "character": { - "name": "string.character.nit", - "match": "('[^\\\\']'|'\\\\.')" - }, - "comment-single-line": { - "name": "comment.singleline.nit", - "match": "#.*" - }, - "comments": { - "patterns": [ - { - "include": "#comment-single-line" - } - ] - }, - "constant": { - "patterns": [ - { - "name": "constant.numeric.float_exp.nit", - "match": "-?(([0-9]*.[0-9])|([0-9]+))+e-?[0-9]+" - }, - { - "name": "constant.numeric.float.nit", - "match": "-?[0-9]*\\.[0-9]+" - }, - { - "name": "constant.numeric.hex.nit", - "match": "-?0(x|X)[0-9A-Fa-f_]+((u|i)(8|(16)|(32)))?" - }, - { - "name": "constant.numeric.oct.nit", - "match": "-?0(o|O)[0-7_]+((u|i)(8|(16)|(32)))?" - }, - { - "name": "constant.numeric.bin.nit", - "match": "-?0(b|B)[0-1_]+((u|i)(8|(16)|(32)))?" - }, - { - "name": "constant.numeric.dec.nit", - "match": "-?[0-9][0-9_]*((u|i)(8|(16)|(32)))?" - }, - { - "name": "constant.language.nit", - "match": "\\b(true|false|null)\\b" - } - ] - }, - "entity": { - "patterns": [ - { - "name": "entity.name.type.nit", - "match": "[A-Z][a-zA-Z0-9_]*" - }, - { - "name": "entity.other.attribute-name.nit", - "match": "_[a-z][a-zA-Z0-9_]*" - } - ] - }, - "inlongstring-code": { - "name": "incode.nit", - "begin": "{{{", - "end": "}}}", - "patterns": [ - { - "include": "$self" - } - ] - }, - "inshortstring-code": { - "name": "string.quoted.double.untitled", - "begin": "{", - "end": "}", - "patterns": [ - { - "include": "$self" - } - ] - }, - "keyword": { - "patterns": [ - { - "name": "keyword.control.nit", - "match": "\\b(label|if|then|loop|else|while|for|do|end|in|with)\\b" - }, - { - "name": "keyword.breaks.nit", - "match": "\\b(return|continue|break|abort)\\b" - }, - { - "name": "keyword.declaration.nit", - "match": "\\b(nullable|once|new|var)\\b" - }, - { - "name": "keyword.annot.nit", - "match": "\\b(is)\\b" - }, - { - "name": "keyword.types.nit", - "match": "\\b(isa|as|type|isset)\\b" - }, - { - "name": "keyword.misc.nit", - "match": "\\b(assert|__debug__|super|implies)\\b" - }, - { - "name": "keyword.operator.nit", - "match": "(==|\\+=|-=|!=|=|!|@|\u003c=\u003e|\u003c=|\u003c\u003c|\u003c|\u003e=|\u003e\u003e|\u003e|\\(|\\)|\\[|\\]|,|::|:|\\.\\.\\.|\\.\\.|\\.|\\+|-|\\*\\*|\\*|/|%|)" - }, - { - "name": "keyword.operator.boolean.nit", - "match": "\\b(and|not|or)\\b" - } - ] - }, - "long-tquote-alt-string": { - "name": "string.triple.alt.nit", - "begin": "'''", - "end": "'''", - "patterns": [ - { - "include": "#inlongstring-code" - } - ] - }, - "long-tquote-string": { - "name": "string.triple.nit", - "begin": "\\\"\\\"\\\"", - "end": "\\\"\\\"\\\"", - "patterns": [ - { - "include": "#inlongstring-code" - }, - { - "name": "string.char.nit", - "match": "([^\\\\]|\\\\.)" - } - ] - }, - "markup": { - "patterns": [ - { - "name": "markup.raw.nit", - "begin": "`{", - "end": "`}" - } - ] - }, - "simple-string": { - "name": "string.quoted.double.untitled", - "begin": "\\\"", - "end": "\\\"", - "patterns": [ - { - "include": "#inshortstring-code" - }, - { - "name": "string.char.nit", - "match": "([^\\\\]|\\\\.)" - } - ] - }, - "storage": { - "patterns": [ - { - "name": "storage.type.nit", - "match": "\\b(fun|init|redef|class|interface|module|import|package|abstract|universal|enum)\\b" - }, - { - "name": "storage.modifier.nit", - "match": "\\b(private|protected|public|intrude|extern)\\b" - } - ] - }, - "strings": { - "patterns": [ - { - "include": "#long-tquote-alt-string" - }, - { - "include": "#long-tquote-string" - }, - { - "include": "#simple-string" - }, - { - "include": "#character" - } - ] - }, - "variable": { - "patterns": [ - { - "name": "variable.language.nit", - "match": "\\b(self)\\b" - }, - { - "name": "variable.other.nit", - "match": "[a-z][a-zA-Z0-9_]*" - } - ] - } - } -} +{"name":"Nit","scopeName":"source.nit","patterns":[{"include":"#strings"},{"include":"#markup"},{"include":"#comments"},{"include":"#keyword"},{"include":"#constant"},{"include":"#storage"},{"include":"#variable"},{"include":"#entity"}],"repository":{"character":{"name":"string.character.nit","match":"('[^\\\\']'|'\\\\.')"},"comment-single-line":{"name":"comment.singleline.nit","match":"#.*"},"comments":{"patterns":[{"include":"#comment-single-line"}]},"constant":{"patterns":[{"name":"constant.numeric.float_exp.nit","match":"-?(([0-9]*.[0-9])|([0-9]+))+e-?[0-9]+"},{"name":"constant.numeric.float.nit","match":"-?[0-9]*\\.[0-9]+"},{"name":"constant.numeric.hex.nit","match":"-?0(x|X)[0-9A-Fa-f_]+((u|i)(8|(16)|(32)))?"},{"name":"constant.numeric.oct.nit","match":"-?0(o|O)[0-7_]+((u|i)(8|(16)|(32)))?"},{"name":"constant.numeric.bin.nit","match":"-?0(b|B)[0-1_]+((u|i)(8|(16)|(32)))?"},{"name":"constant.numeric.dec.nit","match":"-?[0-9][0-9_]*((u|i)(8|(16)|(32)))?"},{"name":"constant.language.nit","match":"\\b(true|false|null)\\b"}]},"entity":{"patterns":[{"name":"entity.name.type.nit","match":"[A-Z][a-zA-Z0-9_]*"},{"name":"entity.other.attribute-name.nit","match":"_[a-z][a-zA-Z0-9_]*"}]},"inlongstring-code":{"name":"incode.nit","begin":"{{{","end":"}}}","patterns":[{"include":"$self"}]},"inshortstring-code":{"name":"string.quoted.double.untitled","begin":"{","end":"}","patterns":[{"include":"$self"}]},"keyword":{"patterns":[{"name":"keyword.control.nit","match":"\\b(label|if|then|loop|else|while|for|do|end|in|with)\\b"},{"name":"keyword.breaks.nit","match":"\\b(return|continue|break|abort)\\b"},{"name":"keyword.declaration.nit","match":"\\b(nullable|once|new|var)\\b"},{"name":"keyword.annot.nit","match":"\\b(is)\\b"},{"name":"keyword.types.nit","match":"\\b(isa|as|type|isset)\\b"},{"name":"keyword.misc.nit","match":"\\b(assert|__debug__|super|implies)\\b"},{"name":"keyword.operator.nit","match":"(==|\\+=|-=|!=|=|!|@|\u003c=\u003e|\u003c=|\u003c\u003c|\u003c|\u003e=|\u003e\u003e|\u003e|\\(|\\)|\\[|\\]|,|::|:|\\.\\.\\.|\\.\\.|\\.|\\+|-|\\*\\*|\\*|/|%|)"},{"name":"keyword.operator.boolean.nit","match":"\\b(and|not|or)\\b"}]},"long-tquote-alt-string":{"name":"string.triple.alt.nit","begin":"'''","end":"'''","patterns":[{"include":"#inlongstring-code"}]},"long-tquote-string":{"name":"string.triple.nit","begin":"\\\"\\\"\\\"","end":"\\\"\\\"\\\"","patterns":[{"include":"#inlongstring-code"},{"name":"string.char.nit","match":"([^\\\\]|\\\\.)"}]},"markup":{"patterns":[{"name":"markup.raw.nit","begin":"`{","end":"`}"}]},"simple-string":{"name":"string.quoted.double.untitled","begin":"\\\"","end":"\\\"","patterns":[{"include":"#inshortstring-code"},{"name":"string.char.nit","match":"([^\\\\]|\\\\.)"}]},"storage":{"patterns":[{"name":"storage.type.nit","match":"\\b(fun|init|redef|class|interface|module|import|package|abstract|universal|enum)\\b"},{"name":"storage.modifier.nit","match":"\\b(private|protected|public|intrude|extern)\\b"}]},"strings":{"patterns":[{"include":"#long-tquote-alt-string"},{"include":"#long-tquote-string"},{"include":"#simple-string"},{"include":"#character"}]},"variable":{"patterns":[{"name":"variable.language.nit","match":"\\b(self)\\b"},{"name":"variable.other.nit","match":"[a-z][a-zA-Z0-9_]*"}]}}}