1 ///////////////////////////////////////////////////////////////////////////
4 // Created: 29-Dec-1998
6 // Copyright: Stcherbatchenko Andrei
7 // E-mail: windfall@gmx.de
9 // Implementation of the CCrystalEditView class, a part of the Crystal Edit -
10 // syntax coloring text editor.
12 // You are free to use or modify this code to the following restrictions:
13 // - Acknowledge me somewhere in your about box, simple "Parts of code by.."
14 // will be enough. If you can't (or don't want to), contact me personally.
15 // - LEAVE THIS HEADER INTACT
16 ////////////////////////////////////////////////////////////////////////////
18 ////////////////////////////////////////////////////////////////////////////
21 // + FEATURE: corrected bug in syntax highlighting C comments
22 // + FEATURE: extended levels 1- 4 of keywords in some languages
24 // ... it's being edited very rapidly so sorry for non-commented
25 // and maybe "ugly" code ...
26 ////////////////////////////////////////////////////////////////////////////
29 #include "crystallineparser.h"
30 #include "../SyntaxColors.h"
31 #include "../utils/string_util.h"
38 static const TCHAR * s_apszCppKeywordList[] =
120 IsCppKeyword (const TCHAR *pszChars, int nLength)
122 return ISXKEYWORD (s_apszCppKeywordList, pszChars, nLength);
126 CrystalLineParser::ParseLineCSharp (unsigned dwCookie, const TCHAR *pszChars, int nLength, TEXTBLOCK * pBuf, int &nActualItems)
128 return ParseLineCJava (dwCookie, pszChars, nLength, pBuf, nActualItems, IsCppKeyword, nullptr);