From 3ca15e39af37a254003e922b5f42eb9944b69eed Mon Sep 17 00:00:00 2001 From: ryanss Date: Fri, 30 Jan 2015 23:59:00 -0500 Subject: Improve syntax highlighting of main page --- syntax/hackernews.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'syntax') 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 " -- cgit v1.2.3