Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect indentation when setting last attribute in a resource body to a qualified variable #111

Open
paran1 opened this issue Dec 2, 2017 · 0 comments

Comments

@paran1
Copy link
Contributor

paran1 commented Dec 2, 2017

emacs 25.2.2
puppet-mode master e04f041.

Expected indentation:

foo {
  'foo':
    bar => $qualified::variable,
  'foo':
    bar => $variable;
}

Actual indentation:

foo {
  'foo':
    bar => $qualified::variable,
    'foo':
      bar => $variable;
}

The qualified variable have to be the last attribute of a resource body to cause problems, and it have to be qualified. The below example is indented correctly:

foo {
  'foo':
    bar => $variable;
  'foo':
    bar => $qualified::variable,
    bar => 0;
  'foo':
    bar => $variable;
}
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

No branches or pull requests

1 participant