Skip to content

Commit

Permalink
Add more keywords to Carbon lexer (#2369)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrDeveloper committed Mar 3, 2023
1 parent d27aa10 commit b4885f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pygments/lexers/carbon.py
Expand Up @@ -46,8 +46,8 @@ class CarbonLexer(RegexLexer):
(words(('as', 'or', 'not', 'and', 'break', 'continue', 'case',
'default', 'if', 'else', 'destructor', 'for', 'forall',
'while', 'where', 'then', 'in', 'is', 'return', 'returned',
'friend', 'partial', 'private', 'protected', 'observe',
'override', 'Self'), suffix=r'\b'), Keyword),
'friend', 'partial', 'private', 'protected', 'observe', 'Self',
'override', 'final', 'match', 'type', 'like'), suffix=r'\b'), Keyword),
(r'(self)\b', Keyword.Pseudo),
(r'(true|false)\b', Keyword.Constant),
(r'(auto|bool|string|i8|i16|i32|i64|u8|u16|u32|u64|'
Expand Down
4 changes: 2 additions & 2 deletions tests/examplefiles/carbon/declarations.carbon.output

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b4885f8

Please sign in to comment.