vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] shell syntax highlighting confused by here documents


From: j. van den hoff
Subject: Re: [vile] shell syntax highlighting confused by here documents
Date: Fri, 17 Apr 2015 17:44:05 +0200
User-agent: Opera Mail/12.12 (MacIntel)

On Fri, 17 Apr 2015 17:15:09 +0200, Thomas Dickey <address@hidden> wrote:

----- Original Message -----
| From: "j. van den hoff" <address@hidden>
| To: address@hidden
| Sent: Friday, April 17, 2015 10:41:40 AM
| Subject: [vile] shell syntax highlighting confused by here documents
|
| hi there,
|
| I've noted the the shmode syntax highlighting filter gets confused by
| "here document syntax" (the `<<' or `<<<' redirections) of ksh or
| bash
| (but it's probably POSIX shell compliant anyway...) such as
|
|   while read -rA fields; do
|           [[ $fields == \++([!+])* ]] && cimsg+="${fields[3]}; "
|   done <<< "$fdiff"   #e.g., this comment is highlighted as 'keyword'
|
| is this a known limitation?

http://invisible-island.net/vile/CHANGES.html#v9_8l

+ modify sh-filt.l to recognize ksh93/bash here-strings, noting that
          they are not standardized.

(There is one regression in 9.8p - current - for which I have a patch, but have other items on backlog...)

ah, I see. thank's a lot! -- so I've just download 9.8o and it installed just fine (always happy when an install just runs through...). I can confirm that the problem is mostly solved in this version. but in fact the highlighting still behaves a bit strange: the `"$fdiff"' in my example (the source for the redirection) is now displayed in inverse video of a keyword if I enter the editor and do a search for `<<<'. if I then enter other search patterns moving me away from the `<<<' line the inverse video does change randomly it seems over the range of `fdiff' but does not go away completely. if I initially search instead for, e.g., the `while', i.e. jump to another line with the search the inverse video effect does not happen and everything looks fine. no complaint, just an observation ;-)

thanks again for the hint. I think I'll stick with 9.8o if nothing speaks against this.





--
Using Opera's revolutionary email client: http://www.opera.com/mail/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]