From f8d010c67283547af133d76e4c92f9b8fce649c2 Mon Sep 17 00:00:00 2001 From: Alex Vear Date: Sun, 5 Jan 2020 00:29:14 +0000 Subject: [PATCH] Significantly improved accuracy of in-line delimiter matching Previously the following would've caused everything after the `/` to be italicised (until it found a second `/`). foo/bar The same happened with all of the other in-line delimiters. This was clearly not good enough. The new in-line delimiter matching is now much closer to Emacs' than before while maintaining Unicode support (as well as Vim can offer). --- syntax/org.vim | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/syntax/org.vim b/syntax/org.vim index 284d927..b1a3e00 100644 --- a/syntax/org.vim +++ b/syntax/org.vim @@ -4,7 +4,7 @@ " License: Vim (see `:help license`) " Location: syntax/org.vim " Website: https://github.com/axvr/org.vim -" Last Change: 2019-09-28 +" Last Change: 2020-01-05 " " Reference Specification: Org mode manual " GNU Info: `$ info Org` @@ -18,10 +18,10 @@ endif syntax spell toplevel " Bold, underine, italic, etc. -syntax region orgItalic matchgroup=orgItalicDelimiter start="\/\S\@=\/\@!" end="\S\@<=\/\@