Skip to content

Commit

Permalink
Fix illegal token on carriage return character from Windows edited files
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed Aug 2, 2011
1 parent 5309e5c commit 6d350c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ace/narcissus/jslex.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Tokenizer.prototype = {
break;
}
}
} else if (ch !== ' ' && ch !== '\t') {
} else if (ch !== ' ' && ch !== '\t' && ch !== '\r') {
this.cursor--;
return;
}
Expand Down

0 comments on commit 6d350c8

Please sign in to comment.