Skip to content

Commit dc1e808

Browse files
Nix: Removed unmatchable token (#3119)
1 parent 75331be commit dc1e808

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

components/prism-nix.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ Prism.languages.nix = {
88
// The lookbehind ensures the ${} is not preceded by \ or ''
99
pattern: /(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,
1010
lookbehind: true,
11-
inside: {
12-
'antiquotation': {
13-
pattern: /^\$(?=\{)/,
14-
alias: 'variable'
15-
}
16-
// See rest below
17-
}
11+
inside: null // see below
1812
}
1913
}
2014
},
@@ -37,4 +31,4 @@ Prism.languages.nix = {
3731
'punctuation': /[{}()[\].,:;]/
3832
};
3933

40-
Prism.languages.nix.string.inside.interpolation.inside.rest = Prism.languages.nix;
34+
Prism.languages.nix.string.inside.interpolation.inside = Prism.languages.nix;

components/prism-nix.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)