Hi Attached patch fixes a syntax highlighting problem in Vim-7.2.385 when opening the attached flex file "foo.l".
Notice how syntax hightlighting is wrong right after
"<def_mode>{ID}" in the first screenshot.
http://dominique.pelle.free.fr/pic/flex-syntax-highlighting-before.png
http://dominique.pelle.free.fr/pic/flex-syntax-highlighting-after.png
Cheers
-- Dominique
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
foo.l
Description: Binary data
diff -r 907cf09fbb32 runtime/syntax/lex.vim
--- a/runtime/syntax/lex.vim Tue Mar 02 18:16:09 2010 +0100
+++ b/runtime/syntax/lex.vim Thu Mar 04 21:15:22 2010 +0100
@@ -72,7 +72,7 @@
syn region lexPatString matchgroup=String start=+"+ skip=+\\\\\|\\"+ matchgroup=String end=+"+ contained
endif
syn match lexPatTag "^<\I\i*\(,\I\i*\)*>" contained nextgroup=lexPat,lexPatTag,lexMorePat,lexPatSep
-syn match lexPatTagZone "^<\I\i*\(,\I\i*\)*>\s*\ze{" contained nextgroup=lexPatTagZoneStart
+syn match lexPatTagZone "^<\I\i*\(,\I\i*\)*>\s\+\ze{" contained nextgroup=lexPatTagZoneStart
syn match lexPatTag +^<\I\i*\(,\I\i*\)*>*\(\\\\\)*\\"+ contained nextgroup=lexPat,lexPatTag,lexMorePat,lexPatSep
if has("folding")
syn region lexPatTagZoneStart matchgroup=lexPatTag fold start='{' end='}' contained contains=lexPat,lexPatComment
