From 6d350c88af3ea33715a136ecf9135042a363883f Mon Sep 17 00:00:00 2001 From: paulb777 Date: Tue, 2 Aug 2011 09:19:11 -0700 Subject: [PATCH] Fix illegal token on carriage return character from Windows edited files --- lib/ace/narcissus/jslex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/narcissus/jslex.js b/lib/ace/narcissus/jslex.js index e2c5a646c4b..9667415890e 100644 --- a/lib/ace/narcissus/jslex.js +++ b/lib/ace/narcissus/jslex.js @@ -166,7 +166,7 @@ Tokenizer.prototype = { break; } } - } else if (ch !== ' ' && ch !== '\t') { + } else if (ch !== ' ' && ch !== '\t' && ch !== '\r') { this.cursor--; return; }