diff options
Diffstat (limited to 'syntax/hackernews.vim')
| -rw-r--r-- | syntax/hackernews.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/syntax/hackernews.vim b/syntax/hackernews.vim index ff30f30..70262c9 100644 --- a/syntax/hackernews.vim +++ b/syntax/hackernews.vim @@ -6,9 +6,21 @@ if exists("b:current_syntax") endif +" Hide hacker news item id at end of main page lines syn match Ignore /\s\[[0-9]\{3,}\]$/ + +" Remove emphesis from all components of main page item except title +syn match Comment /^\s*[0-9]\{1,2}\.\s/ +syn match Comment /\s(.*\..*)/ +syn match Comment /^.*ago\s|.*comments/ + +" Comment titles syn match Comment /^\s*Comment.*$/ + +" Highlight links syn region Constant start="\[http" end="\]" + +" Highlight code blocks syn region Statement start="^\s+ " end="^\s " |
