Commits

Meikel Brandmeyer  committed d23d9ff

“Fix” comment highlighting (reported by D. Ray)

Fixes #87

  • Participants
  • Parent commits ada7c24

Comments (0)

Files changed (1)

File vim/syntax/clojure.vim

 
 syn region  clojurePattern start=/L\=\#"/ skip=/\\\\\|\\"/ end=/"/
 
-syn region  clojureCommentSexp                          start="("                                       end=")" transparent contained contains=clojureCommentSexp
-syn region  clojureComment     matchgroup=clojureParen0 start="(comment"rs=s+1 matchgroup=clojureParen0 end=")"                       contains=clojureCommentSexp
-syn region  clojureComment                              start="#!" end="\n"
+" FIXME: Matching of 'comment' is broken. It seems we can't nest
+" the different highlighting items, when they share the same end
+" pattern.
+" See also: https://bitbucket.org/kotarak/vimclojure/issue/87/comment-is-highlighted-incorrectly
+"
+"syn region  clojureCommentSexp                          start="("                                       end=")" transparent contained contains=clojureCommentSexp
+"syn region  clojureComment     matchgroup=clojureParen0 start="(comment"rs=s+1 matchgroup=clojureParen0 end=")"                       contains=clojureTopCluster
+syn match   clojureComment "comment"
+syn region  clojureComment start="#!" end="\n"
 syn match   clojureComment "#_"
 
 syn sync fromstart