|
73 | 73 | (lm-version (or load-file-name buffer-file-name)))
|
74 | 74 | "The current version of `clojure-ts-mode'.")
|
75 | 75 |
|
| 76 | +(defcustom clojure-ts-comment-macro-font-lock-body nil |
| 77 | + "Highlight the entire body of a comment macro as a comment. |
| 78 | +
|
| 79 | +When set to a non-nil value, applies the comment font-locking face to the entire |
| 80 | +body of comment macros. |
| 81 | +When nil (the default), the body of comment macros uses default font-locking |
| 82 | +rules for whatever expressions are in the body, except for the comment symbol |
| 83 | +itself." |
| 84 | + :safe #'booleanp |
| 85 | + :type 'boolean |
| 86 | + :package-version '(clojure-ts-mode . "0.1.3")) |
| 87 | + |
76 | 88 | (defvar clojure-ts--debug nil
|
77 | 89 | "Enables debugging messages, shows current node in mode-line.
|
78 | 90 | Only intended for use at development time.")
|
@@ -533,18 +545,6 @@ Includes a dispatch value when applicable (defmethods)."
|
533 | 545 | By default `treesit-defun-name-function' is used to extract definition names.
|
534 | 546 | See `clojure-ts--standard-definition-node-name' for the implementation used.")
|
535 | 547 |
|
536 |
| -(defcustom clojure-ts-comment-macro-font-lock-body nil |
537 |
| - "Highlight the entire body of a comment macro as a comment. |
538 |
| -
|
539 |
| -When set to a non-nil value, applies the comment font-locking face to the entire |
540 |
| -body of comment macros. |
541 |
| -When nil (the default), the body of comment macros uses default font-locking |
542 |
| -rules for whatever expressions are in the body, except for the comment symbol |
543 |
| -itself." |
544 |
| - :safe #'booleanp |
545 |
| - :type 'boolean |
546 |
| - :package-version '(clojure-ts-mode . "0.1.3")) |
547 |
| - |
548 | 548 | (defvar clojure-ts--fixed-indent-rules
|
549 | 549 | ;; This is in contrast to semantic
|
550 | 550 | ;; fixed-indent-rules come from https://tonsky.me/blog/clojurefmt/
|
|
0 commit comments