Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erlang: Add begin keyword #3387

Merged
merged 1 commit into from Mar 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/prism-erlang.js
Expand Up @@ -13,7 +13,7 @@ Prism.languages.erlang = {
alias: 'atom'
},
'boolean': /\b(?:false|true)\b/,
'keyword': /\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,
'keyword': /\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,
'number': [
/\$\\?./,
/\b\d+#[a-z0-9]+/i,
Expand Down
2 changes: 1 addition & 1 deletion components/prism-erlang.min.js

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

6 changes: 3 additions & 3 deletions tests/languages/erlang/keyword_feature.test
@@ -1,15 +1,15 @@
fun when case of
end if receive
begin end if receive
after try catch

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

[
["keyword", "fun"], ["keyword", "when"], ["keyword", "case"], ["keyword", "of"],
["keyword", "end"], ["keyword", "if"], ["keyword", "receive"],
["keyword", "begin"], ["keyword", "end"], ["keyword", "if"], ["keyword", "receive"],
["keyword", "after"], ["keyword", "try"], ["keyword", "catch"]
]

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

Checks for all keywords.
Checks for all keywords.