diff options
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | pygments/lexers/dotnet.py | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -71,7 +71,8 @@ Version 1.7 - Prolog lexer: add different kinds of numeric literals (#864). -- F# lexer: rewrite with newest spec for F# 3.0 (#842). +- F# lexer: rewrite with newest spec for F# 3.0 (#842), fix a bug with + dotted chains (#948). - Kotlin lexer: general update (PR#271). diff --git a/pygments/lexers/dotnet.py b/pygments/lexers/dotnet.py index 5bda5c2d..565bd8dd 100644 --- a/pygments/lexers/dotnet.py +++ b/pygments/lexers/dotnet.py @@ -638,6 +638,8 @@ class FSharpLexer(RegexLexer): (r'[A-Z][A-Za-z0-9_\']*(?=\s*\.)', Name.Namespace), (r'[A-Z][A-Za-z0-9_\']*', Name, '#pop'), (r'[a-z_][A-Za-z0-9_\']*', Name, '#pop'), + # e.g. dictionary index access + (r'', Text, '#pop'), ], 'comment': [ (r'[^(*)@"]+', Comment), |