Skip to content

Commit

Permalink
JS Extras: Added control-flow keywords (#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Aug 27, 2020
1 parent 206dc80 commit bcef22a
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 bcef22a

Please sign in to comment.