Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

elisp regexps are fun

  • Loading branch information...
commit 00c197b67fd9baa9fa112f4c8a69bdb0ececf147 1 parent 2799609
@defunkt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 coffee-mode.el
View
4 coffee-mode.el
@@ -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")
@@ -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 "::"))
Please sign in to comment.
Something went wrong with that request. Please try again.