Fixed #649: Silly regex bug

This commit is contained in:
Karl Yngve Lervåg 2017-01-04 12:37:36 +01:00
parent 4c76e8f740
commit baa6467bc6
2 changed files with 4 additions and 2 deletions

View File

@ -81,7 +81,7 @@ if get(g:, 'tex_fast', 'r') =~# 'r'
\ '[Ppf]?[Nn]otecite',
\]
execute 'syntax match texStatement'
\ '/\v\\' . s:pattern . '\ze\s*\{/'
\ '/\v\\' . s:pattern . '\ze\s*%(\[|\{)/'
\ 'nextgroup=texRefOption,texCite'
endfor
@ -97,7 +97,7 @@ if get(g:, 'tex_fast', 'r') =~# 'r'
\ 'cite%(field|list|name)',
\]
execute 'syntax match texStatement'
\ '/\v\\' . s:pattern . '\ze\s*\{/'
\ '/\v\\' . s:pattern . '\ze\s*%(\[|\{)/'
\ 'nextgroup=texRefOptions,texCites'
endfor

View File

@ -90,6 +90,8 @@ const double pi = 3.1415926535
% Cite commands
\cite{}
\citet*{}
\citep{bibtexkey1}
\citep[e.g.][]{bibtexkey2}
\citealt{}
\citealt*{}
\citealp{}