Improve syntax highlighting colours and remove heading length limit
This commit is contained in:
@@ -35,7 +35,7 @@ syntax match orgOption /^\s*#+\w\+.*$/ keepend
|
|||||||
syntax region orgTitle matchgroup=orgOption start="^\s*#+TITLE:\s*" end="$" keepend oneline
|
syntax region orgTitle matchgroup=orgOption start="^\s*#+TITLE:\s*" end="$" keepend oneline
|
||||||
|
|
||||||
highlight def link orgBlockDelimiter SpecialComment
|
highlight def link orgBlockDelimiter SpecialComment
|
||||||
highlight def link orgOption Constant
|
highlight def link orgOption Type
|
||||||
highlight def link orgTitle Function
|
highlight def link orgTitle Function
|
||||||
|
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ syntax region orgVerbatim matchgroup=orgBlockDelimiter start="^\s*#+BEGIN_.*"
|
|||||||
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
|
||||||
|
|
||||||
highlight def link orgVerbatim Delimiter
|
highlight def link orgVerbatim Identifier
|
||||||
highlight def link orgVerbatimDelimiter orgVerbatim
|
highlight def link orgVerbatimDelimiter orgVerbatim
|
||||||
highlight def link orgCode Statement
|
highlight def link orgCode Statement
|
||||||
highlight def link orgCodeDelimiter orgCode
|
highlight def link orgCodeDelimiter orgCode
|
||||||
@@ -66,18 +66,31 @@ syntax match orgHeading3 /^\s*\*\{3}\s\+.*$/ keepend contains=@Spell,orgTag,orgT
|
|||||||
syntax match orgHeading4 /^\s*\*\{4}\s\+.*$/ keepend contains=@Spell,orgTag,orgTodo
|
syntax match orgHeading4 /^\s*\*\{4}\s\+.*$/ keepend contains=@Spell,orgTag,orgTodo
|
||||||
syntax match orgHeading5 /^\s*\*\{5}\s\+.*$/ keepend contains=@Spell,orgTag,orgTodo
|
syntax match orgHeading5 /^\s*\*\{5}\s\+.*$/ keepend contains=@Spell,orgTag,orgTodo
|
||||||
syntax match orgHeading6 /^\s*\*\{6}\s\+.*$/ keepend contains=@Spell,orgTag,orgTodo
|
syntax match orgHeading6 /^\s*\*\{6}\s\+.*$/ keepend contains=@Spell,orgTag,orgTodo
|
||||||
|
syntax match orgHeadingE /^\s*\*\{7,}\s\+.*$/ keepend contains=@Spell,orgTag,orgTodo
|
||||||
|
|
||||||
syntax match orgTag /:\w\{-}:/ contained contains=orgTag
|
syntax match orgTag /:\w\{-}:/ contained contains=orgTag
|
||||||
exec 'syntax keyword orgTodo contained ' . join(g:org_state_keywords, ' ')
|
exec 'syntax keyword orgTodo contained ' . join(g:org_state_keywords, ' ')
|
||||||
|
|
||||||
|
if hlexists('htmlH1')
|
||||||
|
highlight def link orgHeading1 htmlH1
|
||||||
|
highlight def link orgHeading2 htmlH2
|
||||||
|
highlight def link orgHeading3 htmlH3
|
||||||
|
highlight def link orgHeading4 htmlH4
|
||||||
|
highlight def link orgHeading5 htmlH5
|
||||||
|
highlight def link orgHeading6 htmlH6
|
||||||
|
highlight def link orgHeadingE htmlH6
|
||||||
|
else
|
||||||
|
hi def link orgHeading1 Constant
|
||||||
|
hi def link orgHeading2 String
|
||||||
|
hi def link orgHeading3 PreProc
|
||||||
|
hi def link orgHeading4 PreProc
|
||||||
|
hi def link orgHeading5 PreProc
|
||||||
|
hi def link orgHeading6 PreProc
|
||||||
|
hi def link orgHeadingE PreProc
|
||||||
|
endif
|
||||||
|
|
||||||
highlight def link orgHeading1 htmlH1
|
|
||||||
highlight def link orgHeading2 htmlH2
|
|
||||||
highlight def link orgHeading3 htmlH3
|
|
||||||
highlight def link orgHeading4 htmlH4
|
|
||||||
highlight def link orgHeading5 htmlH5
|
|
||||||
highlight def link orgHeading6 htmlH6
|
|
||||||
highlight def link orgTodo Todo
|
highlight def link orgTodo Todo
|
||||||
highlight def link orgTag Constant
|
highlight def link orgTag Type
|
||||||
|
|
||||||
|
|
||||||
" Timestamps
|
" Timestamps
|
||||||
|
|||||||
Reference in New Issue
Block a user