Bug 108692 - Web Inspector: add round braces to javascript tokenizer
Summary: Web Inspector: add round braces to javascript tokenizer
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Andrey Lushnikov
URL:
Keywords:
Depends on:
Blocks: 108697
  Show dependency treegraph
 
Reported: 2013-02-01 14:17 PST by Andrey Lushnikov
Modified: 2013-02-04 09:43 PST (History)
9 users (show)

See Also:


Attachments
Patch (155.87 KB, patch)
2013-02-01 14:23 PST, Andrey Lushnikov
no flags Details | Formatted Diff | Diff
Patch (167.68 KB, patch)
2013-02-01 14:54 PST, Andrey Lushnikov
no flags Details | Formatted Diff | Diff
Patch (16.51 KB, patch)
2013-02-02 13:06 PST, Andrey Lushnikov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Lushnikov 2013-02-01 14:17:19 PST
Add round braces to javascript tokenizer.
Comment 1 Andrey Lushnikov 2013-02-01 14:18:10 PST
This change will be used in brace highlighter functionality.
Comment 2 Andrey Lushnikov 2013-02-01 14:23:15 PST
Created attachment 186137 [details]
Patch
Comment 3 Andrey Lushnikov 2013-02-01 14:39:23 PST
Comment on attachment 186137 [details]
Patch

testcases not updated.
Comment 4 Andrey Lushnikov 2013-02-01 14:54:52 PST
Created attachment 186149 [details]
Patch
Comment 5 Pavel Feldman 2013-02-02 03:59:02 PST
Comment on attachment 186149 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=186149&action=review

> Source/WebCore/inspector/front-end/SourceJavaScriptTokenizer.re2js:-180
> -                <DIV,NODIV> RightParen => DIV { this.tokenType = null; return cursor; }

DIV,NODIV => DIV means that we transition from the state where division is expected or not expected into the state where it is expected (this is due to "/" ambiguity - it might be division or regex start).
Comment 6 Andrey Lushnikov 2013-02-02 13:06:45 PST
Created attachment 186235 [details]
Patch
Comment 7 Andrey Lushnikov 2013-02-02 13:07:56 PST
Comment on attachment 186149 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=186149&action=review

>> Source/WebCore/inspector/front-end/SourceJavaScriptTokenizer.re2js:-180
>> -                <DIV,NODIV> RightParen => DIV { this.tokenType = null; return cursor; }
> 
> DIV,NODIV => DIV means that we transition from the state where division is expected or not expected into the state where it is expected (this is due to "/" ambiguity - it might be division or regex start).

thanks for clarifying this moment!
Comment 8 Build Bot 2013-02-02 14:14:10 PST
Comment on attachment 186235 [details]
Patch

Attachment 186235 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/16343994
Comment 9 Build Bot 2013-02-02 15:15:29 PST
Comment on attachment 186235 [details]
Patch

Attachment 186235 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/16359020
Comment 10 WebKit Review Bot 2013-02-04 09:43:55 PST
Comment on attachment 186235 [details]
Patch

Clearing flags on attachment: 186235

Committed r141774: <http://trac.webkit.org/changeset/141774>
Comment 11 WebKit Review Bot 2013-02-04 09:43:59 PST
All reviewed patches have been landed.  Closing bug.