Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(93)

Issue 156090: Fix DirectivePrologue parsing problems.

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 7 months ago by ihab.awad
Modified:
16 years, 7 months ago
Reviewers:
DavidSarah, MikeSamuel
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Fix problems found by David-Sarah Hopwood after the following change was already submitted: http://codereview.appspot.com/136053 The changes made here are: 1. Documentation fixes. 2. Parsing of directive prologues no longer tries to do any semicolon insertion. 3. Fixed bug in conditional rendering of Directive -- the Directive should not render itself if it contains escape sequences, but the original code did this check incorrectly.

Patch Set 1 #

Patch Set 2 : Fix DirectivePrologue parsing problems. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -93 lines) Patch
M src/com/google/caja/parser/js/DirectivePrologue.java View 1 chunk +1 line, -1 line 0 comments Download
M src/com/google/caja/parser/js/Parser.java View 1 chunk +1 line, -30 lines 2 comments Download
M tests/com/google/caja/parser/js/ParserTest.java View 1 chunk +3 lines, -27 lines 0 comments Download
M tests/com/google/caja/parser/js/parsergolden10.txt View 3 chunks +16 lines, -19 lines 0 comments Download
M tests/com/google/caja/parser/js/parsertest10.js View 1 chunk +12 lines, -16 lines 0 comments Download
M tests/com/google/caja/parser/js/parsertest6.js View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 6
ihab.awad
16 years, 7 months ago (2009-11-19 01:28:11 UTC) #1
MikeSamuel
Funnily, I found myself mucking around with the same bit of code since a directive ...
16 years, 7 months ago (2009-11-19 01:57:23 UTC) #2
MikeSamuel
http://codereview.appspot.com/156090/diff/16/21 File src/com/google/caja/parser/js/Parser.java (right): http://codereview.appspot.com/156090/diff/16/21#newcode330 src/com/google/caja/parser/js/Parser.java:330: if (!tq.checkToken(Punctuation.SEMI)) { Is this correct? Can we include ...
16 years, 7 months ago (2009-11-19 02:00:31 UTC) #3
DavidSarah
http://codereview.appspot.com/156090/diff/16/21 File src/com/google/caja/parser/js/Parser.java (right): http://codereview.appspot.com/156090/diff/16/21#newcode330 src/com/google/caja/parser/js/Parser.java:330: if (!tq.checkToken(Punctuation.SEMI)) { On 2009/11/19 02:00:31, MikeSamuel wrote: > ...
16 years, 7 months ago (2009-11-19 03:25:45 UTC) #4
DavidSarah
I don't see the fix for the rendering problem in this CL; where should I ...
16 years, 7 months ago (2009-11-19 03:28:33 UTC) #5
DavidSarah
16 years, 7 months ago (2009-11-19 03:29:59 UTC) #6
On 2009/11/19 03:28:33, DavidSarah wrote:
> I don't see the fix for the rendering problem in this CL; where should I be
looking?

Never mind, I see it now. LGTM.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b