Skip to content

Commit dc1e808

Browse files
authoredOct 5, 2021
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

+2-8
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

+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.