diff options
| author | ryanss | 2015-02-10 11:43:09 -0500 |
|---|---|---|
| committer | ryanss | 2015-02-10 11:43:09 -0500 |
| commit | 553b8357657da1765186e255e1149ef5a9056bce (patch) | |
| tree | a1100a78f22519789fddadd9fb7b8f66600051dc /syntax/hackernews.vim | |
| parent | 00a90b6ecb8e576e8dedaa52897287759f95141d (diff) | |
| download | vim-hn-553b8357657da1765186e255e1149ef5a9056bce.tar.gz | |
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".
Diffstat (limited to 'syntax/hackernews.vim')
| -rw-r--r-- | syntax/hackernews.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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$/ |
