diff options
author | Amr Hesham <amr96@programmer.net> | 2023-03-02 21:24:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-02 20:24:29 +0100 |
commit | 826dc600e8458a2a65c712492c48ec30a19fce2c (patch) | |
tree | 18bb219e8409b09a38a539b5f6216fa9e098a22c /pygments | |
parent | 3ed18e5fe815b1334742a3a15b594aa07486acfd (diff) | |
download | pygments-git-826dc600e8458a2a65c712492c48ec30a19fce2c.tar.gz |
Add support for impl and constraint declaration in Carbon lexer (#2368)
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/carbon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/carbon.py b/pygments/lexers/carbon.py index bb1cb36d..07cf75dd 100644 --- a/pygments/lexers/carbon.py +++ b/pygments/lexers/carbon.py @@ -41,7 +41,7 @@ class CarbonLexer(RegexLexer): # Declaration (r'(package|import|api|namespace|library)\b', Keyword.Namespace), (r'(abstract|alias|fn|class|interface|let|var|virtual|external|' - r'base|addr|extends|choice)\b', Keyword.Declaration), + r'base|addr|extends|choice|constraint|impl)\b', Keyword.Declaration), # Keywords (words(('as', 'or', 'not', 'and', 'break', 'continue', 'case', 'default', 'if', 'else', 'destructor', 'for', 'forall', |