Skip to content

Commit

Permalink
JS Extras: Added control-flow keywords (PrismJS#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored and quentinvernot committed Sep 11, 2020
1 parent ee848e2 commit aa2eb49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/prism-js-extras.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
pattern: /\b(?:as|default|export|from|import)\b/,
alias: 'module'
},
{
pattern: /\b(?:await|break|catch|continue|do|else|for|finally|if|return|switch|throw|try|while|yield)\b/,
alias: 'control-flow'
},
{
pattern: /\bnull\b/,
alias: ['null', 'nil']
Expand Down
2 changes: 1 addition & 1 deletion components/prism-js-extras.min.js

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

0 comments on commit aa2eb49

Please sign in to comment.