aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/.vimrc b/.vimrc
index bceacc9..382d2a0 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,12 +1,12 @@
-" fix vimtex highlighting for \code{}
-syntax match texCmdVerb "\\code\>\*\?" nextgroup=texVerbZoneInline
+" fix vimtex highlighting for custom verbatim commands
+syntax match texCmdVerb "\\codeinline\>\*\?" nextgroup=texVerbZoneInline
call vimtex#syntax#core#new_arg('texVerbZoneInline', {
\ 'contains': '',
\ 'matcher': 'start="{" end="}"'
\})
-" and \begin{codeblock} ... \end{codeblock}
+" and \begin{blockcode} ... \end{blockcode}
call vimtex#syntax#core#new_env({
- \ 'name': 'codeblock',
+ \ 'name': 'blockcode',
\ 'region': 'texVerbZone',
\})