diff options
author | Steven Arcangeli <stevearc@stevearc.com> | 2024-03-01 14:00:59 -0800 |
---|---|---|
committer | Steven Arcangeli <stevearc@stevearc.com> | 2024-03-01 14:01:08 -0800 |
commit | 8d91cf1fb5c53860f137439e2b4cb27cbe9f6a22 (patch) | |
tree | c2246dda1ae4776ce17ae43710af825c658d45e2 /doc | |
parent | 2a769b950526acf62a71de89b876d14862988ee5 (diff) |
cleanup: remove backwards compatability shim
Diffstat (limited to 'doc')
-rw-r--r-- | doc/conform.txt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/doc/conform.txt b/doc/conform.txt index e647ce5..8182be5 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -6,7 +6,6 @@ CONTENTS *conform-content 1. Options |conform-options| 2. Api |conform-api| 3. Formatters |conform-formatters| - 4. Self argument migration |conform-self-args| -------------------------------------------------------------------------------- OPTIONS *conform-options* @@ -355,28 +354,5 @@ FORMATTERS *conform-formatter `zigfmt` - Reformat Zig source into canonical form. `zprint` - Formatter for Clojure and EDN. --------------------------------------------------------------------------------- -SELF ARGUMENT MIGRATION *conform-self-args* - -The function arguments for formatter config functions have changed. Previously, -they took a single `ctx` argument. ->lua - { - command = "phpcbf", - args = function(ctx) - return { "-q", "--stdin-path=" .. ctx.filename, "-" } - end - } -<Now, they take `self` as the first argument, and `ctx` as the second. ->lua - { - command = "phpcbf", - args = function(self, ctx) - return { "-q", "--stdin-path=" .. ctx.filename, "-" } - end - } -<The config values that can be defined as functions are: `command`, `args`, -`range_args`, `cwd`, `env`, and `condition`. - ================================================================================ vim:tw=80:ts=2:ft=help:norl:syntax=help: |