Permalink
Browse files

that was bothering me

  • Loading branch information...
1 parent 5494595 commit ff6170061e52dd85864d2e9e490afcce0fe390c5 @defunkt committed Mar 7, 2010
Showing with 10 additions and 13 deletions.
  1. +10 −13 coffee-mode.el
View
@@ -198,20 +198,17 @@ print the compiled JavaScript.")
coffee-cs-keywords) 'words))
-;; Create the list for font-lock.
-;; Each class of keyword is given a particular face
+;; Create the list for font-lock. Each class of keyword is given a
+;; particular face.
(defvar coffee-font-lock-keywords
- `(
- (,coffee-this-regexp . font-lock-variable-name-face)
- (,coffee-assign-regexp . font-lock-type-face)
- (,coffee-regexp-regexp . font-lock-constant-face)
- (,coffee-boolean-regexp . font-lock-constant-face)
- (,coffee-keywords-regexp . font-lock-keyword-face)
-
- ;; note: order above matters. `coffee-keywords-regexp' goes last because
- ;; otherwise the keyword "state" in the function "state_entry"
- ;; would be highlighted.
- ))
+ ;; *Note*: order below matters. `coffee-keywords-regexp' goes last
+ ;; because otherwise the keyword "state" in the function
+ ;; "state_entry" would be highlighted.
+ `((,coffee-this-regexp . font-lock-variable-name-face)
+ (,coffee-assign-regexp . font-lock-type-face)
+ (,coffee-regexp-regexp . font-lock-constant-face)
+ (,coffee-boolean-regexp . font-lock-constant-face)
+ (,coffee-keywords-regexp . font-lock-keyword-face)))
;;
;; Helper Functions

0 comments on commit ff61700

Please sign in to comment.