nginx-mode
nginx-mode copied to clipboard
Allow anything to follow a closing brace at start of line
Specifically this fixes an indentation issue with this:
if ($host = example.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
Before this change this would have been indented as:
if ($host = example.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
Because the regular expression was looking for a ‘}’ with nothing following it, but comments can follow this construct just fine.
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.