From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,20c75acdaea028c3,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!i42g2000cwa.googlegroups.com!not-for-mail From: "Jerry" Newsgroups: comp.lang.ada Subject: Usage of \ in Ada Date: 21 Aug 2006 01:03:31 -0700 Organization: http://groups.google.com Message-ID: <1156147411.215015.31110@i42g2000cwa.googlegroups.com> NNTP-Posting-Host: 71.35.35.3 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1156147414 17853 127.0.0.1 (21 Aug 2006 08:03:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 21 Aug 2006 08:03:34 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i42g2000cwa.googlegroups.com; posting-host=71.35.35.3; posting-account=Ax24hA0AAABV39UFqUVhb0kauOuAbI3T Xref: g2news2.google.com comp.lang.ada:6291 Date: 2006-08-21T01:03:31-07:00 List-Id: I've suggested to the author of the most excellent OS X editor TextMate that it is an error to always consider a \ in quoted text as an escape character with respect to syntax coloring. He as asked for specific examples and before I lead him wrong I want to check around. For example, in the Ada snippet Put_Line("Hello, World"); Put_Line("\"); Put_Line("Hello again"); TextMate looks at the \ and says, oh--the next character, ", is supposed to be escaped, and then proceeds to color the second half of the second line and the first half of the third line as though it were quoted text. It then colors the second half of the third line as though it were _unquoted_ text--i.e., the \ causes a "quote parity" error in the syntax coloring. The current work-around is to put a " in a comment at the end of the second line. At least one other editor, Xcode (Apple's own) handles this correctly for all of C (treating the \ as the beginning of an escape sequence), and Pascal and Ada (treating the \ as just another character). Am I right in recommending that this behavior for Ada be such that \ is never an escape character? Jerry