Skip to content

Commit

Permalink
Nix: Removed unmatchable token (#3119)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Oct 5, 2021
1 parent 75331be commit dc1e808
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions components/prism-nix.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ Prism.languages.nix = {
// The lookbehind ensures the ${} is not preceded by \ or ''
pattern: /(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,
lookbehind: true,
inside: {
'antiquotation': {
pattern: /^\$(?=\{)/,
alias: 'variable'
}
// See rest below
}
inside: null // see below
}
}
},
Expand All @@ -37,4 +31,4 @@ Prism.languages.nix = {
'punctuation': /[{}()[\].,:;]/
};

Prism.languages.nix.string.inside.interpolation.inside.rest = Prism.languages.nix;
Prism.languages.nix.string.inside.interpolation.inside = Prism.languages.nix;
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 dc1e808

Please sign in to comment.