Skip to content

Samonitari/tree-sitter-caddy

Repository files navigation

tree-sitter-caddy

Build/test

Caddyfile grammar for tree-sitter

⚠️ Currently in alpha - may have bugs or instability - use with caution ⚠️

Features

Type of structures

  • Global options: only email and auto_https
  • Snippets
  • Directives - see below
  • Matchers - see below

Directives handled

The following directives are at least partially* handled.
*: Directives may not recognize all of their options.

  • abort
  • acme_server
  • basicauth
  • bind
  • encode
  • error
  • file_server
  • forward_auth
  • handle
  • handle_errors
  • handle_path
  • header
  • import
  • log
  • map
  • method
  • metrics
  • php_fastcgi
  • push
  • redir
  • request_body
  • request_header
  • respond
  • reverse_proxy
  • rewrite
  • root
  • route
  • skip_log
  • templates
  • tls
  • tracing
  • try_files
  • uri
  • var

Matchers handled

  • path and path_regexp

References

About

Caddyfile grammar for tree-sitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published