Skip to content

Commit cf38d05

Browse files
authored
Erlang: Added begin keyword (#3387)
1 parent 31a38d0 commit cf38d05

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/prism-erlang.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Prism.languages.erlang = {
1313
alias: 'atom'
1414
},
1515
'boolean': /\b(?:false|true)\b/,
16-
'keyword': /\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,
16+
'keyword': /\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,
1717
'number': [
1818
/\$\\?./,
1919
/\b\d+#[a-z0-9]+/i,

components/prism-erlang.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
fun when case of
2-
end if receive
2+
begin end if receive
33
after try catch
44

55
----------------------------------------------------
66

77
[
88
["keyword", "fun"], ["keyword", "when"], ["keyword", "case"], ["keyword", "of"],
9-
["keyword", "end"], ["keyword", "if"], ["keyword", "receive"],
9+
["keyword", "begin"], ["keyword", "end"], ["keyword", "if"], ["keyword", "receive"],
1010
["keyword", "after"], ["keyword", "try"], ["keyword", "catch"]
1111
]
1212

1313
----------------------------------------------------
1414

15-
Checks for all keywords.
15+
Checks for all keywords.

0 commit comments

Comments
 (0)