Bladeren bron

vslol: add more C99 and C++ type qualifiers and language constants.

legacy
Sam Hocevar sam 12 jaren geleden
bovenliggende
commit
c5e39dc827
1 gewijzigde bestanden met toevoegingen van 8 en 5 verwijderingen
  1. +8
    -5
      tools/vslol/CppKeywordClassifier.cs

+ 8
- 5
tools/vslol/CppKeywordClassifier.cs Bestand weergeven

@@ -64,16 +64,19 @@ class CppKeywordClassifier : IClassifier

private static const string[] m_all_types =
{
"auto|void|bool|int|unsigned|char|short|long|float|double";
"void|bool|int|signed|unsigned|char|short|long|float|double";
"class|struct|union|template|namespace|typename|typedef",
"const|static|extern|volatile|inline|explicit"
"inline|restrict|export|explicit|mutable",
"static|register|auto|volatile|extern|const"
};

private static const string[] m_cpp_types =
{
"u?int(8|16|32|64|ptr)_t",
"(wchar|size|ssize)_t",
"va_list",
"u?int(8|16|32|64|ptr|max)_t",
"u?int_(least|fast)(8|16|32|64)_t",
"(wchar|char16|char32|size|ssize|off|ptrdiff)_t",
"(sig_atomic|fpos|clock|time|div|ldiv)_t",
"va_list|jmp_buf|FILE|DIR",
};

/* ldouble real half


Laden…
Annuleren
Opslaan