summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryanss2015-02-10 16:06:28 -0500
committerryanss2015-02-10 16:32:31 -0500
commitb9c74e0aeafda06633cc6ea6bfa902070dcf8227 (patch)
tree8f7898700f8deceec4ce3092eca3015511279b5d
parent8774e769bb44fdddfc1f50eb4df194b84c4ba59c (diff)
downloadvim-hn-b9c74e0aeafda06633cc6ea6bfa902070dcf8227.tar.gz
Syntax regex fix
`([http://example.net])` was being highlighted like a front page domain `Comment` instead of a link url `Constant`.
-rw-r--r--syntax/hackernews.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax/hackernews.vim b/syntax/hackernews.vim
index 600e3ae..133a301 100644
--- a/syntax/hackernews.vim
+++ b/syntax/hackernews.vim
@@ -31,7 +31,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([^\[]\S\+\.\S\+)/
syn match Comment /^\s\{4}[0-9an]\+\s.\+\sago/
syn match Comment /^.*ago\s|.*comments/
syn match Comment /^[0-9an]\+\s.\+\sago$/