[Webkit-unassigned] [Bug 27147] JS Syntax Highlight is incorrect for keyword followed by string or regexp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 11 22:01:22 PDT 2009


Keishi Hattori <casey.hattori at gmail.com> changed:

           What    |Removed                     |Added
  Attachment #41019|                            |review?
               Flag|                            |
  Attachment #32554|0                           |1
        is obsolete|                            |

--- Comment #9 from Keishi Hattori <casey.hattori at gmail.com>  2009-10-11 22:01:21 PDT ---
Created an attachment (id=41019)
 --> (https://bugs.webkit.org/attachment.cgi?id=41019)
New Javascript Synax Highlighter

I'm sorry for the bad patch. 

I have rewritten the syntax highlighter from scratch. 
It now uses similar logic as a proper ECMAScript tokenizer so it should not
confuse DIV and REGEXP anymore.
It also can figure out IDENT tokens(even with Unicode characters too). It's
turned off right now to cut down on the number of elements but maybe we could
use it in the future for the debugger to show variable values.
I also changed it to process 100 tokens at a time. 
It was still beach balling with minified JS so I put a limit on the number of
characters per line it will color.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list