vile
[Top][All Lists]
Advanced

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

[vile] bug in the TCL filter


From: Wayne Cuddy
Subject: [vile] bug in the TCL filter
Date: Wed, 15 Oct 2014 15:36:10 -0400
User-agent: Mutt/1.4.2.3i

This code:

proc ProcessFile {date chan} {
        
    while {[gets $chan line] >= 0} {
                
        if {! [string match {*] rcvd frame, fifos *} $line]} {
            continue
        }
         
    }
}

Will cause all highlighting following the final '}' of the ProcessFile
function to stop. The cause is the ']' in the curly brace pattern arg
to [string match]. It works if I change the pattern to "*\] ..." but I
tend to use cutely brace strings so I don't have to clutter the string
with escape sequences.

Wayne



reply via email to

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