📄 synhighlighterasm.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'SynHighlighterAsm.pas' rev: 6.00
#ifndef SynHighlighterAsmHPP
#define SynHighlighterAsmHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Classes.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <SynHighlighterHashEntries.hpp> // Pascal unit
#include <SynEditHighlighter.hpp> // Pascal unit
#include <SynEditTypes.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Synhighlighterasm
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TtkTokenKind { tkComment, tkIdentifier, tkKey, tkNull, tkNumber, tkSpace, tkString, tkSymbol, tkUnknown };
#pragma option pop
typedef void __fastcall (__closure *TProcTableProc)(void);
class DELPHICLASS TSynAsmSyn;
class PASCALIMPLEMENTATION TSynAsmSyn : public Synedithighlighter::TSynCustomHighlighter
{
typedef Synedithighlighter::TSynCustomHighlighter inherited;
private:
char *fLine;
int fLineNumber;
TProcTableProc fProcTable[256];
int Run;
int fStringLen;
char *fToIdent;
int fTokenPos;
TtkTokenKind fTokenID;
Synedithighlighter::TSynHighlighterAttributes* fCommentAttri;
Synedithighlighter::TSynHighlighterAttributes* fIdentifierAttri;
Synedithighlighter::TSynHighlighterAttributes* fKeyAttri;
Synedithighlighter::TSynHighlighterAttributes* fNumberAttri;
Synedithighlighter::TSynHighlighterAttributes* fSpaceAttri;
Synedithighlighter::TSynHighlighterAttributes* fStringAttri;
Synedithighlighter::TSynHighlighterAttributes* fSymbolAttri;
Synhighlighterhashentries::TSynHashEntryList* fKeywords;
int __fastcall KeyHash(char * ToHash);
bool __fastcall KeyComp(const AnsiString aKey);
void __fastcall CommentProc(void);
void __fastcall CRProc(void);
void __fastcall GreaterProc(void);
void __fastcall IdentProc(void);
void __fastcall LFProc(void);
void __fastcall LowerProc(void);
void __fastcall NullProc(void);
void __fastcall NumberProc(void);
void __fastcall SlashProc(void);
void __fastcall SpaceProc(void);
void __fastcall StringProc(void);
void __fastcall SingleQuoteStringProc(void);
void __fastcall SymbolProc(void);
void __fastcall UnknownProc(void);
void __fastcall DoAddKeyword(AnsiString AKeyword, int AKind);
TtkTokenKind __fastcall IdentKind(char * MayBe);
void __fastcall MakeMethodTables(void);
protected:
virtual Synedittypes::TSynIdentChars __fastcall GetIdentChars();
virtual AnsiString __fastcall GetSampleSource();
virtual bool __fastcall IsFilterStored(void);
public:
/* virtual class method */ virtual AnsiString __fastcall GetLanguageName(TMetaClass* vmt);
__fastcall virtual TSynAsmSyn(Classes::TComponent* AOwner);
__fastcall virtual ~TSynAsmSyn(void);
virtual Synedithighlighter::TSynHighlighterAttributes* __fastcall GetDefaultAttribute(int Index);
virtual bool __fastcall GetEol(void);
TtkTokenKind __fastcall GetTokenID(void);
virtual void __fastcall SetLine(AnsiString NewValue, int LineNumber);
virtual AnsiString __fastcall GetToken();
virtual Synedithighlighter::TSynHighlighterAttributes* __fastcall GetTokenAttribute(void);
virtual int __fastcall GetTokenKind(void);
virtual int __fastcall GetTokenPos(void);
virtual void __fastcall Next(void);
__published:
__property Synedithighlighter::TSynHighlighterAttributes* CommentAttri = {read=fCommentAttri, write=fCommentAttri};
__property Synedithighlighter::TSynHighlighterAttributes* IdentifierAttri = {read=fIdentifierAttri, write=fIdentifierAttri};
__property Synedithighlighter::TSynHighlighterAttributes* KeyAttri = {read=fKeyAttri, write=fKeyAttri};
__property Synedithighlighter::TSynHighlighterAttributes* NumberAttri = {read=fNumberAttri, write=fNumberAttri};
__property Synedithighlighter::TSynHighlighterAttributes* SpaceAttri = {read=fSpaceAttri, write=fSpaceAttri};
__property Synedithighlighter::TSynHighlighterAttributes* StringAttri = {read=fStringAttri, write=fStringAttri};
__property Synedithighlighter::TSynHighlighterAttributes* SymbolAttri = {read=fSymbolAttri, write=fSymbolAttri};
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Synhighlighterasm */
using namespace Synhighlighterasm;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // SynHighlighterAsm
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -