8000 Add `keyword` alias for SCSS' `null` (#1735) · PrismJS/prism@bd0378f · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit bd0378f

Browse files
RunDevelopmentmAAdhaTTah
authored andcommitted
Add keyword alias for SCSS' null (#1735)
Add the `keyword` alias to the `null` pattern for SCSS. This was the last `null` pattern without any aliases (#1727).
1 parent fccfb98 commit bd0378f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

components/prism-scss.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ Prism.languages.insertBefore('scss', 'function', {
6464
alias: 'keyword'
6565
},
6666
'boolean': /\b(?:true|false)\b/,
67-
'null': /\bnull\b/,
67+
'null': {
68+
pattern: /\bnull\b/,
69+
alias: 'keyword'
70+
},
6871
'operator': {
6972
pattern: /(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|or|not)(?=\s)/,
7073
lookbehind: true

components/prism-scss.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