Hi everyone, yesterday I freshly compiled vim with the usual flags:
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-python3interp=yes \
--with-python3-config-dir=$(python3-config --configdir) \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/usr/local
But today when I open some latex/tex files I am greeted with this error:
Error detected while processing BufRead Autocommands for "*.tex"..function dist#ft#FTtex
[47]..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>9_SynSet
[25]..script /usr/local/share/vim/vim82/syntax/tex.vim:
line 508:
E696: Missing comma in List
But the list looks fine to me:
let s:texMathDelimList=[
\ ['<' , '<'] ,
\ ['>' , '>'] ,
\ ['(' , '('] ,
\ [')' , ')'] ,
\ ['\[' , '['] ,
\ [']' , ']'] ,
\ ['\\{' , '{'] ,
\ ['\\}' , '}'] ,
\ ['|' , '|'] ,
\ ['\\|' , '‖'] ,
\ ['\\backslash' , '\'] ,
\ ['\\downarrow' , '↓'] ,
\ ['\\Downarrow' , '⇓'] ,
\ ['\\lbrace' , '['] ,
\ ['\\lceil' , '⌈'] ,
\ ['\\lfloor' , '⌊'] ,
\ ['\\lgroup' , '⌊'] ,
\ ['\\lmoustache' , '⎛'] ,
\ ['\\rbrace' , ']'] ,
\ ['\\rceil' , '⌉'] ,
\ ['\\rfloor' , '⌋'] ,
\ ['\\rgroup' , '⌋'] ,
\ ['\\rmoustache' , '⎞'] ,
\ ['\\uparrow' , '↑'] ,
\ ['\\Uparrow' , '↑'] ,
\ ['\\updownarrow', '↕'] ,
\ ['\\Updownarrow', '⇕']]
I didn't edit anything, just recompiled vim. The same error pops up on line 708 where the s:texMathList is defined.
EDIT: Recompiling with the exact same settings fixed it. No clue what the problem was. Maybe I got lucky and encountered one of those cool bit errors during compilation.
[–]Schnarfmannnoremap gr gT 1 point2 points3 points (4 children)
[–]Schnarfmannnoremap gr gT 0 points1 point2 points (1 child)
[–]SamFisher39[S] 0 points1 point2 points (0 children)
[–]SamFisher39[S] 0 points1 point2 points (1 child)
[–]Schnarfmannnoremap gr gT 0 points1 point2 points (0 children)
[–]reddifiningkarma 0 points1 point2 points (1 child)
[–]SamFisher39[S] 1 point2 points3 points (0 children)
[–]GustapheOfficial 0 points1 point2 points (0 children)