Skip to content

Commit 0a8aebb

Browse files
committed
Rename keyword "deriving" to "derive"
PureScript, as opposed to Haskell, doesn't seem to have `deriving` as a keyword. I grepped over `purescript` compiler `tests/` directory to be sure. Instead it has `derive` keyword, which is a top level one that serves similar purpose to "deriving". So rename `deriving` to `derive`.
1 parent ba3e997 commit 0a8aebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

purescript-font-lock.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ Returns keywords suitable for `font-lock-keywords'."
178178
(toplevel-keywords
179179
(rx line-start (zero-or-more whitespace)
180180
(group (or "type" "module" "import" "data" "class" "newtype"
181-
"instance")
181+
"instance" "derive")
182182
word-end)))
183183
;; Reserved identifiers
184184
(reservedid
185185
;; `as', `hiding', and `qualified' are part of the import
186186
;; spec syntax, but they are not reserved.
187187
;; `_' can go in here since it has temporary word syntax.
188188
(regexp-opt
189-
'("ado" "case" "default" "deriving" "do" "else" "if" "in" "infix"
189+
'("ado" "case" "default" "do" "else" "if" "in" "infix"
190190
"infixl" "infixr" "let" "of" "then" "where" "_") 'words))
191191

192192
;; Top-level declarations

0 commit comments

Comments
 (0)