Skip to content

Commit

Permalink
syntaxColorize fix for double-backslashes, thanks Patrick Borgeat
Browse files Browse the repository at this point in the history
  • Loading branch information
danstowell committed Jun 28, 2010
1 parent 6e9acd2 commit 116f552
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion common/Source/app/syntaxColorize.M
Expand Up @@ -295,7 +295,11 @@ void SyntaxColorize(NSTextView* textView)
do {
prevc = c;
c = input0();
if(prevc == '\\' && c == '\\' && input0() == '\"') break;
if(prevc == '\\' && c == '\\') {
prevc = c;
c = input0();
if(c == endchar) break;
}
} while (!(c == endchar && prevc != '\\') && c != 0);
if (c == 0 || textpos > textlen) {
//postbuf("Open ended string ... started on line %d in file '%s'\n",
Expand Down
7 changes: 5 additions & 2 deletions common/build/ChangeLog
@@ -1,7 +1,10 @@
Changes are listed below, grouped under each point release of SuperCollider.

Recent changes (will be SuperCollider v3.4)
===========================================
* 2010-06-28 syntaxColorize fix for double-backslashes, thanks Patrick Borgeat for the patch - ds


SuperCollider v3.4, released 2010-07
====================================

Headlines:
----------
Expand Down

0 comments on commit 116f552

Please sign in to comment.