Skip to content

Commit

Permalink
Swift lexer: add 'associatedtype' keyword (#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaskollmer committed Apr 7, 2021
1 parent 1417210 commit 7c8268b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygments/lexers/objective.py
Expand Up @@ -440,8 +440,8 @@ class SwiftLexer(RegexLexer):
(r'(var|let)(\s+)([a-zA-Z_]\w*)', bygroups(Keyword.Declaration,
Text, Name.Variable)),
(words((
'class', 'deinit', 'enum', 'extension', 'func', 'import', 'init',
'internal', 'let', 'operator', 'private', 'protocol', 'public',
'associatedtype', 'class', 'deinit', 'enum', 'extension', 'func', 'import',
'init', 'internal', 'let', 'operator', 'private', 'protocol', 'public',
'static', 'struct', 'subscript', 'typealias', 'var'), suffix=r'\b'),
Keyword.Declaration)
],
Expand Down

0 comments on commit 7c8268b

Please sign in to comment.