Community
Participate
Working Groups
textMateStyler.js seems to not color some keywords it should. Initially I thought that it applies only one distinct rule per line, but it's more complicated. Steps to reproduce: 1. Open / create .html file 2. Start typing "<!-- test --> <test />" 3. As soon as the test tag is picked up, the comment coloring disappears 4. Start typing "<test attr="val" attr2="val" />" 5. The attr2 is never colored, while val2 is at first, but disappears after closing the test tag
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.
Fixed by http://git.eclipse.org/c/e4/org.eclipse.orion.client.git/commit/?id=54aab8c67a916b84aa53687d021383b3e6c48365
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