Syntax-match hg statuses individually
author |
Steve Losh <steve@stevelosh.com> |
date |
Fri, 25 Mar 2016 21:40:12 +0000 |
parents |
2ed29341d197
|
children |
7848d65f0425
|
branches/tags |
(none) |
files |
clamsyntax/hg.vim |
Changes
--- a/clamsyntax/hg.vim Wed Dec 09 13:47:56 2015 +0000
+++ b/clamsyntax/hg.vim Fri Mar 25 21:40:12 2016 +0000
@@ -1,3 +1,4 @@
-syn match statusCode "^[MAR?] "
-
-hi def link statusCode Type
+syn match clamHgStatusAdded "\v^A .+"
+syn match clamHgStatusModified "\v^M .+"
+syn match clamHgStatusRemoved "\v^R .+"
+syn match clamHgStatusUnknown "\v^[?] .+"