Screenshot: https://ibb.co/jD6mPcHi Wolfgang,Thanks.That change does help, but it still gets confused.Could that change be made permanent though? Could it be added to vim's default lhaskell.vim?CheersIvanOn 19 March 2018 at 05:47, Wolfgang Jeltsch <wolfgang-it@jeltsch.info> wrote:Hi, Ivan!Does this problem occur with code environments or only with spec environments? At least Vim 7.4 does not mention spec in syntax/lhaskell.vim. I have patched this file such that it does all the things with spec that it does with code, and it works just fine. The patch is as follows:78c78< if search('\\documentclass\|\\begin{\(code}\)\@!\|\\\(sub\)* section\|\\chapter|\\part','W' ) != 0 ---> if search('\\documentclass\|\\begin{\(code}\)\@!\|\\begin{\( spec}\)\@!\|\\\(sub\)*section\ |\\chapter|\\part','W') != 0 110a111> syntax region lhsHaskellBeginEndBlock start="^\\begin{spec}\s*$" matchgroup=NONE end="\%(^\\end{spec}.*$\)\@=" contains=@haskellTop,beginCodeBegin containedin=@lhsTeXContainer All the best,WolfgangAm Sonntag, den 18.03.2018, 01:39 -0400 schrieb Ivan Perez:IvanCheersThis list is named as maintainer in the Ubuntu package vim-runtime's lhaskell.vim syntax file:Where should this be reported?This also makes the spellchecker ignore text paragraphs (until a matching $ is found).Hi cafe,The lhaskell edit mode for lhs2tex documents in vim gets confused when a dollar is used in code.
" Maintainer: Haskell Cafe mailinglist <haskell-cafe@haskell.org>
" Original Author: Arthur van Leeuwen <arthurvl@cs.uu.nl>
" Last Change: 2010 Apr 11
" Version: 1.04_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi- bin/mailman/listinfo/haskell- Only members subscribed via the mailman list are allowed to post.cafe
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell- cafe
Only members subscribed via the mailman list are allowed to post.