Fix in-line verbatim and code delimiters

This commit is contained in:
Alex Vear
2019-12-06 22:18:01 +00:00
parent b8eb8a82d0
commit 0a98223c0b
2 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ The following is a short overview of essential Org mode syntax.
Paragraphs are separated by empty lines. Paragraphs are separated by empty lines.
=monospaced= and ~verbatim~ text are delimited by equals signs and tilde ~monospaced~ and =verbatim= text are delimited by equals signs and tilde
respectively. respectively.
: Entire lines can be marked as verbatim by prepending with a colon. : Entire lines can be marked as verbatim by prepending with a colon.
@@ -154,7 +154,7 @@ an |autocmd| like so.
Value: numeric~ Value: numeric~
Default: 1~ Default: 1~
Display italic org-mode markup (e.g. `/this is italic org-mode markup/`) using Display italic Org mode markup (e.g. `/this is italic Org mode markup/`) using
the italic variant of your font. the italic variant of your font.
As some terminals, terminal multiplexers and monospaced fonts don't support As some terminals, terminal multiplexers and monospaced fonts don't support

View File

@@ -46,12 +46,12 @@ highlight def link orgTitle Title
" Code and vervatim text " Code and vervatim text
syntax region orgCode matchgroup=orgCodeDelimiter start="=\S\@==\@!" end="\S\@<==\@<!=" keepend syntax region orgVerbatim matchgroup=orgVerbatimDelimiter start="=\S\@==\@!" end="\S\@<==\@<!=" keepend
syntax region orgVerbatim matchgroup=orgVerbatimDelimiter start="\~\S\@=\~\@!" end="\S\@<=\~\@<!\~" keepend
syntax match orgVerbatim /^\s*: .*$/ keepend syntax match orgVerbatim /^\s*: .*$/ keepend
syntax region orgVerbatim matchgroup=orgBlockDelimiter start="^\s*#+BEGIN_.*" end="^\s*#+END_.*" keepend syntax region orgVerbatim matchgroup=orgBlockDelimiter start="^\s*#+BEGIN_.*" end="^\s*#+END_.*" keepend
syntax region orgCode matchgroup=orgBlockDelimiter start="^\s*#+BEGIN_SRC" end="^\s*#+END_SRC" keepend syntax region orgCode matchgroup=orgBlockDelimiter start="^\s*#+BEGIN_SRC" end="^\s*#+END_SRC" keepend
syntax region orgCode matchgroup=orgBlockDelimiter start="^\s*#+BEGIN_EXAMPLE" end="^\s*#+END_EXAMPLE" keepend syntax region orgCode matchgroup=orgBlockDelimiter start="^\s*#+BEGIN_EXAMPLE" end="^\s*#+END_EXAMPLE" keepend
syntax region orgCode matchgroup=orgCodeDelimiter start="\~\S\@=\~\@!" end="\S\@<=\~\@<!\~" keepend
highlight def link orgVerbatim Identifier highlight def link orgVerbatim Identifier
highlight def link orgVerbatimDelimiter orgVerbatim highlight def link orgVerbatimDelimiter orgVerbatim