summaryrefslogtreecommitdiff
path: root/pygments/lexers/dotnet.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2006-10-28 20:28:46 +0200
committergbrandl <devnull@localhost>2006-10-28 20:28:46 +0200
commitd336a1d4c0375b2b7cf266b6073932e3abb0968d (patch)
treeb4c055b55cd39905b97bf742bde988ca68cf9b71 /pygments/lexers/dotnet.py
parent1612315c4b33db53324d6b1e0176b4a8c3f129ca (diff)
downloadpygments-d336a1d4c0375b2b7cf266b6073932e3abb0968d.tar.gz
[svn] Add mime type selection for lexers.
Diffstat (limited to 'pygments/lexers/dotnet.py')
-rw-r--r--pygments/lexers/dotnet.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pygments/lexers/dotnet.py b/pygments/lexers/dotnet.py
index f3932c37..bfc59233 100644
--- a/pygments/lexers/dotnet.py
+++ b/pygments/lexers/dotnet.py
@@ -21,6 +21,7 @@ class CSharpLexer(RegexLexer):
name = 'C#'
aliases = ['csharp', 'c#']
filenames = ['*.cs']
+ mimetypes = ['text/x-csharp'] # inferred
flags = re.MULTILINE | re.DOTALL
@@ -77,6 +78,7 @@ class BooLexer(RegexLexer):
name = 'Boo'
aliases = ['boo']
filenames = ['*.boo']
+ mimetypes = ['text/x-boo']
tokens = {
'root': [
@@ -139,6 +141,7 @@ class VbNetLexer(RegexLexer):
name = 'VB.net'
aliases = ['vb.net', 'vbnet']
filenames = ['*.vb', '*.bas']
+ mimetypes = ['text/x-vbnet', 'text/x-vba'] # (?)
flags = re.MULTILINE | re.IGNORECASE
tokens = {