From 553b8357657da1765186e255e1149ef5a9056bce Mon Sep 17 00:00:00 2001 From: ryanss Date: Tue, 10 Feb 2015 11:43:09 -0500 Subject: Improve specificity of syntax match regex This syntax match regex was accidentally highlighting lines in comments that were shifted by one level and contained the word "ago". --- syntax/hackernews.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syntax') diff --git a/syntax/hackernews.vim b/syntax/hackernews.vim index f4817d6..acb7f72 100644 --- a/syntax/hackernews.vim +++ b/syntax/hackernews.vim @@ -32,7 +32,7 @@ endtry " Remove emphesis from all components of main page item except title syn match Comment /^\s*[0-9]\{1,2}\.\s/ syn match Comment /\s(\S\+\.\S\+)/ -syn match Comment /^\s\{4}.*ago/ +syn match Comment /^\s\{4}[0-9]\+\s.\+\sago/ syn match Comment /^.*ago\s|.*comments/ syn match Comment /^[0-9]\+\s.\+\sago$/ -- cgit v1.2.3