Skip to content

Commit

Permalink
clojure-def-regexp matches any character that is not space, newline, …
Browse files Browse the repository at this point in the history
…or tab as part of it's name
  • Loading branch information
duck1123 authored and technomancy committed Jun 16, 2009
1 parent 6fa8bc5 commit 30f928e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ All commands in `lisp-mode-shared-map' are inherited by this map.")
This holds a cons cell of the form `(DIRECTORY . FILE)'
describing the last `clojure-load-file' or `clojure-compile-file' command.")

(defvar clojure-def-regexp "^\\s *\\((def\\S *\\s +\\(\\S +\\)\\)"
(defvar clojure-def-regexp "^\\s *\\((def\\S *\\s +\\(\[^ \n\t\]+\\)\\)"
"A regular expression to match any top-level definitions.")

;;;###autoload
Expand Down

0 comments on commit 30f928e

Please sign in to comment.