Skip to content

Commit

Permalink
Add a couple of missing keywords to the playground highlighting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
irh committed Feb 14, 2024
1 parent 911e598 commit 16b2b91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/playground/src/koto-highlight-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ export function register_koto_editor_mode() {
regex: /\b(?:assert|assert_eq|assert_ne|assert_near)\b/
}, {
token: "keyword.control.koto",
regex: /\b(?:catch|finally|for|in|loop|return|throw|try|until|while|yield)\b/
regex: /\b(?:catch|finally|for|in|loop|throw|try|until|while)\b/
}, {
token: "keyword.control.flow.koto",
regex: /\b(?:break|continue|return|yield)\b/
}, {
token: "keyword.control.conditional.koto",
regex: /\b(?:else|if|match|switch|then)\b/
Expand Down

0 comments on commit 16b2b91

Please sign in to comment.