Single Comment Escape, does it work?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
gcl
Posts: 1
Joined: Thu Jan 08, 2009 5:38 pm

Single Comment Escape, does it work?

Post by gcl »

Does the singlecommentesc keyword works?
The language uses ! as a comment and it also uses ! to escape it.
So the following code

case msg^dest.route^ty of
begin
! 0! case msg^dest.route^st of
begin

should be

case msg^dest.route^ty of
begin
! 0! case msg^dest.route^st of
begin

The syntax file looks like this ( The TAL.SYN)
[Syntax]
Namespace1 = 6
IgnoreCase = Yes
InitKeyWordChars = A-Za-z_^
KeyWordChars = A-Za-z0-9_^
BracketChars=[]()
OperatorChars = -+*/<>!~%&|=@
PreprocStart = ?
SyntaxStart =
SyntaxEnd =
CommentStart =
CommentEnd =
CommentStartAlt =
CommentEndAlt =
SingleCommentEsc = !
SingleComment = !
SingleCommentCol =
SingleCommentAlt = --
SingleCommentColAlt =
Post Reply