From 315733a7ed08d02d6e2800e009f0acde01f91c3b Mon Sep 17 00:00:00 2001 From: Alex Vear Date: Sat, 2 May 2020 20:39:29 +0100 Subject: [PATCH] Attempt to make syntax matches closer to Emacs' Org mode --- TODO | 6 ++++++ syntax/org.vim | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/TODO b/TODO index f3bd624..70ab4cb 100644 --- a/TODO +++ b/TODO @@ -2,6 +2,12 @@ MAYBE: - Syntax highlight checkboxes and checkbox cookies - Separate syntax group for heading delimiters - Syntax highlight and indent properties + - Hightlight concealed TeX the same as normal text + - TeX math fragments in bold, italic, etc. text + - Close inline block using same number of starting delimiters. + - Grey out strikethrough text. + - Try to get text attributes to stack (e.g. underlined text in bold text) + - Set a max number of lines to search for end delimiter for bold/italic/etc. to 3 (might not be possible) UNLIKELY: - Implement Emacs's abbreviations (e.g. '\') diff --git a/syntax/org.vim b/syntax/org.vim index 65dc78f..9a7a0f0 100644 --- a/syntax/org.vim +++ b/syntax/org.vim @@ -18,10 +18,10 @@ endif syntax spell toplevel " Bold, underine, italic, etc. -syntax region orgItalic matchgroup=orgItalicDelimiter start="[^ \t\k]\@