[BUG] Groovy regexp syntax highlighting in Vim 7.4

737 views
Skip to first unread message

rdolgushin

unread,
Sep 17, 2013, 2:05:48 PM9/17/13
to vim...@googlegroups.com

goo...@mgjg.com

unread,
Aug 20, 2014, 11:04:40 AM8/20/14
to vim...@googlegroups.com
On Tuesday, September 17, 2013 2:05:48 PM UTC-4, rdolgushin wrote:
> For details see http://stackoverflow.com/questions/18855809/groovy-syntax-highlighting-in-vim-7-4
>
> Possible sollution: delete or comment this line https://code.google.com/p/vim/source/browse/runtime/syntax/groovy.vim?r=22fa3049e9348a8ce556a3e5ba65c6f0a7aa6b4a#260

a slightly better (but incomplete) solution would be to change the line (260)
from
start='/[^/]'
to
start='/[^ /]'

this would treat something like (x / y) as simple division ... but would not treat / xyzz/ as a groovy reg expr string ... That is, groovy reg expr strings that do not start with a space are interpreted correctly, but ones that start with a space will not be highlighted

Kenichi Ito

unread,
Apr 17, 2015, 2:11:33 PM4/17/15
to vim...@googlegroups.com, yah...@gmx.de
Reply all
Reply to author
Forward
0 new messages