Skip to content

Commit 908e68f

Browse files
committed
Fixed the damn remaining regexes
1 parent 2bc7d9a commit 908e68f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

after/ftplugin/markdown.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import autoload '../../lib/utils.vim'
77

88
links.GenerateLinksDict()
99

10-
var code_regex = '\v`@<!``@!'
10+
var code_regex = '\v(\\|`)@<!``@!'
1111
# var italic_regex = '\v(\\|\*)@<!\*\*@!'
1212
# The following picks standalone * and the last * of \**
1313
# It excludes escaped * (i.e. \*\*\*, and sequences like ****)
1414
var italic_regex = '\v((\\|\*)@<!|(\\\*)@<=)\*\*@!'
15-
var bold_regex = '\v\*@<!\*\*\*@!'
16-
var strikethrough_regex = '\v\~@<!\~\~\~@!'
15+
var bold_regex = '\v(\\|\*)@<!\*\*\*@!'
16+
var strikethrough_regex = '\v(\\|\~)@<!\~\~\~@!'
1717

1818
var text_style_dict = {'`': code_regex,
1919
'*': italic_regex,

0 commit comments

Comments
 (0)