Bug 22673

Summary: Added support for the assertion (?=) and inverted assertion (?!) atoms in WREC.
Product: WebKit Reporter: Geoffrey Garen <ggaren>
Component: JavaScriptCoreAssignee: Geoffrey Garen <ggaren>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
patch darin: review+

Geoffrey Garen
Reported 2008-12-04 23:13:58 PST
Patch coming.
Attachments
patch (8.61 KB, patch)
2008-12-04 23:14 PST, Geoffrey Garen
darin: review+
Geoffrey Garen
Comment 1 2008-12-04 23:14:20 PST
Darin Adler
Comment 2 2008-12-05 05:51:17 PST
Comment on attachment 25763 [details] patch > + switch (type) { > + case Generator::Assertion: { > + m_generator.generateParenthesesAssertion(failures); > + break; > + } > + case Generator::InvertedAssertion: { > + m_generator.generateParenthesesInvertedAssertion(failures); > + break; > + } > + default: { > + m_error = UnsupportedParentheses; > + return false; > + } > + } We normally indent cases from the switch. We normally use braces for cases only when they are needed. > + switch (q.type) { > + case Quantifier::None: { > + return true; > + } > + case Quantifier::Greedy: { > + m_error = UnsupportedParentheses; > + return false; > + } > + case Quantifier::NonGreedy: { > + m_error = UnsupportedParentheses; > + return false; > + } > + case Quantifier::Error: { > + return false; > + } > + } Ditto. r=me
Geoffrey Garen
Comment 3 2008-12-05 08:49:57 PST
Committed revision 39030.
Note You need to log in before you can comment on or make changes to this bug.