[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vile] minor TCL syntax filter
From: |
Wayne Cuddy |
Subject: |
[vile] minor TCL syntax filter |
Date: |
Fri, 2 Dec 2016 19:09:41 -0500 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
I've attached a small image as that was the easiest way to convey this
syntax issue.
The line causing the issue is:
177 set ts \[clock format \[clock seconds]\
178 -format {%Y-%m-%d %H:%M:%S} -gmt 1]
There are 2 ways to modify the file that maintains TCL semantics and
gets the highlighter to work past this block.
1) Wrap the $ts command expansion in double quotes.
177 set ts "\[clock format \[clock seconds]\
178 -format {%Y-%m-%d %H:%M:%S} -gmt 1]"
1) Balance the escape '\' when terminating command expansions, I
usually don't do this since the TCL interpreter allows it but I
prabably should for consitency.
177 set ts \[clock format \[clock seconds\]\
178 -format {%Y-%m-%d %H:%M:%S} -gmt 1\]
Since there is a work around and I don't believe this is an easy fix
there's really no reason to tackle it... I just figured I'd throw it out
there.
Wayne
tcl_highlight.png
Description: PNG image
- [vile] minor TCL syntax filter,
Wayne Cuddy <=