summaryrefslogtreecommitdiff
path: root/pygments/lexers/dotnet.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-03-10 14:27:31 +0100
committerGeorg Brandl <georg@python.org>2012-03-10 14:27:31 +0100
commitc11b7995ce496ad1f0dc439187b0b8334428a78c (patch)
treeed004a956751bc1ebbb8002dc6ccb2b3a1c4f66f /pygments/lexers/dotnet.py
parentd761f76cb2491e4269638a4971dff6c26010c85f (diff)
parent08c53fd3c0e9ef11f66b9bf4dc8475677d2b7566 (diff)
downloadpygments-c11b7995ce496ad1f0dc439187b0b8334428a78c.tar.gz
Merged in rafaelmartins/pygments-main (pull request #60)
Diffstat (limited to 'pygments/lexers/dotnet.py')
-rw-r--r--pygments/lexers/dotnet.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pygments/lexers/dotnet.py b/pygments/lexers/dotnet.py
index 8b7a0b89..278ba546 100644
--- a/pygments/lexers/dotnet.py
+++ b/pygments/lexers/dotnet.py
@@ -344,7 +344,7 @@ class BooLexer(RegexLexer):
(r"'(\\\\|\\'|[^']*?)'", String.Single),
(r'[a-zA-Z_][a-zA-Z0-9_]*', Name),
(r'(\d+\.\d*|\d*\.\d+)([fF][+-]?[0-9]+)?', Number.Float),
- (r'[0-9][0-9\.]*(m|ms|d|h|s)', Number),
+ (r'[0-9][0-9\.]*(ms?|d|h|s)', Number),
(r'0\d+', Number.Oct),
(r'0x[a-fA-F0-9]+', Number.Hex),
(r'\d+L', Number.Integer.Long),
@@ -559,10 +559,10 @@ class FSharpLexer(RegexLexer):
'with', 'yield', 'yield!'
]
keyopts = [
- '!=','#','&','&&','\(','\)','\*','\+',',','-',
- '-\.','->','\.','\.\.',':','::',':=',':>',';',';;','<',
- '<-','>','>]','\?','\?\?','\[','\[<','\[>','\[\|',
- ']','_','`','{','\|','\|]','}','~','<@','=','@>'
+ '!=','#','&&','&','\(','\)','\*','\+',',','-\.',
+ '->','-','\.\.','\.','::',':=',':>',':',';;',';','<-',
+ '<','>]','>','\?\?','\?','\[<','\[>','\[\|','\[',
+ ']','_','`','{','\|\]','\|','}','~','<@','=','@>'
]
operators = r'[!$%&*+\./:<=>?@^|~-]'