Commits

Meikel Brandmeyer committed 53ffa87

Made (comment) now completely highlighting as comment

Comments (0)

Files changed (1)

syntax/clojure.vim

 	syn keyword clojureFunc str time pr prn print println pr-str prn-str print-str println-str newline macroexpand macroexpand-1 monitor-enter monitor-exit doc eval find-doc file-seq flush hash load load-file print-doc read read-line scan slurp subs sync test
 	syn keyword clojureMacro -> assert with-out-str with-in-str with-open locking do quote var loop destructure
 	syn keyword clojureRepeat recur
-	syn keyword clojureComment comment
 	syn keyword clojureVariable *in* *out* *command-line-args* *print-meta* *print-readably*
 
 	" Nil
 syn match clojureVarArg contained "&"
 
 syn region clojureSexp matchgroup=Delimiter start="(" matchgroup=Delimiter end=")" contains=TOP
-syn region clojureAnonFn matchgroup=Delimiter start="#(" matchgroup=Delimiter end=")" contains=ALLBUT,clojureVarArg
-syn region clojureVector matchgroup=Delimiter start="\[" matchgroup=Delimiter end="\]" contains=ALLBUT,clojureAnonArg
+syn region clojureAnonFn matchgroup=Delimiter start="#(" matchgroup=Delimiter end=")" contains=ALLBUT,clojureVarArg,clojureCommentSexp
+syn region clojureVector matchgroup=Delimiter start="\[" matchgroup=Delimiter end="\]" contains=ALLBUT,clojureAnonArg,clojureCommentSexp
 syn region clojureMap matchgroup=Delimiter start="{" matchgroup=Delimiter end="}" contains=TOP
 syn region clojureSet matchgroup=Delimiter start="#{" matchgroup=Delimiter end="}" contains=TOP
 syn region clojurePattern start=/#"/ end=/"/ skip=/\\"/
 
+syn region clojureCommentSexp start="(" end=")" transparent contained contains=clojureCommentSexp
+syn region clojureComment matchgroup=Delimiter start="(comment"rs=s+1 matchgroup=Delimiter end=")" contains=clojureCommentSexp
+
 syn sync match matchPlace grouphere NONE "^[^ \t]"
 
 highlight default link clojureConstant  Constant
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.