From a78e2f32181fc7a0c24ebf12f939c2fd9b6a5770 Mon Sep 17 00:00:00 2001 From: ryanss Date: Wed, 17 Jun 2015 23:59:00 -0400 Subject: Fix runaway italic syntax when no closing underscore Example comment [9720796] --- syntax/hackernews.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'syntax') 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 " 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 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="^ " -- cgit v1.2.3