aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-11-11 09:05:05 +0100
committerChristian Clason <ch.clason+github@icloud.com>2024-11-11 09:24:57 +0100
commit7919aa9102e1b9b7a9f7feaea6b134a98f5b60fc (patch)
treea0741e1fb08cd257d4e63c8383b7babd7c45c477
parent7906532e08a09b7ab29990bc67f719a07576fe51 (diff)
downloadrneovim-7919aa9102e1b9b7a9f7feaea6b134a98f5b60fc.tar.gz
rneovim-7919aa9102e1b9b7a9f7feaea6b134a98f5b60fc.tar.bz2
rneovim-7919aa9102e1b9b7a9f7feaea6b134a98f5b60fc.zip
vim-patch:622f6f5: runtime(tex): extra Number highlighting causes issues
So let's revert "runtime(tex): add Number highlighting to syntax file" This (partly) reverts commits 8e6b5034f32049fd0 and 6065755a39d838aab fixes: vim/vim#16030 https://github.com/vim/vim/commit/622f6f5b9a9c2b88423f31a98e99cd3324446fcf Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--runtime/syntax/tex.vim9
1 files changed, 3 insertions, 6 deletions
diff --git a/runtime/syntax/tex.vim b/runtime/syntax/tex.vim
index bd47e168d7..77a40e11d3 100644
--- a/runtime/syntax/tex.vim
+++ b/runtime/syntax/tex.vim
@@ -4,7 +4,6 @@
" Former Maintainer: Charles E. Campbell
" Last Change: Apr 22, 2022
" 2024 Feb 19 by Vim Project (announce adoption)
-" 2024 Nov 09 add Number highlight (#11271)
" Version: 121
" Former URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX
"
@@ -163,7 +162,7 @@ endif
" Clusters: {{{1
" --------
-syn cluster texCmdGroup contains=texCmdBody,texComment,texDefParm,texDelimiter,texDocType,texInput,texLength,texLigature,texMathDelim,texMathOper,texMathNumber,texNewCmd,texNewEnv,texRefZone,texSection,texBeginEnd,texBeginEndName,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,@texMathZones
+syn cluster texCmdGroup contains=texCmdBody,texComment,texDefParm,texDelimiter,texDocType,texInput,texLength,texLigature,texMathDelim,texMathOper,texNewCmd,texNewEnv,texRefZone,texSection,texBeginEnd,texBeginEndName,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,@texMathZones
if !s:tex_no_error
syn cluster texCmdGroup add=texMathError
endif
@@ -203,8 +202,8 @@ if !exists("g:tex_no_math")
syn cluster texMathZones contains=texMathZoneV,texMathZoneW,texMathZoneX,texMathZoneY,texMathZoneZ
syn cluster texMatchGroup add=@texMathZones
syn cluster texMathDelimGroup contains=texMathDelimBad,texMathDelimKey,texMathDelimSet1,texMathDelimSet2
- syn cluster texMathMatchGroup contains=@texMathZones,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texMathDelim,texMathMatcher,texMathOper,texMathNumber,texNewCmd,texNewEnv,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone
- syn cluster texMathZoneGroup contains=texBadPar,texComment,texDelimiter,texLength,texMathDelim,texMathMatcher,texMathOper,texMathNumber,texMathSymbol,texMathText,texRefZone,texSpecialChar,texStatement,texTypeSize,texTypeStyle
+ syn cluster texMathMatchGroup contains=@texMathZones,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texMathDelim,texMathMatcher,texMathOper,texNewCmd,texNewEnv,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone
+ syn cluster texMathZoneGroup contains=texBadPar,texComment,texDelimiter,texLength,texMathDelim,texMathMatcher,texMathOper,texMathSymbol,texMathText,texRefZone,texSpecialChar,texStatement,texTypeSize,texTypeStyle
if !s:tex_no_error
syn cluster texMathMatchGroup add=texMathError
syn cluster texMathZoneGroup add=texMathError
@@ -503,7 +502,6 @@ if !exists("g:tex_no_math")
endif
syn match texMathOper "[_^=]" contained
- syn match texMathNumber "\<\d\|\.\d" contained
" Text Inside Math Zones: {{{2
if s:tex_fast =~# 'M'
@@ -1332,7 +1330,6 @@ if !exists("skip_tex_syntax_inits")
hi def link texMath Special
hi def link texMathDelim Statement
hi def link texMathOper Operator
- hi def link texMathNumber Number
hi def link texNewCmd Statement
hi def link texNewEnv Statement
hi def link texOption Number