vim-pandoc / vim-pandoc-legacy

[UNSUPPORTED/use vim-pandoc/vim-pandoc] vim bundle for pandoc users
143 stars 23 forks source link

Add ':' to syntax highlight for citations #40

Closed ivotron closed 11 years ago

ivotron commented 12 years ago

When a citation is typed, eg: [@doe_something:_2006] the text after the : is not correctly highlighted.

fmoralesc commented 12 years ago

I'm unable to reproduce this.

ivotron commented 12 years ago

this is the highlighting I get. The following settings in .vimrc:

" HTML style comments
"
setlocal commentstring=<!--%s-->
setlocal comments=s:<!--,m:\ \ \ \ ,e:-->,fb:-,fb:*,fb:+

" add dash and underscore as letter of words in dictionaries
setlocal iskeyword+=@,48-57,-,_,*,:,192-255

And vim-pandoc version:

ivo@reynalda:~/.opt/vam/pandoc
$ git rev-parse HEAD
c593c2b471964cb385ed349cbde8af86b2d09af7

ivo@reynalda:~/.opt/vam/pandoc
$ git remote -v
origin  git://github.com/vim-pandoc/vim-pandoc.git (fetch)
origin  git://github.com/vim-pandoc/vim-pandoc.git (push)

ivo@reynalda:~/.opt/vam/pandoc
$
fmoralesc commented 12 years ago

OK, I can confirm now. I get this, though. I have

let g:pandoc_no_spans = 1

in my vimrc, which disables the highlighting of italics. That can be conflicting in the second case. I think I know what the problem is, I'll try to solve it asap.

ivotron commented 12 years ago

I see, using

let g:pandoc_no_spans = 1

fixes the highlighting of the square-braket-sorrounded reference. Thanks a lot

fmoralesc commented 11 years ago

I'm working on the syntax file again at https://github.com/fmoralesc/vim-pandoc-syntax (will merge when ready). This shouldn't be an issue anymore, so I'm closing this issue,