Updated Spanish translation
[anjuta-git-plugin.git] / data / properties / cpp.properties
blob012b67191dc36cbbe350a78bb1bf67208ca53802
1 # Define SciTE settings for C++, C, Java, IDL, JavaScript, Flash (ActionScript 2) files.
3 # sma files are Small script (C-like)
4 file.patterns.cpp=*.c;*.cc;*.cpp;*.cxx;*.c++;*.cs;*.h;*.hh;*.hpp;*.hxx;*.sma
5 # pln, inc and t are SilkTest (4Test) files.
6 file.patterns.test=*.pln;*.inc;*.t
7 file.patterns.cs=*.cs
8 file.patterns.rc=*.rc;*.rc2;*.dlg
9 file.patterns.idl=*.idl;*.odl
10 file.patterns.flash=*.as;*.asc;*.jsfl
11 file.patterns.c.like=$(file.patterns.cpp);$(file.patterns.cs);$(file.patterns.idl);*.java;$(file.patterns.flash)
13 filter.cpp=C/C++ (c cc cpp cxx cs h hh hxx hpp dlg rc rc2 mak)|\
14 $(file.patterns.cpp);$(file.patterns.rc);*.mak;make*|
15 filter.java=Java (java)|*.java|
16 filter.js=JavaScript (js)|*.js|
17 filter.idl=IDL (idl odl)|$(file.patterns.idl)|
18 filter.test=SilkTest (pln inc t)|$(file.patterns.test)|
19 filter.flash=Flash (as asc jsfl)|$(file.patterns.flash)|
21 file.patterns.braces=$(file.patterns.cpp);$(file.patterns.idl);*.java;$(file.patterns.cs);$(file.patterns.test)
23 lexer.*.java=cpp
24 lexer.$(file.patterns.cpp)=cpp
25 lexer.$(file.patterns.rc)=cpp
26 lexer.$(file.patterns.idl)=cpp
27 lexer.$(file.patterns.cs)=cpp
28 lexer.*.js=cpp
29 lexer.$(file.patterns.test)=cpp
30 lexer.$(file.patterns.flash)=cpp
32 keywordclass.cpp=and and_eq asm auto bitand bitor bool break \
33 case catch char class compl const const_cast continue \
34 default delete do double dynamic_cast else enum explicit export extern false float for \
35 friend goto if inline int long mutable namespace new not not_eq \
36 operator or or_eq private protected public \
37 register reinterpret_cast return short signed sizeof static static_cast struct switch \
38 template this throw true try typedef typeid typename union unsigned using \
39 virtual void volatile wchar_t while xor xor_eq
40 keywords.$(file.patterns.cpp)=$(keywordclass.cpp)
41 # keywords2 is for highlighting user defined keywords or function calls or similar
42 #keywords2.$(file.patterns.cpp)=file
43 # keywords3 is for doc comment keywords, highlighted in style 17
44 #CPP doxygen
45 keywords3.$(file.patterns.cpp)=a addindex addtogroup anchor arg attention \
46 author b brief bug c class code date def defgroup deprecated dontinclude \
47 e em endcode endhtmlonly endif endlatexonly endlink endverbatim enum example exception \
48 f$ f[ f] file fn hideinitializer htmlinclude htmlonly \
49 if image include ingroup internal invariant interface latexonly li line link \
50 mainpage name namespace nosubgrouping note overload \
51 p page par param post pre ref relates remarks return retval \
52 sa section see showinitializer since skip skipline struct subsection \
53 test throw todo typedef union until \
54 var verbatim verbinclude version warning weakgroup $ @ \ & < > # { }
56 word.chars.cxx=$(chars.alpha)$(chars.numeric)_#
57 word.characters.$(file.patterns.cpp)=$(word.chars.cxx)
58 comment.block.cpp=//~
59 #comment.block.at.line.start.cpp=1
60 comment.stream.start.cpp=/*
61 comment.stream.end.cpp=*/
62 comment.box.start.cpp=/*
63 comment.box.middle.cpp= *
64 comment.box.end.cpp= */
65 fold.comment=1
66 fold.preprocessor=1
67 #fold.at.else=1
69 statement.indent.$(file.patterns.c.like)=5 case catch class default do else finally \
70 for if private protected public struct try union while
71 statement.end.$(file.patterns.c.like)=10 ;
72 statement.lookback.$(file.patterns.c.like)=20
73 block.start.$(file.patterns.c.like)=10 {
74 block.end.$(file.patterns.c.like)=10 }
76 #autocomplete.cpp.fillups=(
78 #styling.within.preprocessor=1
79 preprocessor.symbol.$(file.patterns.cpp)=#
80 preprocessor.start.$(file.patterns.cpp)=if ifdef ifndef
81 preprocessor.middle.$(file.patterns.cpp)=else elif
82 preprocessor.end.$(file.patterns.cpp)=endif
84 keywordclass.cs=abstract as base bool break byte case catch char checked class \
85 const continue decimal default delegate do double else enum \
86 event explicit extern false finally fixed float for foreach goto if \
87 implicit in int interface internal is lock long namespace new null \
88 object operator out override params private protected public \
89 readonly ref return sbyte sealed short sizeof stackalloc static \
90 string struct switch this throw true try typeof uint ulong \
91 unchecked unsafe ushort using virtual void while
92 keywords.$(file.patterns.cs)=$(keywordclass.cs)
93 word.characters.$(file.patterns.cs)=$(word.chars.cxx)
95 keywordclass.rc=\
96 ACCELERATORS ALT AUTO3STATE AUTOCHECKBOX AUTORADIOBUTTON \
97 BEGIN BITMAP BLOCK BUTTON CAPTION CHARACTERISTICS CHECKBOX CLASS \
98 COMBOBOX CONTROL CTEXT CURSOR DEFPUSHBUTTON DIALOG DIALOGEX DISCARDABLE \
99 EDITTEXT END EXSTYLE FONT GROUPBOX ICON LANGUAGE LISTBOX LTEXT \
100 MENU MENUEX MENUITEM MESSAGETABLE POPUP \
101 PUSHBUTTON RADIOBUTTON RCDATA RTEXT SCROLLBAR SEPARATOR SHIFT STATE3 \
102 STRINGTABLE STYLE TEXTINCLUDE VALUE VERSION VERSIONINFO VIRTKEY
103 keywords.$(file.patterns.rc)=$(keywordclass.rc)
105 keywordclass.idl=\
106 aggregatable allocate appobject arrays async async_uuid \
107 auto_handle \
108 bindable boolean broadcast byte byte_count \
109 call_as callback char coclass code comm_status \
110 const context_handle context_handle_noserialize \
111 context_handle_serialize control cpp_quote custom \
112 decode default defaultbind defaultcollelem \
113 defaultvalue defaultvtable dispinterface displaybind dllname \
114 double dual \
115 enable_allocate encode endpoint entry enum error_status_t \
116 explicit_handle \
117 fault_status first_is float \
118 handle_t heap helpcontext helpfile helpstring \
119 helpstringcontext helpstringdll hidden hyper \
120 id idempotent ignore iid_as iid_is immediatebind implicit_handle \
121 import importlib in include in_line int __int64 __int3264 interface \
122 last_is lcid length_is library licensed local long \
123 max_is maybe message methods midl_pragma \
124 midl_user_allocate midl_user_free min_is module ms_union \
125 ncacn_at_dsp ncacn_dnet_nsp ncacn_http ncacn_ip_tcp \
126 ncacn_nb_ipx ncacn_nb_nb ncacn_nb_tcp ncacn_np \
127 ncacn_spx ncacn_vns_spp ncadg_ip_udp ncadg_ipx ncadg_mq \
128 ncalrpc nocode nonbrowsable noncreatable nonextensible notify \
129 object odl oleautomation optimize optional out out_of_line \
130 pipe pointer_default pragma properties propget propput propputref \
131 ptr public \
132 range readonly ref represent_as requestedit restricted retval \
133 shape short signed size_is small source strict_context_handle \
134 string struct switch switch_is switch_type \
135 transmit_as typedef \
136 uidefault union unique unsigned user_marshal usesgetlasterror uuid \
137 v1_enum vararg version void wchar_t wire_marshal
139 keywordclass.msidl=handle
140 keywordclass.xpidl=attribute native noscript scriptable shared wstring inout
141 keywords.$(file.patterns.idl)=$(keywordclass.idl) $(keywordclass.xpidl)
143 keywordclass.java=abstract assert boolean break byte case catch char class \
144 const continue default do double else extends final finally float for future \
145 generic goto if implements import inner instanceof int interface long \
146 native new null outer package private protected public rest \
147 return short static super switch synchronized this throw throws \
148 transient try var void volatile while
149 keywords.*.java=$(keywordclass.java)
151 keywordclass.javascript=abstract boolean break byte case catch char class \
152 const continue debugger default delete do double else enum export extends \
153 final finally float for function goto if implements import in instanceof \
154 int interface long native new package private protected public \
155 return short static super switch synchronized this throw throws \
156 transient try typeof var void volatile while with
157 keywords.*.js=$(keywordclass.javascript)
159 keywordclass.flash=add and break case catch class continue default delete do \
160 dynamic else eq extends false finally for function ge get gt if implements import in \
161 instanceof interface intrinsic le lt ne new not null or private public return \
162 set static super switch this throw true try typeof undefined var void while with
164 keywordclass2.flash=Array Arguments Accessibility Boolean Button Camera Color \
165 ContextMenu ContextMenuItem Date Error Function Key LoadVars LocalConnection Math \
166 Microphone Mouse MovieClip MovieClipLoader NetConnection NetStream Number Object \
167 PrintJob Selection SharedObject Sound Stage String StyleSheet System TextField \
168 TextFormat TextSnapshot Video Void XML XMLNode XMLSocket \
169 _accProps _focusrect _global _highquality _parent _quality _root _soundbuftime \
170 arguments asfunction call capabilities chr clearInterval duplicateMovieClip \
171 escape eval fscommand getProperty getTimer getURL getVersion gotoAndPlay gotoAndStop \
172 ifFrameLoaded Infinity -Infinity int isFinite isNaN length loadMovie loadMovieNum \
173 loadVariables loadVariablesNum maxscroll mbchr mblength mbord mbsubstring MMExecute \
174 NaN newline nextFrame nextScene on onClipEvent onUpdate ord parseFloat parseInt play \
175 prevFrame prevScene print printAsBitmap printAsBitmapNum printNum random removeMovieClip \
176 scroll set setInterval setProperty startDrag stop stopAllSounds stopDrag substring \
177 targetPath tellTarget toggleHighQuality trace unescape unloadMovie unLoadMovieNum updateAfterEvent
179 keywords.$(file.patterns.flash)=$(keywordclass.flash)
180 keywords2.$(file.patterns.flash)=$(keywordclass2.flash)
182 # C++ styles
184 # Default
185 style.cpp.32=$(font.base)
186 # White space
187 style.cpp.0=fore:#808080
188 # Comment
189 style.cpp.1=$(colour.code.comment.box),$(font.code.comment.box)
190 # Line Comment
191 style.cpp.2=$(colour.code.comment.line),$(font.code.comment.line)
192 # Doc comment
193 style.cpp.3=$(colour.code.comment.doc),$(font.code.comment.doc)
194 # Number
195 style.cpp.4=$(colour.number)
196 # Keyword
197 style.cpp.5=$(colour.keyword),bold
198 # Double quoted string
199 style.cpp.6=$(colour.string)
200 # Single quoted string
201 style.cpp.7=$(colour.char)
202 # UUIDs (only in IDL)
203 style.cpp.8=fore:#804080
204 # Preprocessor
205 style.cpp.9=$(colour.preproc)
206 # Operators
207 style.cpp.10=$(colour.operator),bold
208 # Identifiers
209 style.cpp.11=
210 # End of line where string is not closed
211 style.cpp.12=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
212 # Verbatim strings for C#
213 style.cpp.13=fore:#007F00,$(font.monospace),back:#E0FFE0,eolfilled
214 # Regular expressions for JavaScript
215 style.cpp.14=fore:#3F7F3F,$(font.monospace),back:#E0F0FF,eolfilled
216 # Doc Comment Line
217 style.cpp.15=$(colour.code.comment.doc),$(font.code.comment.doc)
218 # Keywords2
219 style.cpp.16=fore:#B00040
220 # Comment keyword
221 style.cpp.17=fore:#3060A0,$(font.code.comment.doc)
222 # Comment keyword error
223 style.cpp.18=fore:#804020,$(font.code.comment.doc)
224 # Braces are only matched in operator style
225 braces.cpp.style=10
227 cc=g++ -pedantic -Os -fno-exceptions -c $(FileNameExt) -o $(FileName).o
229 make.command=make
230 command.compile.*.c=$(cc)
231 command.build.*.c=$(make.command)
232 command.go.*.c=$(FileName)
233 # To make the Go command both compile (if needed) and execute, use this setting:
234 #command.go.needs.*.c=g++ $(FileNameExt) -o $(FileName)
236 command.compile.*.cc=$(cc)
237 command.build.*.cc=$(make.command)
238 command.go.*.cc=$(FileName)
240 command.compile.*.cpp=$(cc)
241 command.build.*.cpp=$(make.command)
242 command.go.*.cpp=$(FileName)
244 command.compile.*.cxx=$(cc)
245 command.build.*.cxx=$(make.command)
246 command.go.*.cxx=$(FileName)
248 command.build.*.h=$(make.command)
250 command.name.0.*.cxx=Indent
251 command.0.*.cxx=astyle -tapO $(FileNameExt)
252 command.is.filter.0.*.cxx=1
254 command.name.1.*.cxx=Lint
255 command.1.*.cxx=g++ -W -Wall -Wshadow -Wwrite-strings -Wold-style-cast \
256         -Woverloaded-virtual  -pedantic -Os -fno-exceptions -c $(FileNameExt)
258 command.name.2.*.cxx=Execute Selection
259 command.2.*.cxx=$(CurrentSelection)
261 if PLAT_WIN
262         command.compile.*.rc=windres $(FileNameExt) $(FileName).o
263         command.build.*.rc=$(make.command)
264         command.help.$(file.patterns.cpp)=$(CurrentWord)!G:\Program Files\Microsoft Visual Studio\MSDN98\98VSa\1033\MSDNVS6A.COL
265         command.help.subsystem.$(file.patterns.cpp)=4
266         command.go.*.js=cscript /nologo $(FileNameExt)
267 # When maintaining old Win16 programs...
268 #       command.help.$(file.patterns.cpp)=$(CurrentWord)!I:\msvc\help\win31wh.hlp
269 #       command.help.subsystem.$(file.patterns.cpp)=5
271 if PLAT_GTK
272         command.help.$(file.patterns.cpp)=man $(CurrentWord) | col -b
274 if PLAT_WIN
275         command.build.*.cs=csc /t:winexe $(FileNameExt) /r:system.dll,system.drawing.dll
276         command.go.*.cs=$(FileName)
277         command.go.subsystem.*.cs=1
278 if PLAT_GTK
279         command.build.*.cs=mcs /t:winexe $(FileNameExt) /r:System,System.Drawing                                                                                
280         command.go.*.cs=mono $(FileName).exe
281         command.go.subsystem.*.cs=1
283 command.compile.*.java=javac $(FileNameExt)
284 command.build.*.java=javac *.java
285 command.go.*.java=java $(FileName)