This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/cpp/extension_keywords.txt
Christopher Di Bella 8f6bc3ae43
Updates C and C++ lexers (#2422)
* replaces `restrict` with `__restrict` in C++

`restrict` isn't a C++ keyword, but `__restrict` is recognised by Clang,
GCC, and MSVC as a language extension.

* adds `_BitInt` and `__int128` as C and C++ types

* `_BitInt` is a new C type and an extended integral type for C++.
* `__int128` is an extended integral type on both Clang and GCC.
2023-04-26 09:39:19 +02:00

17 lines
314 B
Text

---input---
__restrict
__int128
_BitInt(2)
---tokens---
'__restrict' Keyword
'\n' Text.Whitespace
'__int128' Keyword.Type
'\n' Text.Whitespace
'_BitInt' Keyword.Type
'(' Punctuation
'2' Literal.Number.Integer
')' Punctuation
'\n' Text.Whitespace