Fixed #649: Silly regex bug
This commit is contained in:
parent
4c76e8f740
commit
baa6467bc6
@ -81,7 +81,7 @@ if get(g:, 'tex_fast', 'r') =~# 'r'
|
|||||||
\ '[Ppf]?[Nn]otecite',
|
\ '[Ppf]?[Nn]otecite',
|
||||||
\]
|
\]
|
||||||
execute 'syntax match texStatement'
|
execute 'syntax match texStatement'
|
||||||
\ '/\v\\' . s:pattern . '\ze\s*\{/'
|
\ '/\v\\' . s:pattern . '\ze\s*%(\[|\{)/'
|
||||||
\ 'nextgroup=texRefOption,texCite'
|
\ 'nextgroup=texRefOption,texCite'
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ if get(g:, 'tex_fast', 'r') =~# 'r'
|
|||||||
\ 'cite%(field|list|name)',
|
\ 'cite%(field|list|name)',
|
||||||
\]
|
\]
|
||||||
execute 'syntax match texStatement'
|
execute 'syntax match texStatement'
|
||||||
\ '/\v\\' . s:pattern . '\ze\s*\{/'
|
\ '/\v\\' . s:pattern . '\ze\s*%(\[|\{)/'
|
||||||
\ 'nextgroup=texRefOptions,texCites'
|
\ 'nextgroup=texRefOptions,texCites'
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
@ -90,6 +90,8 @@ const double pi = 3.1415926535
|
|||||||
% Cite commands
|
% Cite commands
|
||||||
\cite{}
|
\cite{}
|
||||||
\citet*{}
|
\citet*{}
|
||||||
|
\citep{bibtexkey1}
|
||||||
|
\citep[e.g.][]{bibtexkey2}
|
||||||
\citealt{}
|
\citealt{}
|
||||||
\citealt*{}
|
\citealt*{}
|
||||||
\citealp{}
|
\citealp{}
|
||||||
|
Loading…
Reference in New Issue
Block a user