Skip to content

Commit 6b375d9

Browse files
snippets: add wrap-reader-comment
Insert reader comment `#_` in front of current form, instructing Clojure reader to ignore the next form
1 parent 2ebbe86 commit 6b375d9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Clone the repository to the user level configuration location for Clojure LSP, e
1616
* `comment-heading` - describe purpose of the namespace
1717
* `comment-separator` - logically separate code sections, helps identify opportunities to refactor to other name spaces
1818
* `comment-section` - logically separate large code sections with start and end line comments
19+
* `wrap-reader-comment` - insert reader comment macro, `#_` before current form, informing Clojure reader to ignore next form
1920

2021
### Repl Driven Development
2122
* `rich-comment` - comment block

config.edn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@
138138
";; --------------------------------------------------\n;; ${1:Section title}\n\n$0\n\n
139139
;; End of $1\n;; --------------------------------------------------\n\n"}
140140

141+
{:name "wrap-reader-comment"
142+
:detail "Wrap current expression with Comment Reader macro"
143+
:snippet "#_$current-form"}
144+
141145
{:name "rich-comment"
142146
:detail "Create rich comment"
143147
:snippet

0 commit comments

Comments
 (0)