parinfer
星标14
分支3
更新时间2026年2月24日 08:50
Check and correct parenthesis balance from indentation.
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Check and correct parenthesis balance from indentation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | parinfer |
| description | Check and correct parenthesis balance from indentation. |
Check if installed
cd /workspace/acl2-jupyter && make test-parinfer
Install
cd /workspace/acl2-jupyter && make install-parinfer
Correct parens from indentation.
. $HOME/.cargo/env && parinfer-rust -m indent -l lisp --lisp-block-comments <file.lisp | diff file.lisp -
When applying corrections don't count parens, just get your indentation correct and parinfer will give correct parens.
Correct indentations from parens. For if you have correct code but need to fix indentation so you can make changes followed by parinfer to correct parens from indentation.
. $HOME/.cargo/env && parinfer-rust -m paren -l lisp --lisp-block-comments <file.lisp | diff file.lisp -
Help
parinfer-rust --help
Usage: parinfer-rust [options]
Options:
--comment-char CC
(default: ';')
--string-delimiters DELIM
(default: '"')
-h, --help show this help message
--input-format FMT
'json', 'text' (default: 'text')
--guile-block-comments
recognize #!/guile/block/comments \n!# )
--no-guile-block-comments
do not recognize #!/guile/block/comments \n!# )
--hy-bracket-strings
recognize #[hy-style[ bracket strings ]hy-style]```
--no-hy-bracket-strings
do not recognize #[hy-style[ bracket strings
]hy-style]```
--janet-long-strings
recognize ``` janet-style long strings ```
--no-janet-long-strings
do not recognize ``` janet-style long strings ```
-l, --language LANG 'clojure', 'guile', 'hy', 'janet', 'lisp', 'racket',
'scheme' (default: 'clojure')
--lisp-block-comments
recognize #| lisp-style block commments |#.
--no-lisp-block-comments
do not recognize #| lisp-style block commments |#.
--lisp-vline-symbols
recognize |lisp-style vline symbol|s.
--no-lisp-vline-symbols
do not recognize |lisp-style vline symbol|s.
-m, --mode MODE parinfer mode (indent, paren, or smart) (default:
smart)
--output-format FMT
'json', 'kakoune', 'text' (default: 'text')
--scheme-sexp-comments
recognize #;( scheme sexp comments )
--no-scheme-sexp-comments
do not recognize #;( scheme sexp comments )
基于 SOC 职业分类