-
-
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
gitnote
syntax highlighter, for git notes add
format
- Loading branch information
1 parent
96facb9
commit 81464a7
Showing
5 changed files
with
36 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Highlighter for NOTES_EDITMSG files (`git notes add` format) | ||
syntax gitnote | ||
|
||
state start text | ||
char # comment-start | ||
noeat text | ||
|
||
state text | ||
char "\n" start | ||
eat this | ||
|
||
state comment-start comment | ||
char "\n" start | ||
str ' commit ' commit-id commit-prefix | ||
eat comment | ||
|
||
state comment | ||
char "\n" start | ||
eat this | ||
|
||
state commit-id | ||
char 0-9A-Fa-f this | ||
char "\n" start | ||
noeat comment | ||
|
||
default string commit-id | ||
default comment commit-prefix |
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