Skip to content

Commit

Permalink
∀ is a keyword and alias for forall in PureScript
Browse files Browse the repository at this point in the history
  • Loading branch information
toastal committed Jul 23, 2021
1 parent 9c8911b commit 8e72dd0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion components/prism-purescript.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Prism.languages.purescript = Prism.languages.extend('haskell', {
'keyword': /\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,
'keyword': /\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,

'import-statement': {
// The imported or hidden names are not included in this import
Expand Down
2 changes: 1 addition & 1 deletion components/prism-purescript.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 22 additions & 20 deletions tests/languages/purescript/keyword_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,32 @@ primitive
then
type
where

----------------------------------------------------

[
["keyword", "ado"],
["keyword", "case"],
["keyword", "class"],
["keyword", "data"],
["keyword", "derive"],
["keyword", "do"],
["keyword", "else"],
["keyword", "if"],
["keyword", "in"],
["keyword", "infixl"],
["keyword", "infixr"],
["keyword", "instance"],
["keyword", "let"],
["keyword", "module"],
["keyword", "newtype"],
["keyword", "of"],
["keyword", "primitive"],
["keyword", "then"],
["keyword", "type"],
["keyword", "where"]
["keyword", "ado"],
["keyword", "case"],
["keyword", "class"],
["keyword", "data"],
["keyword", "derive"],
["keyword", "do"],
["keyword", "else"],
["keyword", "if"],
["keyword", "in"],
["keyword", "infixl"],
["keyword", "infixr"],
["keyword", "instance"],
["keyword", "let"],
["keyword", "module"],
["keyword", "newtype"],
["keyword", "of"],
["keyword", "primitive"],
["keyword", "then"],
["keyword", "type"],
["keyword", "where"],
["keyword", "∀"]
]

----------------------------------------------------
Expand Down

0 comments on commit 8e72dd0

Please sign in to comment.