Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

that was bothering me

  • Loading branch information...
commit ff6170061e52dd85864d2e9e490afcce0fe390c5 1 parent 5494595
@defunkt authored
Showing with 10 additions and 13 deletions.
  1. +10 −13 coffee-mode.el
View
23 coffee-mode.el
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.