Juan571 / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

"Illegal character" stops syntax highlighting and errors searching #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Write code:
var a = 1;
var b b = 2;
var c c = 3;
var d = 4;
#
var e = 5;
var f f = 6;

2. Try to search for all errors (C-x ')
3.

What is the expected output? What do you see instead?
Expected: cursor position will cycle throw lines 2, 3, 5, 7. Also, lines 6
and 7 must be highlighted.
I see: cursor position cycles throw lines 2, 3, 5 but not line 7. Also,
lines 6 and 7 aren't highlighted.

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by cub...@gmail.com on 1 Apr 2008 at 4:22

GoogleCodeExporter commented 8 years ago
This also happens with the Unicode BOF marker (0xEF, 0xBB). Not sure if your 
js2 mode should be ignoring it or 
emacs should filter it. I am on Aquaemacs 1.3, Mac OS 10.5.

Original comment by Deepak.G...@gmail.com on 1 Apr 2008 at 6:17

GoogleCodeExporter commented 8 years ago
As of the 20080413 release, you can set js2-skip-preprocessor-directives to t to
treat # as a comment character, which solves part of this problem.

I still need to make the scanner not throw an error when illegal characters are
encountered - it should just skip them and flag them.

Original comment by steve.ye...@gmail.com on 14 Apr 2008 at 10:06

GoogleCodeExporter commented 8 years ago
Duplicate of issue 37.

Original comment by steve.ye...@gmail.com on 16 Apr 2008 at 9:44