From 211e1b40baae8b9b98b9440ab1f463eb01150cef Mon Sep 17 00:00:00 2001 From: Alex Vear Date: Sat, 2 May 2020 21:04:50 +0100 Subject: [PATCH] Grey out "strike through" text --- TODO | 3 +-- syntax/org.vim | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 70ab4cb..2d6ad37 100644 --- a/TODO +++ b/TODO @@ -3,10 +3,9 @@ MAYBE: - 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) + - TeX math fragments in bold, italic, etc. text - Set a max number of lines to search for end delimiter for bold/italic/etc. to 3 (might not be possible) UNLIKELY: diff --git a/syntax/org.vim b/syntax/org.vim index 9a7a0f0..3dfd5f3 100644 --- a/syntax/org.vim +++ b/syntax/org.vim @@ -34,6 +34,8 @@ highlight def orgUnderline term=underline cterm=underline gui=underline highlight def link orgBoldDelimiter orgBold highlight def link orgUnderlineDelimiter orgUnderline +highlight def link orgStrikethrough Ignore +highlight def link orgStrikethroughDelimiter orgStrikethrough " Options syntax match orgOption /^\s*#+\w\+.*$/ keepend