Skip to content

Commit

Permalink
Keyman: Added new keywords (#3401)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdurdin committed Mar 18, 2022
1 parent 5617765 commit bac3682
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/prism-keyman.js
Expand Up @@ -28,7 +28,7 @@ Prism.languages.keyman = {
alias: 'keyword'
},
'structural-keyword': {
pattern: /\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,
pattern: /\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,
alias: 'keyword'
},

Expand Down
2 changes: 1 addition & 1 deletion components/prism-keyman.min.js

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

8 changes: 7 additions & 1 deletion tests/languages/keyman/structural-keyword_feature.test
Expand Up @@ -5,6 +5,9 @@ group
using keys
match
nomatch
newcontext
postkeystroke
readonly

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

Expand All @@ -15,7 +18,10 @@ nomatch
["structural-keyword", "group"],
["structural-keyword", "using keys"],
["structural-keyword", "match"],
["structural-keyword", "nomatch"]
["structural-keyword", "nomatch"],
["structural-keyword", "newcontext"],
["structural-keyword", "postkeystroke"],
["structural-keyword", "readonly"]
]

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

0 comments on commit bac3682

Please sign in to comment.