Skip to content

[css] Fix indentation issue in SCSS mode with mixin variables (for #1846)#1851

Closed
0b10011 wants to merge 2 commits intocodemirror:masterfrom
0b10011:1846indentation
Closed

[css] Fix indentation issue in SCSS mode with mixin variables (for #1846)#1851
0b10011 wants to merge 2 commits intocodemirror:masterfrom
0b10011:1846indentation

Conversation

@0b10011
Copy link
Copy Markdown
Contributor

@0b10011 0b10011 commented Sep 30, 2013

Fixes the issue in #1846 and auto-resets the indentation level when parentheses and curly braces are present, which should help indentation issues be less bothersome when an issue does present itself in a block.

In the second commit I modified the mode testing code a bit to allow for testing indentation, and added a couple small tests for CSS/SCSS modes. This should help to avoid regressions in the future. But, as usual, feel free to alter, add to, or ignore the second commit.

@marijnh
Copy link
Copy Markdown
Member

marijnh commented Sep 30, 2013

Thanks! Merged. Try to configure your editor to not use tabs for indentation, next time.

@marijnh marijnh closed this Sep 30, 2013
marijnh added a commit that referenced this pull request Sep 30, 2013
@0b10011
Copy link
Copy Markdown
Contributor Author

0b10011 commented Sep 30, 2013

Gah, sorry about that. I was working on a new machine that I don't have configured yet and thought I'd be able to fix them manually before I sent it off to you. Looks like I missed a few. Will do for next time!

@0b10011 0b10011 deleted the 1846indentation branch September 30, 2013 14:21
anaran pushed a commit to anaran/CodeMirror that referenced this pull request Feb 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants