Last change
on this file was 829, checked in by イグトランス (egtra), 12 years ago |
svn:eol-styleとsvn:mime-type(文字コード指定含む)の設定
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/plain; charset=Shift_JIS
|
File size:
1.1 KB
|
Rev | Line | |
---|
[829] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | namespace ActiveBasic{ namespace IDE{ namespace WindowComponents{ namespace CodeEditor{
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | struct ReservedKeywordWithQuickHelp
|
---|
| 7 | {
|
---|
| 8 | std::string keyword;
|
---|
| 9 | std::string quickHelp;
|
---|
| 10 | };
|
---|
| 11 | typedef std::vector<ReservedKeywordWithQuickHelp> ReservedKeywordsWithQuickHelp;
|
---|
| 12 | struct Syntax
|
---|
| 13 | {
|
---|
| 14 | std::string commentSingle;
|
---|
| 15 | std::string commentMultiBegin;
|
---|
| 16 | std::string commentMultiEnd;
|
---|
| 17 | Jenga::Common::Strings quoteMarks;
|
---|
| 18 | Jenga::Common::Strings reservedSimpleKeywords;
|
---|
| 19 | ReservedKeywordsWithQuickHelp reservedKeywordsWithQuickHelp;
|
---|
| 20 | };
|
---|
| 21 | class Language
|
---|
| 22 | {
|
---|
| 23 | std::string name;
|
---|
| 24 | Syntax syntax;
|
---|
| 25 | public:
|
---|
| 26 | const std::string &GetName() const
|
---|
| 27 | {
|
---|
| 28 | return name;
|
---|
| 29 | }
|
---|
| 30 | const Syntax &GetSyntax() const
|
---|
| 31 | {
|
---|
| 32 | return syntax;
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | void Load( const TiXmlDocument &doc );
|
---|
| 36 | bool IsExistKeyword( const std::string &keyword ) const;
|
---|
| 37 | bool IsExistReservedKeywordWithQuickHelp( const std::string &keyword ) const;
|
---|
| 38 | const std::string &GetReservedKeywordWithQuickHelp( const std::string &keyword ) const;
|
---|
| 39 | bool IsQuoteMark( char c ) const;
|
---|
| 40 | };
|
---|
| 41 | class Languages
|
---|
| 42 | : public std::map<std::string, Language>
|
---|
| 43 | {
|
---|
| 44 | void Add( const std::string &xmlPath );
|
---|
| 45 | public:
|
---|
| 46 | void LoadFiles( const std::string &dirPath );
|
---|
| 47 | };
|
---|
| 48 |
|
---|
| 49 |
|
---|
| 50 | }}}}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.