grammars/etc.json in github-linguist-7.9.0 vs grammars/etc.json in github-linguist-7.10.0
- old
+ new
@@ -73,11 +73,11 @@
"match": "\u003e"
}
]
},
"colon": {
- "name": "keyword.operator.assignment.key-value.colon",
+ "name": "punctuation.delimiter.separator.colon",
"match": ":"
},
"comma": {
"name": "punctuation.separator.delimiter.comma",
"match": ","
@@ -220,20 +220,245 @@
}
]
}
}
},
+ "kolon": {
+ "name": "keyword.operator.assignment.key-value.colon",
+ "match": ":"
+ },
"num": {
"patterns": [
{
"include": "#float"
},
{
"include": "#int"
}
]
},
+ "op": {
+ "patterns": [
+ {
+ "include": "#opBitAssign"
+ },
+ {
+ "include": "#opMathAssign"
+ },
+ {
+ "include": "#opBit"
+ },
+ {
+ "include": "#opFix"
+ },
+ {
+ "include": "#opCmp"
+ },
+ {
+ "include": "#opLog"
+ },
+ {
+ "include": "#opMath"
+ }
+ ]
+ },
+ "opBit": {
+ "patterns": [
+ {
+ "name": "keyword.operator.bitwise.xor",
+ "match": "\\^"
+ },
+ {
+ "name": "keyword.operator.bitwise.not",
+ "match": "~"
+ },
+ {
+ "name": "keyword.operator.bitwise.and",
+ "match": "\u0026"
+ },
+ {
+ "name": "keyword.operator.bitwise.or",
+ "match": "\\|"
+ },
+ {
+ "name": "keyword.operator.bitwise.shift.left",
+ "match": "\u003c\u003c"
+ },
+ {
+ "name": "keyword.operator.bitwise.shift.right.unsigned",
+ "match": "\u003e\u003e\u003e"
+ },
+ {
+ "name": "keyword.operator.bitwise.shift.right.signed",
+ "match": "\u003e\u003e"
+ }
+ ]
+ },
+ "opBitAssign": {
+ "patterns": [
+ {
+ "name": "keyword.operator.assignment.bitwise.xor",
+ "match": "\\^="
+ },
+ {
+ "name": "keyword.operator.assignment.bitwise.not",
+ "match": "~="
+ },
+ {
+ "name": "keyword.operator.assignment.bitwise.and",
+ "match": "\u0026="
+ },
+ {
+ "name": "keyword.operator.assignment.bitwise.or",
+ "match": "\\|="
+ },
+ {
+ "name": "keyword.operator.assignment.bitwise.shift.left",
+ "match": "\u003c\u003c="
+ },
+ {
+ "name": "keyword.operator.assignment.bitwise.shift.right.unsigned",
+ "match": "\u003e\u003e\u003e="
+ },
+ {
+ "name": "keyword.operator.assignment.bitwise.shift.right.signed",
+ "match": "\u003e\u003e="
+ }
+ ]
+ },
+ "opCmp": {
+ "patterns": [
+ {
+ "name": "keyword.operator.logical.comparison.starship.spaceship",
+ "match": "\u003c=\u003e"
+ },
+ {
+ "name": "keyword.operator.logical.comparison.less-than-or-equal-to.lte",
+ "match": "\u003c="
+ },
+ {
+ "name": "keyword.operator.logical.comparison.less-than.lt",
+ "match": "\u003c"
+ },
+ {
+ "name": "keyword.operator.logical.comparison.greater-than-or-equal-to.gte",
+ "match": "\u003e="
+ },
+ {
+ "name": "keyword.operator.logical.comparison.greater-than.gt",
+ "match": "\u003e"
+ },
+ {
+ "name": "keyword.operator.logical.comparison.equal-to.equals.equal.eql.eq.strict",
+ "match": "==="
+ },
+ {
+ "name": "keyword.operator.logical.comparison.equal-to.equals.equal.eql.eq",
+ "match": "=="
+ },
+ {
+ "name": "keyword.operator.logical.comparison.not-equal-to.not-equal.unequal.neql.ne.strict",
+ "match": "!=="
+ },
+ {
+ "name": "keyword.operator.logical.comparison.not-equal-to.not-equal.unequal.neql.ne",
+ "match": "!="
+ }
+ ]
+ },
+ "opFix": {
+ "patterns": [
+ {
+ "name": "keyword.operator.increment",
+ "match": "\\+{2}"
+ },
+ {
+ "name": "keyword.operator.decrement",
+ "match": "-{2}"
+ }
+ ]
+ },
+ "opLog": {
+ "patterns": [
+ {
+ "name": "keyword.operator.logical.boolean.cast",
+ "match": "!!"
+ },
+ {
+ "name": "keyword.operator.logical.boolean.not.negation.negate",
+ "match": "!"
+ },
+ {
+ "name": "keyword.operator.logical.boolean.and",
+ "match": "\u0026\u0026"
+ },
+ {
+ "name": "keyword.operator.logical.boolean.or",
+ "match": "\\|{2}"
+ },
+ {
+ "name": "keyword.operator.logical.boolean.or.nullish",
+ "match": "\\?{2}"
+ }
+ ]
+ },
+ "opMath": {
+ "patterns": [
+ {
+ "name": "keyword.operator.arithmetic.exponentiation.exponent.exp.power",
+ "match": "\\*{2}|\\^"
+ },
+ {
+ "name": "keyword.operator.arithmetic.addition.add.plus",
+ "match": "\\+"
+ },
+ {
+ "name": "keyword.operator.arithmetic.multiplication.multiply.times",
+ "match": "\\*"
+ },
+ {
+ "name": "keyword.operator.arithmetic.division.divide",
+ "match": "/"
+ },
+ {
+ "name": "keyword.operator.arithmetic.remainder.modulo.modulus.mod",
+ "match": "%"
+ },
+ {
+ "name": "keyword.operator.arithmetic.subtraction.subtract.minus",
+ "match": "[-֊־᐀᠆‐-―⸗⸚⸺⸻⹀〜〰゠︱︲﹘﹣-]"
+ }
+ ]
+ },
+ "opMathAssign": {
+ "patterns": [
+ {
+ "name": "keyword.operator.assignment.arithmetic.exponentiation.exponent.exp.power",
+ "match": "\\*{2}="
+ },
+ {
+ "name": "keyword.operator.assignment.arithmetic.addition.add.plus",
+ "match": "\\+="
+ },
+ {
+ "name": "keyword.operator.assignment.arithmetic.multiplication.multiply.times",
+ "match": "\\*="
+ },
+ {
+ "name": "keyword.operator.assignment.arithmetic.division.divide",
+ "match": "/="
+ },
+ {
+ "name": "keyword.operator.assignment.arithmetic.remainder.modulo.modulus.mod",
+ "match": "%="
+ },
+ {
+ "name": "keyword.operator.assignment.arithmetic.subtraction.subtract.minus",
+ "match": "[-֊־᐀᠆‐-―⸗⸚⸺⸻⹀〜〰゠︱︲﹘﹣-]="
+ }
+ ]
+ },
"str": {
"patterns": [
{
"include": "#strDouble"
},
@@ -279,9 +504,43 @@
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end"
}
}
+ },
+ "tab": {
+ "patterns": [
+ {
+ "match": "^\\t+",
+ "captures": {
+ "0": {
+ "patterns": [
+ {
+ "name": "punctuation.whitespace.leading.tab.hard-tab",
+ "match": "\\t"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "match": "\\t+$",
+ "captures": {
+ "0": {
+ "patterns": [
+ {
+ "name": "punctuation.whitespace.trailing.tab.hard-tab",
+ "match": "\\t"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "name": "punctuation.whitespace.tab.hard-tab",
+ "match": "\\t"
+ }
+ ]
},
"url": {
"patterns": [
{
"match": "(?x)\n(\"|'|\\b)\n(\n\t# Protocol\n\t( https?\n\t| s?ftp\n\t| ftps\n\t| file\n\t| wss?\n\t| smb\n\t| git (?:\\+https?)?\n\t| ssh\n\t| rsync\n\t| afp\n\t| nfs\n\t| (?:x-)?man(?:-page)?\n\t| gopher\n\t| txmt\n\t| issue\n\t| atom\n\t) ://\n\t\n\t# Path specifier\n\t(?:\n\t\t(?! \\#\\w*\\#)\n\t\t(?: [-:\\@\\w.,~%+_/?=\u0026\\#;|!])\n\t)+\n\t\n\t# Don't include trailing punctuation\n\t(?\u003c![-.,?:\\#;])\n)\n(\\1)",