Skip to content

Commit fae74b7

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 d187b3d commit fae74b7

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
@@ -178,7 +178,7 @@ Returns keywords suitable for `font-lock-keywords'."
178178
;; spec syntax, but they are not reserved.
179179
;; `_' can go in here since it has temporary word syntax.
180180
(regexp-opt
181-
'("ado" "case" "class" "data" "default" "deriving"
181+
'("ado" "case" "class" "data" "deriving"
182182
"do" "else" "if" "import" "in" "infix" "infixl"
183183
"infixr" "instance" "let" "module" "newtype" "of"
184184
"then" "type" "where" "_") 'words))

0 commit comments

Comments
 (0)