vile
[Top][All Lists]
Advanced

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

Re: [vile] tcl syntax filter


From: Wayne Cuddy
Subject: Re: [vile] tcl syntax filter
Date: Tue, 10 Jul 2012 15:57:30 -0400
User-agent: Mutt/1.4.2.3i

Sorry, I should have been more specific. This is what meant about
comments.

tcl_command with lots of parameters\
    that are\
    spread across multiple\
    lines

If I prefix it with a comment the rest of the lines are properly colored
as a comment.

;# tcl_command with lots of parameters\
    that are\
    spread across multiple\
    lines


On Mon, Jul 09, 2012 at 08:50:54PM -0400, Thomas Dickey wrote:
> 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



> _______________________________________________
> vile mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/vile




reply via email to

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