summaryrefslogtreecommitdiff
path: root/pygments/lexers/nix.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/nix.py')
-rw-r--r--pygments/lexers/nix.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/pygments/lexers/nix.py b/pygments/lexers/nix.py
index 6d9f0e7d..1bf533dd 100644
--- a/pygments/lexers/nix.py
+++ b/pygments/lexers/nix.py
@@ -91,10 +91,10 @@ class NixLexer(RegexLexer):
],
'comment': [
- (r'[^/\*]+', Comment.Multiline),
+ (r'[^/*]+', Comment.Multiline),
(r'/\*', Comment.Multiline, '#push'),
(r'\*/', Comment.Multiline, '#pop'),
- (r'[\*/]', Comment.Multiline),
+ (r'[*/]', Comment.Multiline),
],
'singlequote': [
(r"'''", String.Escape),
@@ -129,10 +129,6 @@ class NixLexer(RegexLexer):
rv += 0.4
if re.search(r'mkDerivation\s+(\(|\{|rec)', text):
rv += 0.4
- if re.search(r'with\s+[a-zA-Z\.]+;', text):
- rv += 0.2
- if re.search(r'inherit\s+[a-zA-Z()\.];', text):
- rv += 0.2
if re.search(r'=\s+mkIf\s+', text):
rv += 0.4
if re.search(r'\{[a-zA-Z,\s]+\}:', text):