Posted 20 years ago
by meathook
-
Genesys Telecommunications

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.