summaryrefslogtreecommitdiff
path: root/pygments/lexers
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-12-03 15:21:58 +0100
committerGitHub <noreply@github.com>2022-12-03 15:21:58 +0100
commitc9490833f7197a245eb738388b5d5e2794bffc39 (patch)
treed660315ad21f749e08d82b5df10eb04faa0990fb /pygments/lexers
parent00652612173e39d1552dd2efeb12ae1020fa003f (diff)
downloadpygments-git-c9490833f7197a245eb738388b5d5e2794bffc39.tar.gz
nix: allow single quotes inside single-quoted strings (#2289)
Diffstat (limited to 'pygments/lexers')
-rw-r--r--pygments/lexers/nix.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/nix.py b/pygments/lexers/nix.py
index 83731c7b..45c4bea5 100644
--- a/pygments/lexers/nix.py
+++ b/pygments/lexers/nix.py
@@ -102,6 +102,7 @@ class NixLexer(RegexLexer):
(r"''\t", String.Escape),
(r"''", String.Single, '#pop'),
(r'\$\{', String.Interpol, 'antiquote'),
+ (r"'", String.Single),
(r"[^']", String.Single),
],
'doublequote': [