Posted 19 years ago
by meathook
-
Genesys Telecommunications
![Avatar](https://secure.gravatar.com/avatar/77d72c1c073f792d577ed934e23f89a3.jpg?s=64&d=identicon&r=g)
I use the SyntaxEditor control in a development tool that uses an extended form of TCL. In a version 1.x language file, how do you support escaped newlines?
For example:
#set x 1 \
set y 2
would, according to my language file, treat the first line as a comment. This is due to the fact that TCL is a line delimited language. However, the parser treats the \ as an escape. Since the newline is next, it is escaped and the next line also is part of the comment.
I can provide my language file if necessary.
For example:
#set x 1 \
set y 2
would, according to my language file, treat the first line as a comment. This is due to the fact that TCL is a line delimited language. However, the parser treats the \ as an escape. Since the newline is next, it is escaped and the next line also is part of the comment.
I can provide my language file if necessary.