grammars/source.pep8.json in github-linguist-5.3.3 vs grammars/source.pep8.json in github-linguist-6.0.0

- old
+ new

@@ -1,10 +1,8 @@ { - "fileTypes": [ - "pep" - ], "name": "Pep8", + "scopeName": "source.pep8", "patterns": [ { "include": "#strings" }, { @@ -26,16 +24,16 @@ "include": "#entity" } ], "repository": { "character": { - "match": "('[^\\\\']'|'\\\\.')", - "name": "string.character.pep8" + "name": "string.character.pep8", + "match": "('[^\\\\']'|'\\\\.')" }, "comment-single-line": { - "match": ";.*", - "name": "comment.singleline.pep8" + "name": "comment.singleline.pep8", + "match": ";.*" }, "comments": { "patterns": [ { "include": "#comment-single-line" @@ -43,63 +41,63 @@ ] }, "constant": { "patterns": [ { - "match": "-?0(x|X)[0-9A-Fa-f]+", - "name": "constant.numeric.hex.pep8" + "name": "constant.numeric.hex.pep8", + "match": "-?0(x|X)[0-9A-Fa-f]+" }, { - "match": "-?([0-9]+)", - "name": "constant.numeric.int.pep8" + "name": "constant.numeric.int.pep8", + "match": "-?([0-9]+)" } ] }, "entity": { "patterns": [ { - "match": ", *(i|d|x|n|(sx?f?))", - "name": "entity.other.attribute-name.pep8" + "name": "entity.other.attribute-name.pep8", + "match": ", *(i|d|x|n|(sx?f?))" }, { - "match": "( |\\t)*", - "name": "entity.whitespaces.pep8" + "name": "entity.whitespaces.pep8", + "match": "( |\\t)*" } ] }, "keyword": { "patterns": [ { - "match": "([cC][aA][lL][lL])|([sS][tT][oO][pP])|([bB][rR]((([lL]|[gG])([tT]|[eE]))|([eE][qQ])|([nN][eE])|[vV]|[cC])?)|([rR][eE][tT]([0-7]|([tT][rR])))\\b", - "name": "keyword.control.pep8" + "name": "keyword.control.pep8", + "match": "([cC][aA][lL][lL])|([sS][tT][oO][pP])|([bB][rR]((([lL]|[gG])([tT]|[eE]))|([eE][qQ])|([nN][eE])|[vV]|[cC])?)|([rR][eE][tT]([0-7]|([tT][rR])))\\b" }, { - "match": "(([aA][dD][dD])|([sS][uU][bB])|([nN][oO][tT])|([nN][eE][gG])|([aA][sS]([lL]|[rR]))|([rR][oO]([lL]|[rR]))|([oO][rR])|([cC][pP]))([aA]|[xX])\\b", - "name": "keyword.operator.pep8" + "name": "keyword.operator.pep8", + "match": "(([aA][dD][dD])|([sS][uU][bB])|([nN][oO][tT])|([nN][eE][gG])|([aA][sS]([lL]|[rR]))|([rR][oO]([lL]|[rR]))|([oO][rR])|([cC][pP]))([aA]|[xX])\\b" }, { - "match": "([mM][oO][vV]([sS][pP]|[fF][lL][gG])[aA])|([nN][oO][pP][0-3]?)|((([aA][dD][dD])|([sS][uU][bB]))[sS][pP])|([dD][eE][cC]([iI]|[oO]))|((([lL][dD])|([sS][tT]))([bB][yY][tT][eE])?([aA]|[xX]))|([cC][hH][aA][rR]([iI]|[oO]))|([sS][tT][rR][oO])\\b", - "name": "keyword.misc.pep8" + "name": "keyword.misc.pep8", + "match": "([mM][oO][vV]([sS][pP]|[fF][lL][gG])[aA])|([nN][oO][pP][0-3]?)|((([aA][dD][dD])|([sS][uU][bB]))[sS][pP])|([dD][eE][cC]([iI]|[oO]))|((([lL][dD])|([sS][tT]))([bB][yY][tT][eE])?([aA]|[xX]))|([cC][hH][aA][rR]([iI]|[oO]))|([sS][tT][rR][oO])\\b" } ] }, "simple-string": { + "name": "string.quoted.double.pep8", "begin": "\\\"", "end": "\\\"", - "name": "string.quoted.double.pep8", "patterns": [ { - "match": "([^\\\\]|\\\\.)", - "name": "string.char.pep8" + "name": "string.char.pep8", + "match": "([^\\\\]|\\\\.)" } ] }, "storage": { "patterns": [ { - "match": "[.](([bB][uU][rR][nN])|([eE][qQ][uU][aA][tT][eE])|([bB][lL][oO][cC][kK])|([eE][nN][dD])|([bB][yY][tT][eE])|([wW][oO][rR][dD])|([aA][dD][dD][rR][sS][sS])|([aA][sS][cC][iI][iI]))", - "name": "storage.type.pep8" + "name": "storage.type.pep8", + "match": "[.](([bB][uU][rR][nN])|([eE][qQ][uU][aA][tT][eE])|([bB][lL][oO][cC][kK])|([eE][nN][dD])|([bB][yY][tT][eE])|([wW][oO][rR][dD])|([aA][dD][dD][rR][sS][sS])|([aA][sS][cC][iI][iI]))" } ] }, "strings": { "patterns": [ @@ -109,14 +107,12 @@ ] }, "variable": { "patterns": [ { - "match": "[a-z][a-zA-Z0-9_]* *[:]?", - "name": "variable.other.pep8" + "name": "variable.other.pep8", + "match": "[a-z][a-zA-Z0-9_]* *[:]?" } ] } - }, - "scopeName": "source.pep8", - "uuid": "b2423139-ebee-4453-bb51-74755ea62af4" -} \ No newline at end of file + } +}