diff --git a/pygments/lexers/carbon.py b/pygments/lexers/carbon.py index 07cf75ddfe..adc5ff383f 100644 --- a/pygments/lexers/carbon.py +++ b/pygments/lexers/carbon.py @@ -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|' diff --git a/tests/examplefiles/carbon/declarations.carbon.output b/tests/examplefiles/carbon/declarations.carbon.output index 48b1362f1a..125c5694ae 100644 --- a/tests/examplefiles/carbon/declarations.carbon.output +++ b/tests/examplefiles/carbon/declarations.carbon.output @@ -16,14 +16,14 @@ ':' Punctuation '!' Punctuation ' ' Text.Whitespace -'type' Name.Other +'type' Keyword ',' Punctuation ' ' Text.Whitespace 'YY' Name.Other ':' Punctuation '!' Punctuation ' ' Text.Whitespace -'type' Name.Other +'type' Keyword ')' Punctuation ' ' Text.Whitespace '{' Punctuation