The color of a property name may change in a LESS file when typing a space before the closing paren. #1289
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);border-colorand hit a space.Result:
border-colornow has a different color.Expected: should not change the color of the property name.
You can also see incorrect color if you paste the following CSS into the page.
.box-warning-rouge{andborderare rendered in the wrong color.mentioned in issue #2847
I've been meaning to rewrite Less mode to extend the CSS mode, but I haven't gotten around to it yet. (I think I have it partially done on my box at home.) I'll push this ahead of some other projects I'm working on though, but it still might be a while (I love to procrastinate).
So, if this isn't an easy fix, let me know, and I'll make it my top priority (but still working on at home, so it won't be immediate).
@peterkroonWant to take a look?If the Less mode can be folded into the CSS mode in a clean way, I'd be okay with that -- less code means less room for bugs.
I also noticed that when I paste the example code, bracket matching is initially broken when I put my cursor after the last bracket (apparently the opening bracket is somehow styled as
"string"when the bracket matcher asks for it), but then when I edit the first line in any way, the problem goes away. Again, this suggests bad handling of state.@RaymondLimA few months ago I was working on a upgrade of the LESS mode(not finished).
Look here: http://5060.nl/codemirror/CodeMirror-3/mode/less/index.html
I've fixed the bug you mention in your first post in the upgrade.
The second one is new and needs to be fixed.
Another bug in the upgrade version is when you place cursor on line 159 between
E``[and add a space and a character the color changes ofE. This is incorrect behaviour.With this upgrade version there is more dynamic highlighting of the code. The goal was/is to make a more professional theme and integrate SCSS which doesn't exists in the repository yet.
I'm able to look at fixing the mentioned bugs upcoming week or the week after that.
Fwiw I did some bisecting, and:
436fa0532. (Although I assume@peterkroonalready has a handle on this if it's fixed in his latest code).3721870ef-- which interestingly, changes the bracket-matching code but has no changes to less.js itself.I thought I would have some time to fix it this week. But no.
Maybe next week.
mentioned in merge request !8963
Fixed with: #1805
Indeed, looks fixed.
mentioned in issue #2695