diff options
| author | Naïm Favier <n@monade.li> | 2022-12-03 15:21:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-03 15:21:58 +0100 |
| commit | c9490833f7197a245eb738388b5d5e2794bffc39 (patch) | |
| tree | d660315ad21f749e08d82b5df10eb04faa0990fb /pygments/lexers | |
| parent | 00652612173e39d1552dd2efeb12ae1020fa003f (diff) | |
| download | pygments-git-c9490833f7197a245eb738388b5d5e2794bffc39.tar.gz | |
nix: allow single quotes inside single-quoted strings (#2289)
Diffstat (limited to 'pygments/lexers')
| -rw-r--r-- | pygments/lexers/nix.py | 1 |
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': [ |
