-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e7bcb4
commit 881a5da
Showing
4 changed files
with
45 additions
and
1 deletion.
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,35 @@ | ||
" Use Vim defaults instead of 100% vi compatibility | ||
" Avoid side-effects when nocompatible has already been set. | ||
if &compatible | ||
set nocompatible | ||
endif | ||
|
||
" highlighting comments for annote notes | ||
" comments defination: <start>@<number|range>!<space><string> | ||
" empty: <> | ||
" space: < > | ||
" integer: <[0-9]+> | ||
" string: <.*> | ||
" start: (<empty>|<##>) | ||
" number: (<integer>|<integer.number>) | ||
" range: (<number-number>|<number-*>) | ||
" | ||
highlight cmnts ctermfg=DarkGrey | ||
match cmnts /^\s*\(##\)\?@[0-9.*-]*! .*/ | ||
|
||
" highlights for sub heading and back references | ||
" subheading defination: #@<number> <string> | ||
" integer: <[0-9]+> | ||
" string: <.*> | ||
" number: (<integer>|<integer.number>) | ||
" | ||
" numeral back reference defination: @{<number>} | ||
" integer: <[0-9]+> | ||
" number: (<integer>|<integer.number>) | ||
" | ||
" string back reference defination: @[<string>] | ||
" string: <[^]]*> | ||
" | ||
highlight subheads ctermfg=DarkGreen | ||
2match subheads /\(^\s*#@[0-9]\+[0-9.]*[0-9]\+ .*\|@{[0-9.]\+}\|@\[[^]]\+\]\)/ | ||
|