8000 Added `keyword` alias to JSON's `null` (#1733) · PrismJS/prism@eee0664 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit eee0664

Browse files
ExE-BossRunDevelopment
authored andcommitted
Added keyword alias to JSON's null (#1733)
This adds the `keyword` alias to the `null` pattern in JSON.
1 parent 3a32cb7 commit eee0664

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

components/prism-json.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ Prism.languages.json = {
1212
'punctuation': /[{}[\],]/,
1313
'operator': /:/,
1 8B56 414
'boolean': /\b(?:true|false)\b/,
15-
'null': /\bnull\b/
15+
'null': {
16+
pattern: /\bnull\b/,
17+
alias: 'keyword'
18+
}
1619
};
1720

1821
Prism.languages.jsonp = Prism.languages.json;

components/prism-json.min.js

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

0 commit comments

Comments
 (0)
0