Skip to content
This repository has been archived by the owner on May 11, 2019. It is now read-only.

The indenting fails when e.g. "[" is contained within a string #16

Open
avar opened this issue Jul 22, 2016 · 0 comments
Open

The indenting fails when e.g. "[" is contained within a string #16

avar opened this issue Jul 22, 2016 · 0 comments

Comments

@avar
Copy link

avar commented Jul 22, 2016

Result of M-x indent-region on this code:

class whatever {
    file {
        content=> "[";
                    }
                    }

I think the problem's obvious, those trailing } shouldn't be
indented according to some string content. Similarly:

class whatever {
    file {
        content=> "{",
            mode => '0755',
        }
    }

Here it gets confused because the string has a "{" and decides to
indent the next key in the block according to that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant