vim-pandoc / vim-pandoc-syntax

pandoc markdown syntax, to be installed alongside vim-pandoc
MIT License
425 stars 61 forks source link

Enhancement request - highlight the {.smallcaps} attribute… #305

Open cjns1989 opened 4 years ago

cjns1989 commented 4 years ago

I was looking at this in my pandoc md source:

[Small Caps Text… etc.]{.smallcaps}'

I noticed that thanks to having installed the pandoc.vim syntax file the actual text ('Small Caps Text… etc.') together with the '[' and ']' square brackets are highlighted.

On the other hand the '{.smallcaps}' attribute isn't. It appears to be linked… presumably by default…? to the the vim 'Normal' highlight group.

I thought it might be a useful enhancement if the attribute were also highlighted to make these sequences easier to spot and differentiate them especially when the document also includes 'regular text' (as opposed to markdown tags) that happens to between square brackets.

After taking a look at a number of colorschemes… I thought vim standard highlight groups 'Identifier'… 'Special'… or 'Type' might be good candidates.

I am not a pandoc markdown expert by any stretch of the imagination but I thought there may be other attributes with a similar '{.attribute}' syntax that might perhaps also benefit by being treated likewise (?)

Thanks,

CJ

N.B alerque recommended I open this issue. See #304.