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: Thomas Dickey
Subject: Re: [vile] shell syntax highlighting confused by here documents
Date: Fri, 17 Apr 2015 12:02:16 -0400 (EDT)

----- Original Message -----
| From: "j. van den hoff" <address@hidden>
| To: "Thomas Dickey" <address@hidden>
| Cc: address@hidden
| Sent: Friday, April 17, 2015 11:44:05 AM
| Subject: Re: [vile] shell syntax highlighting confused by here documents
| 
| 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 (I'll take a look - fixing syntax filters is often not that hard...)

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

sounds good (I've been a little slow on 9.8q - too many pots on the stove...)

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net



reply via email to

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