Tuesday, September 1, 2009

Re: vim 7.1 - sh.vim syntax file - unwarranted syntax error detected.

Hi

Dr Chip sent me his v109 sh.vim to try, but...

This handles my two line test case, but the OP's script is still not
highlighted correctly; the line is

eval [ \"\${SCREEN_FONT$vc}\" ] &&
eval CONSOLE_FONT$vc=3D\${CONSOLE_=
FONT$vc:-\${SCREEN_FONT$vc}}

The highlighting is still not handling escaped quotes in evals well.
My test case used echo so that the result would be a valid script, but
it was a poor choice, the following would have been better.

eval [ \"Lorem\" ]
eval ipsum

With these convoluted eval expressions IMO rendering them perfectly is
not so desirable, but getting the parsing state (f.ex. in or out of a
quoted string) right so that the rest of the file highlights properly
is desirable.

Regards, John
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment