2 * Copyright 2014, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
7 #include "CLanguageFamilySyntaxHighlighter.h"
11 #include <AutoDeleter.h>
13 #include "CLanguageFamilySyntaxHighlightInfo.h"
14 #include "CLanguageTokenizer.h"
17 using CLanguage::Tokenizer
;
20 CLanguageFamilySyntaxHighlighter::CLanguageFamilySyntaxHighlighter()
27 CLanguageFamilySyntaxHighlighter::~CLanguageFamilySyntaxHighlighter()
33 CLanguageFamilySyntaxHighlighter::ParseText(LineDataSource
* source
,
34 TeamTypeInformation
* typeInfo
, SyntaxHighlightInfo
*& _info
)
36 Tokenizer
* tokenizer
= new(std::nothrow
) Tokenizer();
37 if (tokenizer
== NULL
)
39 ObjectDeleter
<Tokenizer
> deleter(tokenizer
);
41 _info
= new(std::nothrow
) CLanguageFamilySyntaxHighlightInfo(source
,