root/downloads/MiniD2.chl

Revision 420, 5.8 kB (checked in by JarrettBillingsley, 4 weeks ago)

We have class-based OO, once again.

Line 
1 //////////////////////////////////////////////////////////////////////////////
2 // language name
3
4 Language:               MiniD2
5
6
7 //////////////////////////////////////////////////////////////////////////////
8 // default file filter
9 // note: if more than one extension is associated, eg:
10 // C/C++ files (*.c,*.cpp,*.h,*.hpp)|*.c;*.cpp;*.h;*.hpp
11
12 Filter:                 MiniD2 source files (*.md)|*.md
13
14
15 //////////////////////////////////////////////////////////////////////////////
16 // help file which will be invokend when F1 is pressed
17
18 HelpFile:
19
20
21 //////////////////////////////////////////////////////////////////////////////
22 // language case sensitivity
23 //                      0  - no
24 //                      1  - yes
25
26 CaseSensitive:          1
27
28
29 //////////////////////////////////////////////////////////////////////////////
30 // comment type: LineComment - comment to the end of line
31 // BlockCommentBeg - block comment begin, it could be
32 // multiline
33 // BlockCommentEnd - block comment end
34
35 LineComment:        //
36 BlockCommentBeg:    /*
37 BlockCommentEnd:    */
38
39
40 //////////////////////////////////////////////////////////////////////////////
41 // identifier characters
42 // note: characters shouldn't be delimited, except arrays
43 // array of chars could be defined as from_char..to_char
44
45 IdentifierBegChars:     a..z A..Z _
46 IdentifierChars:        a..z A..Z _ 0..9
47
48 //////////////////////////////////////////////////////////////////////////////
49 // numeric constants begin characters
50 // note: characters shouldn't be delimited, except arrays
51 // array of chars could be defined as from_char..to_char
52 // number always starts with 0..9 except when NumConstBeg
53 // defines other
54
55 NumConstBegChars:       0..9
56
57
58 //////////////////////////////////////////////////////////////////////////////
59 // numeric constants characters
60 // note: characters shouldn't be delimited, except arrays
61 // array of chars could be defined as from_char..to_char
62 // number always starts with 0..9 except when NumConstBeg
63 // defines other
64
65 NumConstChars:          0..9 _ abcdefxABCDEFX
66
67
68 //////////////////////////////////////////////////////////////////////////////
69 // escape character
70
71 EscapeChar: \
72
73
74 //////////////////////////////////////////////////////////////////////////////
75 // keyword table
76 // note: delimited with spaces, lines could be wrapped
77 // you may divide keywords into two groups which can be
78 // highlighted differently
79
80 KeyWords1:
81     as
82     assert
83     break
84     case
85     catch
86     class
87     continue
88     coroutine
89     default
90     do
91     else
92     false
93     finally
94     for
95     foreach
96     function
97     global
98     if
99     import
100     in
101     is
102     local
103     module
104     namespace
105     null
106     return
107     super
108     switch
109     this
110     throw
111     true
112     try
113     vararg
114     while
115     with
116     yield
117
118
119
120 //////////////////////////////////////////////////////////////////////////////
121 // string delimiter: StringBegChar - string begin char
122 // StringEndChar - string end char
123 // MultilineStrings - enables multiline strings, as perl
124 // has it
125
126 StringBegChar:          "`'
127 StringEndChar:          "`'
128 MultilineStrings:       1
129
130
131 //////////////////////////////////////////////////////////////////////////////
132 // use preprocessor: 0 - no
133 // 1 - yes
134 // note: if yes, '#' and statements after it will be
135 // highlighted with Preprocessor defined colors
136
137 UsePreprocessor:        0
138
139
140 //////////////////////////////////////////////////////////////////////////////
141 // highlight line: 0 - no
142 // 1 - yes
143 // note: if yes, current line will be highlighted
144
145 CurrLineHighlighted:    1
146
147
148 //////////////////////////////////////////////////////////////////////////////
149 // colors
150 // note:                first value is foreground, second is background color
151 //                        and third (optional) represents font attribute:
152 //                        B - bold
153 //                        I - italic
154 //                        U - underline
155 //                        S - strike out
156 //                        attributes can be combined: eg. B or BI
157 //                      as value, it could be used any standard windows color:
158 //                        clBlack, clMaroon, clGreen, clOlive, clNavy,
159 //                        clPurple, clTeal, clGray, clSilver, clRed, clLime,
160 //                        clYellow, clBlue, clFuchsia, clAqua, clLtGray,
161 //                        clDkGray, clWhite, clScrollBar, clBackground,
162 //                        clActiveCaption, clInactiveCaption, clMenu, clWindow,
163 //                        clWindowFrame, clMenuText, clWindowText, clCaptionText,
164 //                        clActiveBorder, clInactiveBorder, clAppWorkSpace,
165 //                        clHighlight, clHighlightText, clBtnFace, clBtnShadow,
166 //                        clGrayText, clBtnText, clInactiveCaptionText,
167 //                        clBtnHighlight, cl3DDkShadow, cl3DLight, clInfoText,
168 //                        clInfoBk
169 //                      as value, it could be used hex numeric constant too:
170 //                        $BBGGRR - BB: blue, GG: green, RR: red, eg: $FF6A00
171
172 SpaceCol:               clWhite clBlack
173 KeyWords1Col:       $ff0000 $000000
174 KeyWords2Col:       $ff0000 $000000
175 IdentifierCol:          clWhite clBlack
176 CommentCol:             clGreen clBlack
177 NumberCol:              $0040FF40 clBlack
178 StringCol:              $000080FF clBlack
179 SymbolCol:              clWhite clBlack
180 PreprocessorCol:        clRed clBlack
181 SelectionCol:           clWhite clNavy
182 CurrentLineCol:         clWhite $00202020
183 OverrideTxtFgColor:     0
184 BlockAutoindent:        1
185 BlockBegStr:            {
186 BlockEndStr:            }
187 Keyword1Col:            clRed clBlack
188 Keyword2Col:            $00FF40FF clBlack
189 Keyword3Col:            clYellow clBlack
190 MatchedBracesCol:       $00FF8080 clBlack
191 Keyword4Col:            clWindowText clWindow
192 Keyword5Col:            clWindowText clWindow
Note: See TracBrowser for help on using the browser.