diff options
| author | Andrey Listopadov <andreyorst@gmail.com> | 2021-07-23 21:41:22 +0300 |
|---|---|---|
| committer | Andrey Listopadov <andreyorst@gmail.com> | 2021-07-23 21:41:22 +0300 |
| commit | 5cd4100a4e9e7b7cf77b21f2759f6401cd9a06d9 (patch) | |
| tree | 684fed91c5f78fff1c0c242306541f4c5efe71c4 /.dir-locals.el | |
| parent | 859cf1388770f65d31002d3667977d6760c2e092 (diff) | |
fix: don't generate mulitarity arglist doc for single-arity functions
Diffstat (limited to '.dir-locals.el')
| -rw-r--r-- | .dir-locals.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index af4b307..be31ff9 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -32,6 +32,12 @@ "loop")) word-end) 1 'font-lock-keyword-face)))) + (eval . (font-lock-add-keywords + 'fennel-mode + `((,(rx (syntax open-parenthesis) + (or "fn*" "defn" "defmulti") (1+ space) + (group (1+ (or (syntax word) (syntax symbol) "-" "_")))) + 1 'font-lock-function-name-face)))) (eval . (put 'when-meta 'fennel-indent-function 'defun)) (eval . (put 'defmethod 'fennel-indent-function 3)) (eval . (put 'defmulti 'bfennel-indent-function 'defun)) |