diff options
| author | ryanss | 2015-06-17 23:59:00 -0400 |
|---|---|---|
| committer | ryanss | 2015-06-17 23:59:00 -0400 |
| commit | a78e2f32181fc7a0c24ebf12f939c2fd9b6a5770 (patch) | |
| tree | 1429a7e6f96f0b6e963a395c22787af5c5c4405d /syntax/hackernews.vim | |
| parent | 918919ff8b08f4e32942c451aa83c9c71bedfff9 (diff) | |
| download | vim-hn-a78e2f32181fc7a0c24ebf12f939c2fd9b6a5770.tar.gz | |
Fix runaway italic syntax when no closing underscore
Example comment [9720796]
Diffstat (limited to 'syntax/hackernews.vim')
| -rw-r--r-- | syntax/hackernews.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/syntax/hackernews.vim b/syntax/hackernews.vim index 2560441..faa68af 100644 --- a/syntax/hackernews.vim +++ b/syntax/hackernews.vim @@ -5,7 +5,7 @@ " Author: ryanss <ryanssdev@icloud.com> " Website: https://github.com/ryanss/vim-hackernews " License: MIT (see LICENSE file) -" Version: 0.2 (April 26, 2015) +" Version: 0.3-dev if exists("b:current_syntax") @@ -45,8 +45,8 @@ syn match Comment /^\s*Comment\sby.\+ago:/ contains=Question syn region Constant start="\[http" end="\]" " Italics <i> tags -syn match Italics /\v<_\_.{-}_>/ -highlight Italics gui=italic +syn match Italic /\v<_\_.{-}(_>|^$)/ +highlight Italic gui=italic " Highlight code blocks syn region Statement start="^ " end="^ " |
