Skip to content

Commit

Permalink
Nix: Use standard token name correctly (#3232)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Dec 7, 2021
1 parent e03a7c2 commit 5bf6e35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions components/prism-nix.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,
Expand All @@ -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/,
Expand Down
2 changes: 1 addition & 1 deletion components/prism-nix.min.js

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

0 comments on commit 5bf6e35

Please sign in to comment.