Open mawcs opened 8 years ago
It just occurred to me that this is happening inside of a @media screen{...}
block. I'm not seeing this behavior in places that are not in a media block. I've updated my "steps to reproduce" accordingly.
This happens to a lot of things in Java files too, so I don't believe this is less, but eclipse doing this..
In my nested styles, the LESS editor will automatically insert incorrect and unneeded braces when I hit a carriage return. This file is a preexisting file that has compiled fine for months before using in this editor. When I try to compile with the editor-inserted braces, the less compiler produces:
Error: Unrecognised input. Possibly missing opening '{' in file
Attached is an animated GIF showing the defect in action.
Steps to reproduce Create a LESS file with various levels of nesting with
@media screen and (max-width: 50em){...}
as the outermost block. Insert cursor in the middle of a block 1 to 5 levels deep. Hit return.Expected results A newline is created with the cursor automatically indented correctly. No additional characters needed.
Actual results A newline is created a with the cursor at the correct indentation, but a new, erroneous brace is added below the cursor. This can be repeated 2 or 3 times (I cannot determine why it varies).