Skip to content

Commit

Permalink
Added keyword alias to JSON's null (#1733)
Browse files Browse the repository at this point in the history
This adds the `keyword` alias to the `null` pattern in JSON.
  • Loading branch information
ExE-Boss authored and RunDevelopment committed Feb 14, 2019
1 parent 3a32cb7 commit eee0664
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion components/prism-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ Prism.languages.json = {
'punctuation': /[{}[\],]/,
'operator': /:/,
'boolean': /\b(?:true|false)\b/,
'null': /\bnull\b/
'null': {
pattern: /\bnull\b/,
alias: 'keyword'
}
};

Prism.languages.jsonp = Prism.languages.json;
2 changes: 1 addition & 1 deletion components/prism-json.min.js

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

0 comments on commit eee0664

Please sign in to comment.