Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361260

Summary: [textmatestyler] Styler fails on regex
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: EditorAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 0.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2011-10-18 10:26:56 EDT
1. Try running the styler with TextMate's java grammar
2. You'll get an error:
> Uncaught TypeError: Cannot read property '_typedRule' of undefined   textMateStyler.js:1066

The failure is from the rule "storage.type.java" which matches
 \b(?:[a-z]\w*(\.))*[A-Z]+\w*\b

We seem to be turning it into
 (\b)(?:([a-z]\(w*)(\.))*)([A-Z]+\w*\b)

Note how \w* becomes \(w*) which unbalances the expression and causes the error.
Also, it doesn't make sense for a zero-width assertion to be inside capturing parentheses, but that's a minor issue.
Comment 1 John Arthorne CLA 2015-05-05 14:48:18 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html