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