summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav Jain <gaurav@gauravjain.org>2014-05-14 21:07:58 -0400
committerGaurav Jain <gaurav@gauravjain.org>2014-05-14 21:07:58 -0400
commit5788913e54e9a5430e699158f6daee5080d4e61f (patch)
tree02b361e3ff884699fbff4b8ee310b66917261ac7
parent69e0fb0a001e2a3537f6fe0e1ae6b191b422a0ca (diff)
downloadpygments-5788913e54e9a5430e699158f6daee5080d4e61f.tar.gz
Replace ^\s* with ^[ \t]* to avoid catching \n
-rw-r--r--pygments/lexers/dotnet.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/dotnet.py b/pygments/lexers/dotnet.py
index 50412a6c..d6691bf1 100644
--- a/pygments/lexers/dotnet.py
+++ b/pygments/lexers/dotnet.py
@@ -460,8 +460,8 @@ class VbNetLexer(RegexLexer):
}
def analyse_text(text):
- if (re.search(r'^\s*#If', text, re.I)
- or re.search(r'^\s*(Module|Namespace)', re.I)):
+ if (re.search(r'^[ \t]*#If', text, re.I)
+ or re.search(r'^[ \t]*(Module|Namespace)', re.I)):
return 0.5