[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] tcl syntax filter
From: |
Thomas Dickey |
Subject: |
Re: [vile] tcl syntax filter |
Date: |
Mon, 09 Jul 2012 20:50:54 -0400 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Mon, Jul 09, 2012 at 07:46:32PM -0400, Wayne Cuddy wrote:
> Ok, looks like I need to do some more testing... the continuation
> definitely works for comments.
hmm - it doesn't appear to here. In the first line, I see
"this is line1\
as a string and in the second line
" ;# my comment
as a string, while it seems that we should expect
this is line2"
as a string and
# my comment
as a comment.
> On Mon, Jul 09, 2012 at 02:03:18PM -0400, Wayne Cuddy wrote:
> > I should add that line continuation can operate on a number of different
> > TCL constructs, not just string literals. So it should hold true for a
> > proc call, proc definition, brace literals... essentially carry over the
> > state from the current line.
> >
> > On Mon, Jul 09, 2012 at 01:57:43PM -0400, Wayne Cuddy wrote:
> > > Not sure if this is an easy fix or not as I've not looked at the code
> > > but the TCL syntax highlighter does not seem to recognize the line
> > > continuation character (\) while processing string literals, it
> > > terminates at the end of the line.
> > >
> > > The following works:
> > >
> > > set mystring "this is my string"
> > >
> > > However in the next fragment '"this is line1\' is highlighted correctly
> > > but 'this is line2' is not, and '" ;# comment' is highlighted
> > > as a string literal.
> > >
> > > set mystring "this is line1\
> > > this is line2" ;# my comment
> > >
> > > Wayne
> > >
> > > _______________________________________________
> > > vile mailing list
> > > address@hidden
> > > https://lists.nongnu.org/mailman/listinfo/vile
> >
> > _______________________________________________
> > vile mailing list
> > address@hidden
> > https://lists.nongnu.org/mailman/listinfo/vile
>
> _______________________________________________
> vile mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/vile
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature