Closed paran1 closed 6 years ago
I am using this locally and it works for me. However I am not 100% sure this is the right approach, given that it used to work in really old versions of puppet-mode without this (see #110).
However, this is much cleaner than my previous attempt (#105) and might be good enough for now. Nothing prevents somebody from doing something better later.
Drawback is that this does introduce a regression if somebody have comments after an opening curly brace, like this:
class foo { # comment
My guess is that this is very uncommon.
The test case for this is in the first commit and can be merged separately if necessary.
Fixes #110