Skip to content
This repository has been archived by the owner on Sep 17, 2018. It is now read-only.

Commit

Permalink
elisp regexps are fun
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Mar 8, 2010
1 parent 2799609 commit 00c197b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coffee-mode.el
Expand Up @@ -189,7 +189,7 @@ print the compiled JavaScript.")
(defvar coffee-assign-regexp "\\(\\(\\w\\|\\.\\|_\\| \\|$\\)+?\\):")

;; Lambda
(defvar coffee-lambda-regexp "\\((.+)\\)?\s *\\(->\\|=>\\)")
(defvar coffee-lambda-regexp "\\((.+)\\)?\\s *\\(->\\|=>\\)")

;; Namespaces
(defvar coffee-namespace-regexp "\\b\\(class\\s +\\(\\S +\\)\\)\\b")
Expand Down Expand Up @@ -319,7 +319,7 @@ For detail, see `comment-dwim'."

;; If this is the start of a new namespace, save the namespace's
;; indentation level and name.
(when (and (not ns-name) (setq ns-name (match-string 7)))
(when (and (not ns-name) (setq ns-name (match-string 8)))
;; If this is a class declaration, add :: to the namespace.
(setq ns-name (concat ns-name "::"))

Expand Down

0 comments on commit 00c197b

Please sign in to comment.