Skip to content

Commit

Permalink
that was bothering me
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Mar 7, 2010
1 parent 5494595 commit ff61700
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions coffee-mode.el
Expand Up @@ -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
Expand Down

0 comments on commit ff61700

Please sign in to comment.