summaryrefslogtreecommitdiff
path: root/syntax/hackernews.vim
diff options
context:
space:
mode:
authorryanss2015-02-19 22:25:36 -0500
committerryanss2015-02-19 22:25:36 -0500
commit67a4d9db6193d11527ccc9c096a1778be74d52f5 (patch)
treec289e0bab1fe66918ef2de221ec6948ca02542dc /syntax/hackernews.vim
parent2b910b5b03517711188ae8aed0cb510cc7b8679f (diff)
downloadvim-hn-67a4d9db6193d11527ccc9c096a1778be74d52f5.tar.gz
Improve handling of html tags in comments
Fixes errors trying to view comments for item=8955426
Diffstat (limited to 'syntax/hackernews.vim')
-rw-r--r--syntax/hackernews.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/syntax/hackernews.vim b/syntax/hackernews.vim
index 4555b9d..7525ed2 100644
--- a/syntax/hackernews.vim
+++ b/syntax/hackernews.vim
@@ -43,6 +43,10 @@ syn match Comment /^\s*Comment\sby.\+ago:$/
" Highlight links
syn region Constant start="\[http" end="\]"
+" Italics <i> tags
+syn region Italics start="<i>" end="</i>"
+highlight Italics gui=italic
+
" Highlight code blocks
syn region Statement start="^ " end="^ "