Changeset 2120 for trunk/tools


Ignore:
Timestamp:
Nov 29, 2012, 1:54:40 AM (7 years ago)
Author:
sam
Message:

vslol: add many more C/C++ types to the default list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/vslol/CppKeywordClassifier.cs

    r2119 r2120  
    5656
    5757            string tmp = @"\b(";
    58             tmp += "void|int|unsigned|char|short|long|float|double|";
    59             tmp += "class|struct|template|const|static|volatile|inline|namespace|";
     58            tmp += "void|bool|int|unsigned|char|short|long|float|double|ldouble|";
     59            tmp += "class|struct|union|template|const|static|extern|volatile|inline|namespace|";
    6060            if (type.IsOfType("lolfx"))
    6161                tmp += "attribute|varying|uniform|in|out|";
     
    6363                tmp += "var|string|internal|sealed|public|private|";
    6464            if (!type.IsOfType("csharp"))
    65                 tmp += "vec2|vec3|vec4|quat|mat2|mat3|mat4|";
     65                tmp += "(f(16|128)||d|[ui](8|16||64)|r)(vec[234]|mat[234]|quat|cmplx)|";
    6666            if (type.IsOfType("c/c++"))
    67                 tmp += "real|half|";
     67            {
     68                tmp += "u?int(8|16|32|64|ptr)_t|";
     69                tmp += "real|half|explicit|typename|typedef|";
     70            }
    6871            tmp += @")\b";
    6972            m_regex = new Regex(tmp);
Note: See TracChangeset for help on using the changeset viewer.