Path: blob/main/extensions/diff/syntaxes/diff.tmLanguage.json
3316 views
{1"information_for_contributors": [2"This file has been converted from https://github.com/textmate/diff.tmbundle/blob/master/Syntaxes/Diff.plist",3"If you want to provide a fix or improvement, please create a pull request against the original repository.",4"Once accepted there, we are happy to receive an update request."5],6"version": "https://github.com/textmate/diff.tmbundle/commit/0593bb775eab1824af97ef2172fd38822abd97d7",7"name": "Diff",8"scopeName": "source.diff",9"patterns": [10{11"captures": {12"1": {13"name": "punctuation.definition.separator.diff"14}15},16"match": "^((\\*{15})|(={67})|(-{3}))$\\n?",17"name": "meta.separator.diff"18},19{20"match": "^\\d+(,\\d+)*(a|d|c)\\d+(,\\d+)*$\\n?",21"name": "meta.diff.range.normal"22},23{24"captures": {25"1": {26"name": "punctuation.definition.range.diff"27},28"2": {29"name": "meta.toc-list.line-number.diff"30},31"3": {32"name": "punctuation.definition.range.diff"33}34},35"match": "^(@@)\\s*(.+?)\\s*(@@)($\\n?)?",36"name": "meta.diff.range.unified"37},38{39"captures": {40"3": {41"name": "punctuation.definition.range.diff"42},43"4": {44"name": "punctuation.definition.range.diff"45},46"6": {47"name": "punctuation.definition.range.diff"48},49"7": {50"name": "punctuation.definition.range.diff"51}52},53"match": "^(((\\-{3}) .+ (\\-{4}))|((\\*{3}) .+ (\\*{4})))$\\n?",54"name": "meta.diff.range.context"55},56{57"match": "^diff --git a/.*$\\n?",58"name": "meta.diff.header.git"59},60{61"match": "^diff (-|\\S+\\s+\\S+).*$\\n?",62"name": "meta.diff.header.command"63},64{65"captures": {66"4": {67"name": "punctuation.definition.from-file.diff"68},69"6": {70"name": "punctuation.definition.from-file.diff"71},72"7": {73"name": "punctuation.definition.from-file.diff"74}75},76"match": "(^(((-{3}) .+)|((\\*{3}) .+))$\\n?|^(={4}) .+(?= - ))",77"name": "meta.diff.header.from-file"78},79{80"captures": {81"2": {82"name": "punctuation.definition.to-file.diff"83},84"3": {85"name": "punctuation.definition.to-file.diff"86},87"4": {88"name": "punctuation.definition.to-file.diff"89}90},91"match": "(^(\\+{3}) .+$\\n?| (-) .* (={4})$\\n?)",92"name": "meta.diff.header.to-file"93},94{95"captures": {96"3": {97"name": "punctuation.definition.inserted.diff"98},99"6": {100"name": "punctuation.definition.inserted.diff"101}102},103"match": "^(((>)( .*)?)|((\\+).*))$\\n?",104"name": "markup.inserted.diff"105},106{107"captures": {108"1": {109"name": "punctuation.definition.changed.diff"110}111},112"match": "^(!).*$\\n?",113"name": "markup.changed.diff"114},115{116"captures": {117"3": {118"name": "punctuation.definition.deleted.diff"119},120"6": {121"name": "punctuation.definition.deleted.diff"122}123},124"match": "^(((<)( .*)?)|((-).*))$\\n?",125"name": "markup.deleted.diff"126},127{128"begin": "^(#)",129"captures": {130"1": {131"name": "punctuation.definition.comment.diff"132}133},134"comment": "Git produces unified diffs with embedded comments\"",135"end": "\\n",136"name": "comment.line.number-sign.diff"137},138{139"match": "^index [0-9a-f]{7,40}\\.\\.[0-9a-f]{7,40}.*$\\n?",140"name": "meta.diff.index.git"141},142{143"captures": {144"1": {145"name": "punctuation.separator.key-value.diff"146},147"2": {148"name": "meta.toc-list.file-name.diff"149}150},151"match": "^Index(:) (.+)$\\n?",152"name": "meta.diff.index"153},154{155"match": "^Only in .*: .*$\\n?",156"name": "meta.diff.only-in"157}158]159}160161