nginx-mode icon indicating copy to clipboard operation
nginx-mode copied to clipboard

Fix indentation of closing braces

Open ryuslash opened this issue 1 year ago • 1 comments

The ‘nginx-indent-block’ function would get confused by braces in comments. Here is an example of how indentation could go wrong:

server {
    # some comment with {
    # ...
    }

After this change the example is correctly indented:

server {
    # some comment with {
    # ...
}

ryuslash avatar Apr 04 '24 22:04 ryuslash

Thank you very much for the fix!

It looks good, though I'm a week away from being able to properly assess this and make a new release, so please hold tight.

ajc avatar Apr 04 '24 23:04 ajc