summaryrefslogtreecommitdiff
path: root/pygments/lexers/dotnet.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-12 08:18:34 +0100
committerGeorg Brandl <georg@python.org>2012-02-12 08:18:34 +0100
commitabac6bdb8295926ca903e27c2c00f63fe2cc7568 (patch)
tree3de130bf8673c3de07b634894df308fbe2cefb41 /pygments/lexers/dotnet.py
parent9bfe8d53ac71650912a414163accebb4d49de802 (diff)
downloadpygments-abac6bdb8295926ca903e27c2c00f63fe2cc7568.tar.gz
Closes #737: CSharpASP: remove unconditional 0.001 from analyse_text
Diffstat (limited to 'pygments/lexers/dotnet.py')
-rw-r--r--pygments/lexers/dotnet.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pygments/lexers/dotnet.py b/pygments/lexers/dotnet.py
index ae2dbc64..8b7a0b89 100644
--- a/pygments/lexers/dotnet.py
+++ b/pygments/lexers/dotnet.py
@@ -465,6 +465,7 @@ class VbNetLexer(RegexLexer):
]
}
+
class GenericAspxLexer(RegexLexer):
"""
Lexer for ASP.NET pages.
@@ -487,6 +488,7 @@ class GenericAspxLexer(RegexLexer):
],
}
+
#TODO support multiple languages within the same source file
class CSharpAspxLexer(DelegatingLexer):
"""
@@ -507,7 +509,7 @@ class CSharpAspxLexer(DelegatingLexer):
return 0.2
elif re.search(r'script[^>]+language=["\']C#', text, re.I) is not None:
return 0.15
- return 0.001 # TODO really only for when filename matched...
+
class VbNetAspxLexer(DelegatingLexer):
"""