Skip to content

Commit 11b14d0

Browse files
committed
fix: allow special chars and tab chars in options
ref: #3242
1 parent 6e1229e commit 11b14d0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

autoload/vimtex/syntax/core.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ function! vimtex#syntax#core#init_rules() abort " {{{1
5151
syntax cluster texClusterOpt contains=
5252
\texCmd,
5353
\texComment,
54+
\texTabularChar,
55+
\texSpecialChar,
5456
\texGroup,
5557
\texLength,
5658
\texOpt,

test/test-syntax/test-core.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,9 @@ \section*{Acknowledgement}
141141
%mathzone end
142142
}
143143
144+
\foo[abc\\def]
145+
\foo[abc\%def]
146+
\foo[abc\\ def]
147+
\foo[abc\% def]
148+
144149
\end{document}

0 commit comments

Comments
 (0)