home *** CD-ROM | disk | FTP | other *** search
- object SyntAnal37: TLibSyntAnalyzer
- Formats = <
- item
- DisplayName = 'Default'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = []
- FormatType = ftBackGround
- end
- item
- DisplayName = 'Marked block'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clHighlightText
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = []
- BgColor = clHighlight
- FormatType = ftColor
- end
- item
- DisplayName = 'Symbol'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clMaroon
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = [fsBold]
- end
- item
- DisplayName = 'Number'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clNavy
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = [fsBold]
- end
- item
- DisplayName = 'String'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clBlue
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = []
- FormatType = ftColor
- end
- item
- DisplayName = 'Identifier'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = []
- FormatType = ftColor
- end
- item
- DisplayName = 'Reserved word'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = [fsBold]
- end
- item
- DisplayName = 'Comment'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clRed
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = [fsBold]
- FormatType = ftColor
- end
- item
- DisplayName = 'Preprocessor'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clGreen
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = [fsItalic]
- FormatType = ftColor
- end
- item
- DisplayName = 'Current block'
- Font.Charset = RUSSIAN_CHARSET
- Font.Color = clMaroon
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = [fsBold]
- BgColor = 13369046
- FormatType = ftColor
- BorderTypeLeft = blSolid
- BorderColorLeft = clGray
- BorderTypeTop = blSolid
- BorderColorTop = clGray
- BorderTypeRight = blSolid
- BorderColorRight = clGray
- BorderTypeBottom = blSolid
- BorderColorBottom = clGray
- end>
- TokenRules = <
- item
- DisplayName = 'String'
- StyleName = 'String'
- TokenType = 4
- Expression = '"(\\"|.)*?("|$)'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Any name'
- StyleName = 'Identifier'
- TokenType = 2
- Expression = '[a-z_]\w*'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'HEX'
- StyleName = 'Number'
- TokenType = 7
- Expression = '0x[\da-f]*'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Float'
- StyleName = 'Number'
- TokenType = 6
- Expression =
- '#with exp. dot is optional '#13#10'\d+ \.? \d+ e [\+\-]? \d+ |'#13#10'#witho' +
- 'ut exp. dot is required'#13#10'\d+ \. \d+'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Integer'
- StyleName = 'Number'
- TokenType = 5
- Expression = '\d+'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Define'
- StyleName = 'Preprocessor'
- TokenType = 9
- Expression = '(?-i)'#13#10'\#define(.*\\\s*\n)*'#13#10'.* # last line'#13#10#13#10
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Preprocessor'
- StyleName = 'Preprocessor'
- TokenType = 9
- Expression = '\#.*'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Comment 1'
- StyleName = 'Comment'
- TokenType = 1
- Expression = '(?s)/\*.*?(\*/|\Z)'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Comment 2'
- StyleName = 'Comment'
- TokenType = 1
- Expression = '//.*'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Symbol'
- StyleName = 'Symbol'
- TokenType = 3
- Expression = '[/\+\-\*:=<>&/\|\^~\.]+'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Single symbol'
- StyleName = 'Symbol'
- TokenType = 3
- Expression = '[\{\}\(\)\[\],;]'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Char'
- StyleName = 'String'
- TokenType = 8
- Expression = #39'.*?('#39'|$)'
- ColumnFrom = 0
- ColumnTo = 0
- end>
- BlockRules = <
- item
- DisplayName = 'Key words'
- StyleName = 'Reserved word'
- BlockType = btTagDetect
- ConditionList = <
- item
- TagList.Strings = (
- '__asm'
- '__automated'
- '__cdecl'
- '__classid'
- '__closure'
- '__declspec'
- '__dispid'
- '__except'
- '__export'
- '__fastcall'
- '__finally'
- '__import'
- '__inline'
- '__int64'
- '__msfastcall'
- '__msreturn'
- '__pascal'
- '__property'
- '__published'
- '__stdcall'
- '__try'
- '__uuidof'
- '_asm'
- '_cdecl'
- '_export'
- '_fastcall'
- '_import'
- '_pascal'
- '_stdcall'
- 'asm'
- 'auto'
- 'bool'
- 'break'
- 'case'
- 'catch'
- 'cdecl'
- 'char'
- 'class'
- 'const'
- 'continue'
- 'default'
- 'delete'
- 'do'
- 'double'
- 'else'
- 'enum'
- 'explicit'
- 'export'
- 'extern'
- 'false'
- 'float'
- 'for'
- 'friend'
- 'goto'
- 'if'
- 'import'
- 'inline'
- 'int'
- 'long'
- 'mutable'
- 'new'
- 'operator'
- 'pascal'
- 'private'
- 'protected'
- 'public'
- 'register'
- 'return'
- 'short'
- 'signed'
- 'sizeof'
- 'static'
- 'struct'
- 'switch'
- 'this'
- 'throw'
- 'true'
- 'try'
- 'typedef'
- 'typeid'
- 'typename'
- 'union'
- 'unsigned'
- 'uuid'
- 'virtual'
- 'void'
- 'volatile'
- 'wchar_t'
- 'while')
- TokenTypes = 4
- end>
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = '#if'
- ConditionList = <
- item
- TagList.Strings = (
- '#if')
- CondType = tcMask
- TokenTypes = 512
- end>
- BlockEnd = '#endif'
- DisplayInTree = False
- HighlightPos = cpAny
- CollapseFmt = '%s0'
- IgnoreAsParent = False
- end
- item
- DisplayName = '#endif'
- BlockType = btRangeEnd
- ConditionList = <
- item
- TagList.Strings = (
- '#endif')
- TokenTypes = 512
- end>
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'End'
- BlockType = btRangeEnd
- ConditionList = <
- item
- TagList.Strings = (
- '}')
- TokenTypes = 8
- end>
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'function'
- StrictParent = True
- ConditionList = <
- item
- TagList.Strings = (
- '{')
- TokenTypes = 8
- end
- item
- TagList.Strings = (
- ')')
- TokenTypes = 8
- end
- item
- CondType = tcSkip
- end
- item
- TagList.Strings = (
- '(')
- TokenTypes = 8
- end
- item
- TokenTypes = 4
- end
- item
- TagList.Strings = (
- '::')
- CondType = tcNotEqual
- TokenTypes = 8
- end>
- BlockEnd = 'function end'
- NameFmt = '%s0 %s-1'
- RefToCondEnd = True
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'function end'
- BlockName = 'function'
- StrictParent = True
- BlockType = btRangeEnd
- ConditionList = <
- item
- TagList.Strings = (
- '}')
- TokenTypes = 8
- end>
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'cls func'
- StrictParent = True
- ConditionList = <
- item
- TagList.Strings = (
- '{')
- TokenTypes = 8
- end
- item
- TagList.Strings = (
- ')')
- TokenTypes = 8
- end
- item
- CondType = tcSkip
- end
- item
- TagList.Strings = (
- '(')
- TokenTypes = 8
- end
- item
- TokenTypes = 4
- end
- item
- TagList.Strings = (
- '::')
- TokenTypes = 8
- end>
- BlockOffset = -1
- BlockEnd = 'cls func end'
- NameFmt = '%s-1'
- GroupFmt = '%s1'
- RefToCondEnd = True
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'cls func end'
- BlockName = 'cls func'
- StrictParent = True
- BlockType = btRangeEnd
- ConditionList = <
- item
- TagList.Strings = (
- '}')
- TokenTypes = 8
- end>
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'Begin'
- StyleName = 'Current block'
- ConditionList = <
- item
- TagList.Strings = (
- '{')
- TokenTypes = 8
- end>
- BlockEnd = 'End'
- DisplayInTree = False
- DynHighlight = dhBound
- HighlightPos = cpRange
- DrawStaple = True
- CollapseFmt = '{ ... }'
- IgnoreAsParent = False
- end
- item
- DisplayName = '('
- StyleName = 'Current block'
- ConditionList = <
- item
- TagList.Strings = (
- '(')
- TokenTypes = 8
- end>
- BlockEnd = ')'
- NotCollapsed = True
- DisplayInTree = False
- DynHighlight = dhBound
- HighlightPos = cpBoundTagBegin
- DynSelectMin = True
- IgnoreAsParent = False
- end
- item
- DisplayName = ')'
- BlockType = btRangeEnd
- ConditionList = <
- item
- TagList.Strings = (
- ')')
- TokenTypes = 8
- end>
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = '['
- StyleName = 'Current block'
- ConditionList = <
- item
- TagList.Strings = (
- '[')
- TokenTypes = 8
- end>
- BlockEnd = ']'
- NotCollapsed = True
- DisplayInTree = False
- DynHighlight = dhBound
- HighlightPos = cpBoundTagBegin
- DynSelectMin = True
- IgnoreAsParent = False
- end
- item
- DisplayName = ']'
- BlockType = btRangeEnd
- ConditionList = <
- item
- TagList.Strings = (
- ']')
- TokenTypes = 8
- end>
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'Block comment'
- BlockName = 'Block comment'
- NotParent = True
- ConditionList = <
- item
- TokenTypes = 2
- end>
- BlockEnd = 'Block comment end'
- DisplayInTree = False
- HighlightPos = cpAny
- CollapseFmt = '{ ... }'
- IgnoreAsParent = False
- end
- item
- DisplayName = 'Block comment end'
- BlockType = btRangeEnd
- ConditionList = <
- item
- CondType = tcNotEqual
- TokenTypes = 2
- end
- item
- TokenTypes = 2
- end>
- BlockOffset = 1
- HighlightPos = cpAny
- IgnoreAsParent = False
- end>
- CodeTemplates = <>
- SubAnalyzers = <>
- SampleText.Strings = (
- '/*Syntax highlighting*/'
- ''
- '#define MAX(a, b) \'
- ' ((a > b) ? a : b) '
- ' '
- 'void __fastcall TForm1->Button1Click(Sender: TObject);'
- '{'
- ' int Number = 123; // View integer number style'
- ' double FloatNumber = 0.123e+2; // View float number style'
-
- ' Caprion = "This Number is " + IntToStr(Number); // View string ' +
- 'style'
- ' Number += 0x1FA7; // View HEX style'
- ' char c = '#39'D'#39';'
- '}')
- TokenTypeNames.Strings = (
- 'Unknown'
- 'Comment'
- 'Identifier'
- 'Symbol'
- 'String'
- 'Integer const'
- 'Float const'
- 'Hex const'
- 'Char const'
- 'Preprocessor')
- Gramma.Gramma =
- 'Skip = <Comment>;'#13#10#13#10'NameDetector = <Identifier> Braket?;'#13#10#13#10'Fun' +
- 'cCall = <Identifier> Braket;'#13#10#13#10'Braket = Braket1 | Braket2;'#13#10#13#10'B' +
- 'raket1 = LeftBraket1 '#39')'#39';'#13#10#13#10'LeftBraket1 = LeftBraket1 <Unknown>' +
- ' |'#13#10' '#39'('#39';'#13#10' '#13#10'Braket2 = LeftBraket2 '#39']'#39';' +
- #13#10#13#10'LeftBraket2 = LeftBraket2 <Unknown> |'#13#10' '#39'['#39';'#13#10
- MarkedBlockStyle = 'Marked block'
- DefaultStyleName = 'Default'
- Extentions = 'c cpp'
- LexerName = 'C++ Script'
- Internal = True
- end
-