caddy/caddyconfig/caddyfile
Matthew Penner bc22102478
caddyfile: Fix caddy fmt nesting not decrementing (#4157)
* caddyfile(formatter): fix nesting not decrementing

This is an extremely weird edge-case where if you had a environment variable {}
on one line, a comment on the next line, and the closing of the block on the
following line; the rest of the Caddyfile would be indented further than it
should've been.

ref; https://github.com/matthewpi/vscode-caddyfile-support/issues/13

* run gofmt

* fmt: better way of handling edge case
2021-05-10 12:01:27 -06:00
..
testdata caddyfile: reject cyclic imports (#4022) 2021-04-09 12:06:25 -06:00
adapter.go caddyfile: Normalize line endings before comparing fmt result (#4103) 2021-04-02 11:55:34 -06:00
dispenser.go chore: Fix typo in dispenser.go (#3456) 2020-05-27 08:13:57 -06:00
dispenser_test.go caddyfile: Move NewTestDispenser into non-test file (#3439) 2020-05-26 13:45:22 -06:00
formatter.go caddyfile: Fix caddy fmt nesting not decrementing (#4157) 2021-05-10 12:01:27 -06:00
formatter_fuzz.go fuzz: fix the FuzzFormat comparison (#4117) 2021-04-15 23:03:54 +00:00
formatter_test.go caddyfile: Fix caddy fmt nesting not decrementing (#4157) 2021-05-10 12:01:27 -06:00
importgraph.go caddyfile: reject cyclic imports (#4022) 2021-04-09 12:06:25 -06:00
lexer.go caddyfile: reject cyclic imports (#4022) 2021-04-09 12:06:25 -06:00
lexer_fuzz.go ci: fuzz: add 4 more fuzzing targets (#4105) 2021-04-08 11:45:19 -06:00
lexer_test.go caddyfile: Export Tokenize function for lexing (#3549) 2020-07-20 13:55:51 -06:00
parse.go caddyfile: Fix import replacing unrelated placeholders (#4129) 2021-04-22 18:29:04 -06:00
parse_test.go caddyfile: reject cyclic imports (#4022) 2021-04-09 12:06:25 -06:00