Skip to content

Commit 5bf6e35

Browse files
authoredDec 7, 2021
Nix: Use standard token name correctly (#3232)
1 parent e03a7c2 commit 5bf6e35

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
 

‎components/prism-nix.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Prism.languages.nix = {
2-
'comment': /\/\*[\s\S]*?\*\/|#.*/,
2+
'comment': {
3+
pattern: /\/\*[\s\S]*?\*\/|#.*/,
4+
greedy: true
5+
},
36
'string': {
47
pattern: /"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,
58
greedy: true,
@@ -21,7 +24,7 @@ Prism.languages.nix = {
2124
],
2225
'antiquotation': {
2326
pattern: /\$(?=\{)/,
24-
alias: 'variable'
27+
alias: 'important'
2528
},
2629
'number': /\b\d+\b/,
2730
'keyword': /\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,

‎components/prism-nix.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)
Please sign in to comment.