Skip to content

Commit bac3682

Browse files
authored
Keyman: Added new keywords (#3401)
1 parent 5617765 commit bac3682

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

components/prism-keyman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Prism.languages.keyman = {
2828
alias: 'keyword'
2929
},
3030
'structural-keyword': {
31-
pattern: /\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,
31+
pattern: /\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,
3232
alias: 'keyword'
3333
},
3434

components/prism-keyman.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/languages/keyman/structural-keyword_feature.test

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ group
55
using keys
66
match
77
nomatch
8+
newcontext
9+
postkeystroke
10+
readonly
811

912
----------------------------------------------------
1013

@@ -15,7 +18,10 @@ nomatch
1518
["structural-keyword", "group"],
1619
["structural-keyword", "using keys"],
1720
["structural-keyword", "match"],
18-
["structural-keyword", "nomatch"]
21+
["structural-keyword", "nomatch"],
22+
["structural-keyword", "newcontext"],
23+
["structural-keyword", "postkeystroke"],
24+
["structural-keyword", "readonly"]
1925
]
2026

2127
----------------------------------------------------

0 commit comments

Comments
 (0)