Navigation Menu

Skip to content

Commit

Permalink
Ada: Added or keyword (#3380)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonweiting committed Mar 12, 2022
1 parent b94a664 commit c30b736
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/prism-ada.js
Expand Up @@ -10,7 +10,7 @@ Prism.languages.ada = {
}
],
'attr-name': /\b'\w+/,
'keyword': /\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,
'keyword': /\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,
'boolean': /\b(?:false|true)\b/i,
'operator': /<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,
'punctuation': /\.\.?|[,;():]/,
Expand Down
2 changes: 1 addition & 1 deletion components/prism-ada.min.js

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

4 changes: 3 additions & 1 deletion tests/languages/ada/keyword_feature.test
Expand Up @@ -39,6 +39,7 @@ mod
not
null
of
or
others
out
overriding
Expand Down Expand Up @@ -115,6 +116,7 @@ xor
["keyword", "not"],
["keyword", "null"],
["keyword", "of"],
["keyword", "or"],
["keyword", "others"],
["keyword", "out"],
["keyword", "overriding"],
Expand Down Expand Up @@ -150,4 +152,4 @@ xor

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

Checks for keywords.
Checks for keywords.

0 comments on commit c30b736

Please sign in to comment.