Skip to content

Commit

Permalink
Add non-standard language ID _Caddyfile
Browse files Browse the repository at this point in the history
GitHub Linguist doesn't yet have an official ID.
  • Loading branch information
lassik committed Dec 5, 2022
1 parent bc13571 commit 1f6b52a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions format-all.el
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
("C#" clang-format)
("C++" clang-format)
("Cabal Config" cabal-fmt)
("Caddyfile" caddy-fmt)
("Clojure" zprint)
("CMake" cmake-format)
("Crystal" crystal)
Expand Down Expand Up @@ -198,6 +197,7 @@
("Zig" zig)

("_Angular" prettier)
("_Caddyfile" caddy-fmt)
("_Flow" prettier)
("_Gleam" gleam)
("_Ledger" ledger-mode)
Expand Down Expand Up @@ -717,7 +717,7 @@ Consult the existing formatters for examples of BODY."
(:install
(macos "brew install caddy")
(windows "scoop install caddy"))
(:languages "Caddyfile")
(:languages "_Caddyfile")
(:features)
(:format (format-all--buffer-easy executable "fmt" "-")))

Expand Down Expand Up @@ -1431,6 +1431,7 @@ unofficial languages IDs are prefixed with \"_\"."
(boundp 'flow-minor-mode)
(not (null (symbol-value 'flow-minor-mode)))
"_Flow")
(and (equal major-mode 'caddyfile-mode) "_Caddyfile")
(and (equal major-mode 'gleam-mode) "_Gleam")
(and (equal major-mode 'ledger-mode) "_Ledger")
(and (equal major-mode 'nginx-mode) "_Nginx")
Expand Down

0 comments on commit 1f6b52a

Please sign in to comment.