Skip to content

Commit e36b995

Browse files
committed
Remove default keyword
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.
1 parent 421fb28 commit e36b995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

purescript-font-lock.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Returns keywords suitable for `font-lock-keywords'."
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" "do" "else" "if" "in" "infix"
189+
'("ado" "case" "do" "else" "if" "in" "infix"
190190
"infixl" "infixr" "let" "of" "then" "where" "_") 'words))
191191

192192
;; Top-level declarations

0 commit comments

Comments
 (0)