Skip to content

Commit

Permalink
Remove default keyword
Browse files Browse the repository at this point in the history
I just stumbled upon a code in PS `routing-duplex`, where `default` is
a function name and it's getting highlighted. That made me dig to see
where such keyword could be used to reduce the possibility of such
false-positives.

Now, I personally don't remember `default` being ever used as a
keyword in PS. So I asked an AI but it doesn't know either. Then as a
last measure I looked at syntax highlight in VS Code editor, and they
don't highlight `default` either.

So remove `default` from the list of keywords.
  • Loading branch information
Hi-Angel committed Dec 9, 2024
1 parent 421fb28 commit e36b995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion purescript-font-lock.el
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Returns keywords suitable for `font-lock-keywords'."
;; spec syntax, but they are not reserved.
;; `_' can go in here since it has temporary word syntax.
(regexp-opt
'("ado" "case" "default" "do" "else" "if" "in" "infix"
'("ado" "case" "do" "else" "if" "in" "infix"
"infixl" "infixr" "let" "of" "then" "where" "_") 'words))

;; Top-level declarations
Expand Down

0 comments on commit e36b995

Please sign in to comment.