| Summary: | Syntax highlighter does not apply all relevant rules per line | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Karol Gusak <karol> |
| Component: | Client | Assignee: | Mark Macdonald <mamacdon> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mamacdon |
| Version: | 0.2 | ||
| Target Milestone: | 0.2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Karol Gusak
The styler is always trying the subrules in order, and then choosing the first subrule that matches, regardless of the match's position in the line. Instead it should apply all the subrules and take the rule with the leftmost match. Ahh, I was just preparing a patch - but the committed solution is way better! PS: Are the begin/end patterns supported already? Did you forgot to update the doc comment? (In reply to comment #3) > PS: Are the begin/end patterns supported already? Did you forgot to update the > doc comment? Yes, begin/end are supported now. I just marked Bug 345191 as 'fixed'. (As I mentioned in that bug: there are still issues with the repairer which I will be fixing over the next few days.) > Did you forgot to update the doc comment? Opened Bug 348115 for updating TextMateStyler JSDoc. For now, most of it is removed. (Also, note that the docs on orion.eclipse.org are only updated when a good I-build is pushed to that server, so they will always lag behind the latest code in Git.) In the meantime, I'll add comments to the bugs as I fix more stuff. I'm now marking them with [textmatestyler] so a search like this will show relevant open bugs: https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advanced;short_desc=textmatestyler;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED;short_desc_type=allwordssubstr;component=Orion;product=e4 |