Skip to content

Commit b38fc89

Browse files
authored
PureScript: Made a keyword (alias for forall) (#3005)
1 parent 9c8911b commit b38fc89

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

components/prism-purescript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Prism.languages.purescript = Prism.languages.extend('haskell', {
2-
'keyword': /\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,
2+
'keyword': /\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|/,
33

44
'import-statement': {
55
// The imported or hidden names are not included in this import

components/prism-purescript.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/languages/purescript/keyword_feature.test

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,32 @@ primitive
1818
then
1919
type
2020
where
21+
2122

2223
----------------------------------------------------
2324

2425
[
25-
["keyword", "ado"],
26-
["keyword", "case"],
27-
["keyword", "class"],
28-
["keyword", "data"],
29-
["keyword", "derive"],
30-
["keyword", "do"],
31-
["keyword", "else"],
32-
["keyword", "if"],
33-
["keyword", "in"],
34-
["keyword", "infixl"],
35-
["keyword", "infixr"],
36-
["keyword", "instance"],
37-
["keyword", "let"],
38-
["keyword", "module"],
39-
["keyword", "newtype"],
40-
["keyword", "of"],
41-
["keyword", "primitive"],
42-
["keyword", "then"],
43-
["keyword", "type"],
44-
["keyword", "where"]
26+
["keyword", "ado"],
27+
["keyword", "case"],
28+
["keyword", "class"],
29+
["keyword", "data"],
30+
["keyword", "derive"],
31+
["keyword", "do"],
32+
["keyword", "else"],
33+
["keyword", "if"],
34+
["keyword", "in"],
35+
["keyword", "infixl"],
36+
["keyword", "infixr"],
37+
["keyword", "instance"],
38+
["keyword", "let"],
39+
["keyword", "module"],
40+
["keyword", "newtype"],
41+
["keyword", "of"],
42+
["keyword", "primitive"],
43+
["keyword", "then"],
44+
["keyword", "type"],
45+
["keyword", "where"],
46+
["keyword", "∀"]
4547
]
4648

4749
----------------------------------------------------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy