-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds highlight for diff, git-config, git-commit and git-rebase
- Loading branch information
Showing
19 changed files
with
251 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[(addition) (new_file)] @diff.plus | ||
[(deletion) (old_file)] @diff.minus | ||
|
||
(commit) @constant | ||
(location) @attribute | ||
(command) @markup.bold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(subject) @markup.heading | ||
(path) @string.special.path | ||
(branch) @string.special.symbol | ||
(commit) @constant | ||
(item) @markup.link.url | ||
(header) @tag | ||
|
||
(change kind: "new file" @diff.plus) | ||
(change kind: "deleted" @diff.minus) | ||
(change kind: "modified" @diff.delta) | ||
(change kind: "renamed" @diff.delta.moved) | ||
|
||
(trailer | ||
key: (trailer_key) @variable.other.member | ||
value: (trailer_value) @string) | ||
|
||
[":" "=" "->" (scissors)] @punctuation.delimiter | ||
(comment) @comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(((scissors) | ||
(message) @injection.content) | ||
(#set! injection.include-children) | ||
(#set! injection.language "diff")) | ||
|
||
((rebase_command) @injection.content | ||
(#set! injection.include-children) | ||
(#set! injection.language "git-rebase")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
((section_name) @keyword.directive | ||
(#eq? @keyword.directive "include")) | ||
|
||
((section_header | ||
(section_name) @keyword.directive | ||
(subsection_name)) | ||
(#eq? @keyword.directive "includeIf")) | ||
|
||
(section_name) @markup.heading | ||
(variable (name) @variable.other.member) | ||
[(true) (false)] @constant.builtin.boolean | ||
(integer) @constant.numeric.integer | ||
|
||
((string) @string.special.path | ||
(#match? @string.special.path "^(~|./|/)")) | ||
|
||
[(string) (subsection_name)] @string | ||
|
||
[ | ||
"[" | ||
"]" | ||
] @punctuation.bracket | ||
|
||
["=" "\\"] @punctuation.delimiter | ||
|
||
(escape_sequence) @constant.character.escape | ||
|
||
(comment) @comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
; a rough translation: | ||
; * constant.builtin - git hash | ||
; * constant - a git label | ||
; * keyword - command that acts on commits commits | ||
; * function - command that acts only on labels | ||
; * comment - discarded commentary on a command, has no effect on the rebase | ||
; * string - text used in the rebase operation | ||
; * operator - a 'switch' (used in fixup and merge), either -c or -C at time of writing | ||
|
||
(((command) @keyword | ||
(label) @constant.builtin | ||
(message)? @comment) | ||
(#match? @keyword "^(p|pick|r|reword|e|edit|s|squash|d|drop)$")) | ||
|
||
(((command) @function | ||
(label) @constant | ||
(message)? @comment) | ||
(#match? @function "^(l|label|t|reset|u|update-ref)$")) | ||
|
||
((command) @keyword | ||
(#match? @keyword "^(x|exec|b|break)$")) | ||
|
||
(((command) @attribute | ||
(label) @constant.builtin | ||
(message)? @comment) | ||
(#match? @attribute "^(f|fixup)$")) | ||
|
||
(((command) @keyword | ||
(label) @constant.builtin | ||
(label) @constant | ||
(message) @string) | ||
(#match? @keyword "^(m|merge)$")) | ||
|
||
(option) @operator | ||
|
||
(comment) @comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(((command) @attribute | ||
(message)? @injection.content) | ||
(#match? @attribute "^(x|exec)$") | ||
(#set! injection.language "bash") | ||
) |
Oops, something went wrong.