Skip to content

Commit a78e2f3

Browse files
author
ryanss
committed
Fix runaway italic syntax when no closing underscore
Example comment [9720796]
1 parent 918919f commit a78e2f3

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
vim-hackernews [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ryanss/vim-hackernews/raw/master/LICENSE) [![Version](https://img.shields.io/badge/version-0.2-orange.svg)](https://github.com/ryanss/vim-hackernews/releases/tag/v0.2) [![Build Status](https://img.shields.io/travis/ryanss/vim-hackernews.svg)](https://travis-ci.org/ryanss/vim-hackernews)
1+
vim-hackernews [![Build Status](https://img.shields.io/travis/ryanss/vim-hackernews.svg)](https://travis-ci.org/ryanss/vim-hackernews) [![Version](https://img.shields.io/badge/version-0.2-orange.svg)](https://github.com/ryanss/vim-hackernews/releases/tag/v0.2) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ryanss/vim-hackernews/raw/master/LICENSE)
22
==============
33

44
Browse [Hacker News](https://news.ycombinator.com) inside Vim.

doc/hackernews.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Author: ryanss <ryanssdev@icloud.com>
44
Website: https://github.com/ryanss/vim-hackernews
55
License: MIT (see LICENSE file)
6-
Version: 0.2 (April 26, 2015)
6+
Version: 0.3-dev
77

88

99
BASIC USAGE *hackernews-usage*

ftplugin/hackernews.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Author: ryanss <ryanssdev@icloud.com>
88
# Website: https://github.com/ryanss/vim-hackernews
99
# License: MIT (see LICENSE file)
10-
# Version: 0.2 (April 26, 2015)
10+
# Version: 0.3-dev
1111

1212

1313
from __future__ import print_function

ftplugin/hackernews.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
" Author: ryanss <ryanssdev@icloud.com>
66
" Website: https://github.com/ryanss/vim-hackernews
77
" License: MIT (see LICENSE file)
8-
" Version: 0.2 (April 26, 2015)
8+
" Version: 0.3-dev
99

1010

1111
if has('python')

plugin/hackernews.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
" Author: ryanss <ryanssdev@icloud.com>
66
" Website: https://github.com/ryanss/vim-hackernews
77
" License: MIT (see LICENSE file)
8-
" Version: 0.2 (April 26, 2015)
8+
" Version: 0.3-dev
99

1010

1111
" Filetype plugins need to be enabled

syntax/hackernews.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
" Author: ryanss <ryanssdev@icloud.com>
66
" Website: https://github.com/ryanss/vim-hackernews
77
" License: MIT (see LICENSE file)
8-
" Version: 0.2 (April 26, 2015)
8+
" Version: 0.3-dev
99

1010

1111
if exists("b:current_syntax")
@@ -45,8 +45,8 @@ syn match Comment /^\s*Comment\sby.\+ago:/ contains=Question
4545
syn region Constant start="\[http" end="\]"
4646

4747
" Italics <i> tags
48-
syn match Italics /\v<_\_.{-}_>/
49-
highlight Italics gui=italic
48+
syn match Italic /\v<_\_.{-}(_>|^$)/
49+
highlight Italic gui=italic
5050

5151
" Highlight code blocks
5252
syn region Statement start="" end=""

tests.vader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
" Author: ryanss <ryanssdev@icloud.com>
66
" Website: https://github.com/ryanss/vim-hackernews
77
" License: MIT (see LICENSE file)
8-
" Version: 0.2 (April 26, 2015)
8+
" Version: 0.3-dev
99

1010
Execute (Test Plugin Loaded):
1111
AssertEqual 1, filereadable('doc/hackernews.txt')

0 commit comments

Comments
 (0)