Skip to content

Commit

Permalink
Added Swift concurrency keywords (#1842)
Browse files Browse the repository at this point in the history
  • Loading branch information
nemecek-filip committed Jun 20, 2021
1 parent 1664557 commit 744a84a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygments/lexers/objective.py
Expand Up @@ -412,7 +412,7 @@ class SwiftLexer(RegexLexer):
],
'keywords': [
(words((
'as', 'break', 'case', 'catch', 'continue', 'default', 'defer',
'as', 'async', 'await', 'break', 'case', 'catch', 'continue', 'default', 'defer',
'do', 'else', 'fallthrough', 'for', 'guard', 'if', 'in', 'is',
'repeat', 'return', '#selector', 'switch', 'throw', 'try',
'where', 'while'), suffix=r'\b'),
Expand Down Expand Up @@ -440,7 +440,7 @@ class SwiftLexer(RegexLexer):
(r'(var|let)(\s+)([a-zA-Z_]\w*)', bygroups(Keyword.Declaration,
Text, Name.Variable)),
(words((
'associatedtype', 'class', 'deinit', 'enum', 'extension', 'func', 'import',
'actor', '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 744a84a

Please sign in to comment.