diff --git a/cwObject.cpp b/cwObject.cpp index ddd33d5..7037904 100644 --- a/cwObject.cpp +++ b/cwObject.cpp @@ -24,7 +24,8 @@ namespace cw kCommaLexTId, kTrueLexTId, kFalseLexTId, - kNullLexTId + kNullLexTId, + kSegmentedIdLexTId, // id with embedded periods }; idLabelPair_t _objTokenArray[] = @@ -42,6 +43,18 @@ namespace cw }; + unsigned _lexSegmentedIdMatcher( const char* cp, unsigned cn ) + { + unsigned i = 0; + if( isalpha(cp[0]) || (cp[0]== '_')) + { + i = 1; + for(; i