diff options
author | Stephen Celis <stephen@stephencelis.com> | 2014-10-24 09:43:28 -0700 |
---|---|---|
committer | Stephen Celis <stephen@stephencelis.com> | 2014-10-24 09:43:28 -0700 |
commit | 518218d49567f4472d004177da03f20fdfe54951 (patch) | |
tree | ab604d84d3ef7079ea25466db1b7f45538733d6f /pygments/lexers/objective.py | |
parent | e11d4f5dda9b017e4637ca86951c8b5c1598ac69 (diff) | |
download | pygments-518218d49567f4472d004177da03f20fdfe54951.tar.gz |
Swift Lexer: Whitespace not optional
Diffstat (limited to 'pygments/lexers/objective.py')
-rw-r--r-- | pygments/lexers/objective.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/objective.py b/pygments/lexers/objective.py index 9ab06575..082167e1 100644 --- a/pygments/lexers/objective.py +++ b/pygments/lexers/objective.py @@ -416,11 +416,11 @@ class SwiftLexer(RegexLexer): (r'(as|dynamicType|false|is|nil|self|Self|super|true|__COLUMN__' r'|__FILE__|__FUNCTION__|__LINE__|_)\b', Keyword.Constant), (r'import\b', Keyword.Declaration, 'module'), - (r'(class|enum|extension|struct|protocol)(\s*)([a-zA-Z_]\w*)', + (r'(class|enum|extension|struct|protocol)(\s+)([a-zA-Z_]\w*)', bygroups(Keyword.Declaration, Text, Name.Class)), - (r'(func)(\s*)([a-zA-Z_]\w*)', + (r'(func)(\s+)([a-zA-Z_]\w*)', bygroups(Keyword.Declaration, Text, Name.Function)), - (r'(var|let)(\s*)([a-zA-Z_]\w*)', bygroups(Keyword.Declaration, + (r'(var|let)(\s+)([a-zA-Z_]\w*)', bygroups(Keyword.Declaration, Text, Name.Variable)), (r'(class|deinit|enum|extension|func|import|init|internal|let' r'|operator|private|protocol|public|static|struct|subscript' |