Fix issues with hyperlinks
This commit is contained in:
@@ -10,4 +10,4 @@ Org-mode files.
|
|||||||
|
|
||||||
- **TODO**: test with other colorthemes
|
- **TODO**: test with other colorthemes
|
||||||
- **TODO**: fix italics
|
- **TODO**: fix italics
|
||||||
- **TODO**: fix hyperlinks
|
- **TODO**: fix spell checker
|
||||||
|
|||||||
@@ -49,13 +49,11 @@ syntax match orgTimestamp /<\d\{4}-\d\{2}-\d\{2}.\{-}>/ keepend
|
|||||||
highlight def link orgTimestamp Operator
|
highlight def link orgTimestamp Operator
|
||||||
|
|
||||||
|
|
||||||
" FIXME Hyperlinks
|
" Hyperlinks
|
||||||
" - Highlight a link without formatting
|
syntax match orgHyperlink /\[\{2}\([^][]\{-1,}\]\[\)\?[^][]\{-1,}\]\{2}/ containedin=ALL contains=orgHyperLeft,orgHyperRight,orgHyperURL
|
||||||
" - Fix issues with italics
|
syntax match orgHyperLeft /\[\{2}/ contained conceal
|
||||||
syntax match orgHyperlink "\[\{2}[^][]*\(\]\[[^][]*\)\?\]\{2}" contains=orgHyperlinkBracketsLeft,orgHyperlinkURL,orgHyperlinkBracketsRight containedin=ALL
|
syntax match orgHyperRight /\]\{2}/ contained conceal
|
||||||
syntax match orgHyperlinkBracketsLeft contained "\[\{2}#\?" conceal
|
syntax match orgHyperURL /[^][]\{-1,}\]\[/ contained conceal
|
||||||
syntax match orgHyperlinkURL contained "[^][]*\]\[" conceal
|
|
||||||
syntax match orgHyperlinkBracketsRight contained "\]\{2}" conceal
|
|
||||||
highlight def link orgHyperlink Underlined
|
highlight def link orgHyperlink Underlined
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user