diff options
| author | ryanss | 2015-01-30 23:59:00 -0500 |
|---|---|---|
| committer | ryanss | 2015-01-30 23:59:00 -0500 |
| commit | 3ca15e39af37a254003e922b5f42eb9944b69eed (patch) | |
| tree | c83bfe257deb36ba1232fe91defccdfac6600438 /syntax | |
| parent | a90167abd386575b5787d20753b8c75fdbb9b1b7 (diff) | |
| download | vim-hn-3ca15e39af37a254003e922b5f42eb9944b69eed.tar.gz | |
Improve syntax highlighting of main page
Diffstat (limited to 'syntax')
| -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 " |
