Skip to content
Permalink
Browse files
Nix: Use standard token name correctly (#3232)
  • Loading branch information
RunDevelopment committed Dec 7, 2021
1 parent e03a7c2 commit 5bf6e35fee4bd8cd2b59d61d3813e19464132144
Showing with 6 additions and 3 deletions.
  1. +5 −2 components/prism-nix.js
  2. +1 −1 components/prism-nix.min.js
@@ -1,5 +1,8 @@
Prism.languages.nix = {
'comment': /\/\*[\s\S]*?\*\/|#.*/,
'comment': {
pattern: /\/\*[\s\S]*?\*\/|#.*/,
greedy: true
},
'string': {
pattern: /"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,
greedy: true,
@@ -21,7 +24,7 @@ Prism.languages.nix = {
],
'antiquotation': {
pattern: /\$(?=\{)/,
alias: 'variable'
alias: 'important'
},
'number': /\b\d+\b/,
'keyword': /\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,

Some generated files are not rendered by default. Learn more.

0 comments on commit 5bf6e35

Please sign in to comment.