diff options
author | gbrandl <devnull@localhost> | 2007-08-14 23:39:34 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-08-14 23:39:34 +0200 |
commit | 77b8d3b7233ffb937451a19ca2ef78f0072426d0 (patch) | |
tree | c475c4d102ccf0b14bcd1f023ea21c465885f9aa | |
parent | 3e9801cb9d8fce3bff686759c09fd5fc972bdfae (diff) | |
download | pygments-77b8d3b7233ffb937451a19ca2ef78f0072426d0.tar.gz |
[svn] Highlight "import X hiding (...)" correctly.
-rw-r--r-- | pygments/lexers/functional.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pygments/lexers/functional.py b/pygments/lexers/functional.py index 5bbaa6c4..32e48eda 100644 --- a/pygments/lexers/functional.py +++ b/pygments/lexers/functional.py @@ -210,6 +210,9 @@ class HaskellLexer(RegexLexer): # import X as Y (r'([A-Z][a-zA-Z0-9_.]*)(\s+)(as)(\s+)([A-Z][a-zA-Z0-9_.]*)', bygroups(Name.Namespace, Text, Keyword, Text, Name), '#pop'), + # import X hiding (functions) + (r'([A-Z][a-zA-Z0-9_.]*)(\s+)(hiding)(\s+)(\()', + bygroups(Name.Namespace, Text, Keyword, Text, Punctuation), 'funclist'), # import X (functions) (r'([A-Z][a-zA-Z0-9_.]*)(\s+)(\()', bygroups(Name.Namespace, Text, Punctuation), 'funclist'), |