-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
gitstash
syntax highlighter, for git stash list -p
format
See the added comments for more details. Quick usage example: git stash list -p | dte -c 'set filetype gitstash' ...or alternatively, from inside the editor: open -t; set filetype gitstash; pipe-from git stash list -p
- Loading branch information
1 parent
fc7389e
commit 03900b6
Showing
6 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
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,22 @@ | ||
require diff | ||
|
||
# This is very similar to the `diff` syntax, but also allows | ||
# highlighting lines like e.g. "stash@{0}: WIP on master: ...". | ||
# Usage example: git stash list -p | dte -c 'set filetype gitstash' | ||
|
||
syntax gitstash | ||
|
||
state start | ||
char s maybe-stashline | ||
noeat .diff:this | ||
|
||
state maybe-stashline stashline | ||
str 'tash@{' stashline | ||
recolor text 1 | ||
noeat .diff:start | ||
|
||
state stashline | ||
char "\n" start | ||
eat this | ||
|
||
default string stashline |
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