Skip to content

Commit 14df439

Browse files
Add basic syntax highlighting for block delimiters.
1 parent 43f6fe0 commit 14df439

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

syntax/org.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ hi def link org_verbatim String
4949

5050
let s:ts_highlight = luaeval('require("orgmode.config"):ts_highlights_enabled()')
5151
if !s:ts_highlight
52-
runtime syntax/org_legacy.vim
52+
runtime syntax/org_legacy.vim
53+
else
54+
syntax match org_block_delimiter /^\s*#+BEGIN_.*/
55+
syntax match org_block_delimiter /^\s*#+END_.*/
56+
hi default link org_block_delimiter Comment
5357
endif
5458

5559
" Hyperlinks: {{{1

0 commit comments

Comments
 (0)