Web Inspector: add round braces to javascript tokenizer
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 17:42:19 +0000 (17:42 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 17:42:19 +0000 (17:42 +0000)
commit7fab05eef789501485190088d37911e4f963d3cf
treeb44f18c8836448ead0a583e4f778f2a8a0f7d8eb
parentbe312973d1d313c41a08a957cf40dec0dc992c32
Web Inspector: add round braces to javascript tokenizer
https://bugs.webkit.org/show_bug.cgi?id=108692

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-02-04
Reviewed by Pavel Feldman.

Source/WebCore:

Change SourceJavascriptTokenizer.re2js file to produce "brace-start"
and "brace-end" tokens for round braces.
Regenerate SourceJavascriptTokenizer.js according to new re2js file.

No new tests: no change in behaviour.

* inspector/front-end/SourceJavaScriptTokenizer.js:
(WebInspector.SourceJavaScriptTokenizer.prototype.nextToken):
* inspector/front-end/SourceJavaScriptTokenizer.re2js:

LayoutTests:

Updated test expectations to correspond to new tokens "brace-start"
and "brace-end" in javascript tokenizer.

* inspector/editor/highlighter-basics-expected.txt:
* inspector/editor/text-editor-long-line-expected.txt:
* inspector/syntax-highlight-html-expected.txt:
* inspector/syntax-highlight-javascript-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141774 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/editor/highlighter-basics-expected.txt
LayoutTests/inspector/editor/text-editor-long-line-expected.txt
LayoutTests/inspector/syntax-highlight-html-expected.txt
LayoutTests/inspector/syntax-highlight-javascript-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/SourceJavaScriptTokenizer.js
Source/WebCore/inspector/front-end/SourceJavaScriptTokenizer.re2js