Advertisement
ZoriaRPG

SciTE cpp.properties for ZScript

Nov 25th, 2016
700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 24.77 KB | None | 0 0
  1. # Define SciTE settings for C++, C, C#, Ch, Java, IDL, JavaScript, Flash (ActionScript 2) files.
  2.  
  3. # sma files are Small script (C-like)
  4. file.patterns.cpp=*.c;*.cc;*.cpp;*.cxx;*.h;*.hh;*.hpp;*.hxx;*.ipp;*.m;*.mm;*.sma;*.z;*.zh;*zlib;*.lib;*.zs;*.zsc;*.zc
  5. file.patterns.cplusplus=*.cc;*.cpp;*.cxx
  6. # jad = decompiled class files; pde = Processing.org sketch files
  7. file.patterns.java=*.java;*.jad;*.pde
  8. # pln, inc and t are SilkTest (4Test) files.
  9. file.patterns.test=*.pln;*.inc;*.t
  10. # es = JS dialect of Abobe for SVG
  11. file.patterns.js=*.js;*.es;*.json
  12. file.patterns.cs=*.cs
  13. file.patterns.rc=*.rc;*.rc2;*.dlg
  14. file.patterns.idl=*.idl;*.odl
  15. file.patterns.flash=*.as;*.asc;*.jsfl
  16. file.patterns.ch=*.ch;*.chf;*.chs
  17. file.patterns.vala=*.vala
  18. file.patterns.go=*.go
  19. file.patterns.pike=*.pike
  20. file.patterns.swift=*.swift
  21. file.patterns.c.like=$(file.patterns.cpp);$(file.patterns.cs);$(file.patterns.idl);$(file.patterns.java);$(file.patterns.js);$(file.patterns.flash);$(file.patterns.ch);$(file.patterns.vala);$(file.patterns.pike)
  22.  
  23. shbang.tcc=cpp
  24. shbang.tinycc=cpp
  25.  
  26. filter.cpp=C/C++ (c cc cpp cxx cs vala h hh hxx hpp ipp dlg rc rc2 mak)|\
  27. $(file.patterns.cpp);$(file.patterns.cs);$(file.patterns.rc);$(file.patterns.vala);*.mak;make*|
  28. filter.java=Java (java)|*.java|
  29. filter.js=JavaScript (js es)|$(file.patterns.js)|
  30. filter.idl=IDL (idl odl)|$(file.patterns.idl)|
  31. filter.test=SilkTest (pln inc t)|$(file.patterns.test)|
  32. filter.flash=Flash (as asc jsfl)|$(file.patterns.flash)|
  33. filter.ch=Ch (ch chf chs)|$(file.patterns.ch)|
  34. filter.go=Go (go)|$(file.patterns.go)|
  35. filter.pike=Pike (pike)|$(file.patterns.pike)|
  36. filter.swift=Swift (swift)|$(file.patterns.swift)|
  37.  
  38. lexer.$(file.patterns.java)=cpp
  39. lexer.$(file.patterns.cpp)=cpp
  40. lexer.$(file.patterns.rc)=cpp
  41. lexer.$(file.patterns.idl)=cpp
  42. lexer.$(file.patterns.cs)=cpp
  43. lexer.$(file.patterns.js)=cpp
  44. lexer.$(file.patterns.test)=cpp
  45. lexer.$(file.patterns.flash)=cpp
  46. lexer.$(file.patterns.ch)=cpp
  47. lexer.$(file.patterns.vala)=cpp
  48. lexer.$(file.patterns.go)=cpp
  49. lexer.$(file.patterns.pike)=cpp
  50. lexer.$(file.patterns.swift)=cpp
  51.  
  52. keywordclass.cpp=and and_eq asm auto bitand bitor bool break StandAlone GuyCount ContinueDMap ContinueScreen LastEntranceDMap LastEntranceScreen Generic \
  53. case catch char class compl const const_cast constexpr continue GetScreenFlags GetScreenEFlags GetScreenState SetScreenState \
  54. default delete do double dynamic_cast else enum explicit export extern false float for PlayMIDI GetMIDI UnderCSet State Door PlayEnhancedMusic \
  55. friend goto if inline int long mutable namespace new not not_eq GetDMapIntro DMapOffset DMapMap NumDeaths Cheat Time TimeValid HasPlayed HitZHeight \
  56. operator or or_eq private protected public DMapFlags DMapLevel DMapCompass LItems DMapContinue DMapMIDI GetDMapName GetDMapTitle Flip Extend \
  57. register reinterpret_cast return short signed sizeof static static_cast struct switch GetDMapMusicFilename GetDMapMusicTrack SetDMapEnhancedMusic GetComboData \
  58. template this throw true try typedef typeid typename union unsigned using MovingBlockX MovingBlockY MovingBlockCombo MovingBlockCSet UnderCombo ClearTile TraceToBase GetCurLevel GetCurMap \
  59. virtual void volatile wchar_t while xor xor_eq Rate OriginalCSet FlashCSet NumFrames Haltrate Hunger Step ASpeed Homing DrawString DrawInteger DrawScreen DrawLayer Wavy Quake Message ClearSprites ComboTile GetSaveName \
  60. Game Link npc ffc Screen item script Invisible CollDetection Flags Flash EFlags ComboD ComboT ComboS ComboI ComboF ComboC global itemdata lweapon eweapon Damage ClearTile ClearTrace SwapTile CopyTile OverlayTile \
  61. Waitframe Waitdraw Waitframes Rectangle Weapon Level UseSound DrawStyle Stun ItemSet BossPal SFX Defense Attributes MiscFlags BreakShield Behind Circle Arc Ellipse Spline Line PutPixel ID Lit SizeOfArray Type Family LoadFFC LoadEWeapon RoomType RoomData TriggerSecrets LoadLWeapon LoadNPC LoadItem LoadItemData SetSaveName \
  62. Quit Save End ShowSaveScreen DrawBitmap DrawTile FastTile DrawCombo FastCombo ClickToFreezeEnabled GetMessage ShowSaveQuitScreen X Y Z HP MP HeldItem GetLayerComboS GetLayerComboD GetLayerComboC GetLayerComboT GetLayerComboI GetLayerComboF \
  63. Warp PitWarp isSolid isValid UseSprite DrawCharacter LKeys PlaySound NumLWeapons NumEWeapons NumItems NumNPCs D Misc SetComboData GetComboCSet SetComboCSet Equipment Tile OriginalTile \
  64. Trace TraceB TraceS TraceToBase TraceNL Frame Delay Pickup Power Amount MaxIncrement Keep Angle Angular DeadState SetRenderTarget Jump Dir HitDir Quad Triangle Quad3D Triangle3D Action MaxHP MacMP Counter MCounter DCounter GetComboFlag SetComboFlag \
  65. GetCurScreen GetCurDMapScreen GetCurLevel Data CSet Delay Vx Vy Ax Ay InitD GetCurMap GetCurDMap GetDMapScreenD SetDMapScreenD GetScreenD SetScreenD GetComboType SetComboType \
  66. GetFFCScript CollDetection UseSprite HitWidth HitHeight HitXOffset HitYOffset DrawXOffset DrawYOffset WeaponDamage GetComboInherentFlag SetComboInherentFlag \
  67. TileWidth TileHeight EffectWidth EffectHeight SwordJinx GetName ItemJinx Drunk LadderX LadderY LayerScreen LayerMap CreateItem CreateNPC CreateLWeapon CreateEWeapon GetComboSolid SetComboSolid \
  68. SetSideWarp SetTileWarp GetSideWarpDMap GetSideWarpScreen GetSideWarpType GetTileWarpDMap GetTileWarpScreen GetTileWarpType DrawZOffset \
  69. Abs ArcTan ArcSin ArcCos CopyTile Cos Factorial InvPow Ln Log10 Pow Sin Sqrt Tan Rand RadianSin RadianCos RadianTan Max Min SelectAWeapon SelectBWeapon \
  70. PressA PressB PressL PressR PressMap PressStart PressEx1 PressEx2 PressEx3 PressEx4 InputA InputB InputL InputR InputMap InputStart InputEx1 InputEx2 InputEx3 InputEx4 PressDown InputDown PressLeft InputLeft PressRight InputMouseX InputMouseY InputMouseB InputMouseZ InputRight PressUp InputUp InputAxisUp InputAxisDown InputAxisLeft InputAxisRight PressAxisUp PressAxisDown PressAxisLeft PressAxisRight \
  71.  
  72. #Script Item  \
  73.  
  74.  
  75.  
  76. directives.objective.c=\
  77. import \
  78. @class @defs @protocol @required @optional @end \
  79. @interface @public @package @protected @private @property \
  80. @implementation @synthesize @dynamic \
  81. @throw @try @catch @finally \
  82. @synchronized @autoreleasepool \
  83. @selector @encode \
  84. @compatibility_alias
  85.  
  86. # Since Objective C and C++ share the .h extension, allow Objective C directives as keywords
  87. # For stricter display of pure C++, specify keywords.$(file.patterns.cpp)=$(keywordclass.cpp)
  88. keywords.$(file.patterns.cpp)=$(keywordclass.cpp) $(directives.objective.c)
  89.  
  90. # keywords2 is for highlighting user defined keywords or function calls or similar
  91. #keywords2.$(file.patterns.cpp)=file
  92.  
  93. # keywords3 is for doc comment keywords, highlighted in style 17
  94. #CPP doxygen
  95. file.patterns.doxygen.langs=$(file.patterns.cpp);$(file.patterns.java)
  96. keywordclass.doxygen=a addindex addtogroup anchor arg attention \
  97. author b brief bug c class code date def defgroup deprecated dontinclude \
  98. e em endcode endhtmlonly endif endlatexonly endlink endverbatim enum example exception \
  99. f$ f[ f] file fn Game hideinitializer htmlinclude htmlonly \
  100. if image include ingroup internal invariant interface latexonly li line link \
  101. mainpage name namespace nosubgrouping note overload \
  102. p page par param param[in] param[out] \
  103. post pre ref relates remarks return retval \
  104. sa section see showinitializer since skip skipline struct subsection \
  105. test throw throws todo typedef union until \
  106. var verbatim verbinclude version warning weakgroup $ @ \ & < > # { }
  107. keywords3.$(file.patterns.doxygen.langs)=$(keywordclass.doxygen)
  108.  
  109. # keywords5 is for preprocessor definitions and will cause inactive code
  110. # to be greyed out. This setting is a space separated list of definitions
  111. # where a definition may be of the form NAME=VALUE or simply NAME.
  112. #keywords5.$(file.patterns.cpp)=_MSC_VER SCI_NAMESPACE GTK_MAJOR_VERSION=2
  113.  
  114. word.chars.cxx=$(chars.alpha)$(chars.numeric)_#
  115. word.characters.$(file.patterns.cpp)=$(word.chars.cxx)
  116. calltip.cpp.word.characters=$(chars.alpha)$(chars.numeric)_
  117. comment.block.cpp=//~
  118. #comment.block.at.line.start.cpp=1
  119. comment.stream.start.cpp=/*
  120. comment.stream.end.cpp=*/
  121. comment.box.start.cpp=/*
  122. comment.box.middle.cpp= *
  123. comment.box.end.cpp= */
  124.  
  125. # Folding
  126. #fold.cpp.syntax.based=0
  127. #fold.cpp.comment.multiline=0
  128. #fold.cpp.comment.explicit=0
  129. #defaults for fold.cpp.explicit.start=//{ and fold.cpp.explicit.end=//}
  130. #  can be replaced by defining custom strings, e.g. //[ and //]
  131. #fold.cpp.explicit.start=//[
  132. #fold.cpp.explicit.end=//]
  133. #if fold strings are set to something like /*{{{ and /*}}} (Origami/WinF style fold strings), enable
  134. #  fold.cpp.explicit.anywhere, allowing explicit fold points being anywhere, not just in line comments
  135. #fold.cpp.explicit.anywhere=1
  136. #fold.at.else=1
  137.  
  138. file.patterns.c.except.cpp=$(file.patterns.cs);$(file.patterns.idl);*.java;$(file.patterns.flash);$(file.patterns.ch)
  139. statement.indent.$(file.patterns.c.except.cpp)=5 case default do else for if while
  140. statement.indent.$(file.patterns.cpp)=5 case default do else for if private protected public while
  141. statement.end.$(file.patterns.c.like)=10 ;
  142. statement.lookback.$(file.patterns.c.like)=20
  143. block.start.$(file.patterns.c.like)=10 {
  144. block.end.$(file.patterns.c.like)=10 }
  145.  
  146. #autocomplete.cpp.fillups=(
  147.  
  148. #styling.within.preprocessor=1
  149. preprocessor.symbol.$(file.patterns.cpp)=#
  150. preprocessor.start.$(file.patterns.cpp)=if ifdef ifndef
  151. preprocessor.middle.$(file.patterns.cpp)=else elif
  152. preprocessor.end.$(file.patterns.cpp)=endif
  153.  
  154. preprocessor.symbol.$(file.patterns.cs)=#
  155. preprocessor.start.$(file.patterns.cs)=if region
  156. preprocessor.middle.$(file.patterns.cs)=else elif
  157. preprocessor.end.$(file.patterns.cs)=endif endregion
  158.  
  159. keywordclass.ch=\
  160. auto array bool break case char class complex ComplexInf ComplexNaN \
  161. const continue default delete \
  162. do double else enum export extern float for foreach goto if Inf inline int \
  163. long namespace NaN new NULL private public register restrict return short \
  164. signed sizeof static string_t struct switch this typedef union unsigned \
  165. using void volatile wchar_t while __declspec
  166. keywords.$(file.patterns.ch)=$(keywordclass.ch)
  167. word.chars.ch=$(chars.alpha)$(chars.numeric)_#
  168. word.characters.$(file.patterns.ch)=$(word.chars.cxx)
  169. comment.block.ch=//~
  170. #comment.block.at.line.start.ch=1
  171. comment.stream.start.ch=/*
  172. comment.stream.end.ch=*/
  173. comment.box.start.ch=/*
  174. comment.box.middle.ch= *
  175. comment.box.end.ch= */
  176. preprocessor.symbol.$(file.patterns.ch)=#
  177. preprocessor.start.$(file.patterns.ch)=if ifdef ifndef
  178. preprocessor.middle.$(file.patterns.ch)=else elif
  179. preprocessor.end.$(file.patterns.ch)=endif
  180.  
  181. keywordclass.cs=abstract as ascending base bool break by byte case catch char checked \
  182. class const continue decimal default delegate descending do double else enum \
  183. equals event explicit extern false finally fixed float for foreach from goto group if \
  184. implicit in int interface internal into is join lock let long namespace new null \
  185. object on operator orderby out override params private protected public \
  186. readonly ref return sbyte sealed select short sizeof stackalloc static \
  187. string struct switch this throw true try typeof uint ulong \
  188. unchecked unsafe ushort using var virtual void volatile where while
  189. keywords.$(file.patterns.cs)=$(keywordclass.cs)
  190. word.characters.$(file.patterns.cs)=$(word.chars.cxx)
  191.  
  192. keywordclass.go=\
  193. bool byte break case chan complex64 complex128 const continue defer default  \
  194. else  for func go goto fallthrough false float32 float64 if import int interface int8 int16 int32 int64 \
  195. len map nil package range return select string struct switch true type \
  196. uint uintptr uint8 uint16 uint32 uint64  var
  197. keywords.$(file.patterns.go)=$(keywordclass.go)
  198.  
  199. keywordclass.rc=\
  200. ACCELERATORS ALT AUTO3STATE AUTOCHECKBOX AUTORADIOBUTTON \
  201. BEGIN BITMAP BLOCK BUTTON CAPTION CHARACTERISTICS CHECKBOX CLASS \
  202. COMBOBOX CONTROL CTEXT CURSOR DEFPUSHBUTTON DIALOG DIALOGEX DISCARDABLE \
  203. EDITTEXT END EXSTYLE FONT GROUPBOX ICON LANGUAGE LISTBOX LTEXT \
  204. MENU MENUEX MENUITEM MESSAGETABLE POPUP \
  205. PUSHBUTTON RADIOBUTTON RCDATA RTEXT SCROLLBAR SEPARATOR SHIFT STATE3 \
  206. STRINGTABLE STYLE TEXTINCLUDE VALUE VERSION VERSIONINFO VIRTKEY
  207. keywords.$(file.patterns.rc)=$(keywordclass.rc)
  208.  
  209. keywordclass.idl=\
  210. aggregatable allocate appobject arrays async async_uuid \
  211. auto_handle \
  212. bindable boolean broadcast byte byte_count \
  213. call_as callback char coclass code comm_status \
  214. const context_handle context_handle_noserialize \
  215. context_handle_serialize control cpp_quote custom \
  216. decode default defaultbind defaultcollelem \
  217. defaultvalue defaultvtable dispinterface displaybind dllname \
  218. double dual \
  219. enable_allocate encode endpoint entry enum error_status_t \
  220. explicit_handle \
  221. fault_status first_is float \
  222. handle_t heap helpcontext helpfile helpstring \
  223. helpstringcontext helpstringdll hidden hyper \
  224. id idempotent ignore iid_as iid_is immediatebind implicit_handle \
  225. import importlib in include in_line int __int64 __int3264 interface \
  226. last_is lcid length_is library licensed local long \
  227. max_is maybe message methods midl_pragma \
  228. midl_user_allocate midl_user_free min_is module ms_union \
  229. ncacn_at_dsp ncacn_dnet_nsp ncacn_http ncacn_ip_tcp \
  230. ncacn_nb_ipx ncacn_nb_nb ncacn_nb_tcp ncacn_np \
  231. ncacn_spx ncacn_vns_spp ncadg_ip_udp ncadg_ipx ncadg_mq \
  232. ncalrpc nocode nonbrowsable noncreatable nonextensible notify \
  233. object odl oleautomation optimize optional out out_of_line \
  234. pipe pointer_default pragma properties propget propput propputref \
  235. ptr public \
  236. range readonly ref represent_as requestedit restricted retval \
  237. shape short signed size_is small source strict_context_handle \
  238. string struct switch switch_is switch_type \
  239. transmit_as typedef \
  240. uidefault union unique unsigned user_marshal usesgetlasterror uuid \
  241. v1_enum vararg version void wchar_t wire_marshal
  242.  
  243. keywordclass.msidl=handle
  244. keywordclass.xpidl=attribute native noscript scriptable shared wstring inout
  245. keywords.$(file.patterns.idl)=$(keywordclass.idl) $(keywordclass.xpidl)
  246.  
  247. # http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
  248. keywordclass.java=abstract assert boolean break byte case catch char class \
  249. const continue default do double else enum extends final finally float for \
  250. goto if implements import instanceof int interface long \
  251. native new package private protected public \
  252. return short static strictfp super switch synchronized this throw throws \
  253. transient try var void volatile while
  254. keywords.$(file.patterns.java)=$(keywordclass.java)
  255.  
  256. keywordclass.javascript=abstract boolean break byte case catch char class \
  257. const continue debugger default delete do double else enum export extends \
  258. final finally float for function goto if implements import in instanceof \
  259. int interface long native new package private protected public \
  260. return short static super switch synchronized this throw throws \
  261. transient try typeof var void volatile while with
  262. keywords.$(file.patterns.js)=$(keywordclass.javascript)
  263.  
  264. keywordclass.flash=add and break case catch class continue default delete do \
  265. dynamic else eq extends false finally for function ge get gt if implements import in \
  266. instanceof interface intrinsic le lt ne new not null or private public return \
  267. set static super switch this throw true try typeof undefined var void while with
  268.  
  269. keywordclass2.flash=Array Arguments Accessibility Boolean Button Camera Color \
  270. ContextMenu ContextMenuItem Date Error Function Key LoadVars LocalConnection Math \
  271. Microphone Mouse MovieClip MovieClipLoader NetConnection NetStream Number Object \
  272. PrintJob Selection SharedObject Sound Stage String StyleSheet System TextField \
  273. TextFormat TextSnapshot Video Void XML XMLNode XMLSocket \
  274. _accProps _focusrect _global _highquality _parent _quality _root _soundbuftime \
  275. arguments asfunction call capabilities chr clearInterval duplicateMovieClip \
  276. escape eval fscommand getProperty getTimer getURL getVersion gotoAndPlay gotoAndStop \
  277. ifFrameLoaded Infinity -Infinity int isFinite isNaN length loadMovie loadMovieNum \
  278. loadVariables loadVariablesNum maxscroll mbchr mblength mbord mbsubstring MMExecute \
  279. NaN newline nextFrame nextScene on onClipEvent onUpdate ord parseFloat parseInt play \
  280. prevFrame prevScene print printAsBitmap printAsBitmapNum printNum random removeMovieClip \
  281. scroll set setInterval setProperty startDrag stop stopAllSounds stopDrag substring \
  282. targetPath tellTarget toggleHighQuality trace unescape unloadMovie unLoadMovieNum updateAfterEvent
  283.  
  284. keywords.$(file.patterns.flash)=$(keywordclass.flash)
  285. keywords2.$(file.patterns.flash)=$(keywordclass2.flash)
  286.  
  287. keywordclass.vala=if else switch case default break continue return yield for foreach in \
  288. do while try catch finally throw
  289.  
  290. keywordclass2.vala=namespace interface class struct enum delegate signal errordomain \
  291. construct get set value base const static var dynamic weak unowned virtual abstract \
  292. override public protected private extern throws requires ensures yields out ref lock \
  293. using true false null delete generic new this typeof sizeof as owned int string char bool
  294.  
  295. keywords.$(file.patterns.vala)=$(keywordclass.vala)
  296. keywords2.$(file.patterns.vala)=$(keywordclass2.vala)
  297.  
  298. keywordclass.pike=constant enum if do for while else foreach case switch break continue \
  299. return typeof catch class lambda import inherit static void int string float mixed object \
  300. function program array mapping multiset
  301. keywords.$(file.patterns.pike)=$(keywordclass.pike)
  302.  
  303. keywordclass.swift.declarations=class deinit enum extension func import init \
  304. internal let operator private protocol public static struct subscript typealias var
  305. keywordclass.swift.statements=break case continue default do else fallthrough \
  306. for if in return switch where while
  307. keywordclass.swift.expressions=as dynamicType false is nil self Self super \
  308. true __COLUMN__ __FILE__ __FUNCTION__ __LINE__
  309. # The contextual keywords are only keywords in particular contexts
  310. keywordclass.swift.contextual=associativity convenience dynamic didSet final get \
  311. infix inout lazy left mutating none nonmutating optional override postfix \
  312. precedence prefix Protocol required right set Type unowned weak willSet
  313.  
  314. keywords.$(file.patterns.swift)=$(keywordclass.swift.declarations) \
  315. $(keywordclass.swift.statements) $(keywordclass.swift.expressions) \
  316. $(keywordclass.swift.contextual)
  317.  
  318. # Markers
  319. # keywords6.$(file.patterns.c.like)=FIXME TODO XXX HACK UnresolvedMergeConflict UNDONE
  320.  
  321. #lexer.cpp.track.preprocessor=1
  322. #lexer.cpp.update.preprocessor=1
  323. # For C# leave lexer.cpp.verbatim.strings.allow.escapes as 0 but change to 1 for Objective C
  324. #lexer.cpp.verbatim.strings.allow.escapes=1
  325. #lexer.cpp.hashquoted.strings=1
  326.  
  327. # C++ styles
  328.  
  329. # Default
  330. style.cpp.32=$(font.base)
  331. # White space
  332. style.cpp.0=fore:#808080
  333. # Comment: /* */.
  334. style.cpp.1=$(colour.code.comment.box),$(font.code.comment.box)
  335. # Line Comment: //.
  336. style.cpp.2=$(colour.code.comment.line),$(font.code.comment.line)
  337. # Doc comment: block comments beginning with /** or /*!
  338. style.cpp.3=$(colour.code.comment.doc),$(font.code.comment.doc)
  339. # Number
  340. style.cpp.4=$(colour.number)
  341. # Keyword
  342. style.cpp.5=$(colour.keyword),bold
  343. # Double quoted string
  344. style.cpp.6=$(colour.string)
  345. # Single quoted string
  346. style.cpp.7=$(colour.char)
  347. # UUIDs (only in IDL)
  348. style.cpp.8=fore:#804080
  349. # Preprocessor
  350. style.cpp.9=$(colour.preproc)
  351. # Operators
  352. style.cpp.10=$(colour.operator),bold
  353. # Identifiers
  354. style.cpp.11=
  355. # End of line where string is not closed
  356. style.cpp.12=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
  357. # Verbatim strings for C#
  358. style.cpp.13=fore:#007F00,$(font.monospace),back:#E0FFE0,eolfilled
  359. # Regular expressions for JavaScript
  360. style.cpp.14=fore:#3F7F3F,$(font.monospace),back:#E0F0FF,eolfilled
  361. # Doc Comment Line: line comments beginning with /// or //!.
  362. style.cpp.15=$(colour.code.comment.doc),$(font.code.comment.doc)
  363. # Keywords2
  364. style.cpp.16=fore:#B00040
  365. # Comment keyword
  366. style.cpp.17=fore:#3060A0,$(font.code.comment.doc)
  367. # Comment keyword error
  368. style.cpp.18=fore:#804020,$(font.code.comment.doc)
  369. # Raw strings for C++0x
  370. style.cpp.20=$(colour.string),back:#FFF3FF,eolfilled
  371. # Triple-quoted strings for Vala
  372. style.cpp.21=$(font.monospace),fore:#007F00,back:#E0FFE0,eolfilled
  373. # Hash-quoted strings for Pike
  374. style.cpp.22=$(font.monospace),fore:#007F00,back:#E7FFD7,eolfilled
  375. # Preprocessor stream comment
  376. style.cpp.23=fore:#659900
  377. # Preprocessor stream doc comment
  378. style.cpp.24=$(colour.code.comment.doc)
  379. # User defined literals
  380. style.cpp.25=fore:#C06000
  381. # Task Marker
  382. style.cpp.26=fore:#BE07FF,$(font.code.comment.line)
  383.  
  384. # Inactive states are 64 greater than their active counterparts
  385.  
  386. # White space
  387. style.cpp.64=fore:#C0C0C0
  388. # Comment: /* */.
  389. style.cpp.65=$(style.cpp.1),fore:#90B090
  390. # Line Comment: //.
  391. style.cpp.66=$(style.cpp.2),fore:#90B090
  392. # Doc comment: block comments beginning with /** or /*!
  393. style.cpp.67=$(style.cpp.3),fore:#D0D0D0
  394. # Number
  395. style.cpp.68=$(style.cpp.4),fore:#90B0B0
  396. # Keyword
  397. style.cpp.69=$(style.cpp.5),fore:#9090B0
  398. # Double quoted string
  399. style.cpp.70=$(style.cpp.6),fore:#B090B0
  400. # Single quoted string
  401. style.cpp.71=$(style.cpp.7),fore:#B090B0
  402. # UUIDs (only in IDL)
  403. style.cpp.72=$(style.cpp.8),fore:#C0C0C0
  404. # Preprocessor
  405. style.cpp.73=$(style.cpp.9),fore:#B0B090
  406. # Operators
  407. style.cpp.74=$(style.cpp.10),fore:#B0B0B0
  408. # Identifiers
  409. style.cpp.75=$(style.cpp.11),fore:#B0B0B0
  410. # End of line where string is not closed
  411. style.cpp.76=$(style.cpp.12),fore:#000000
  412. # Verbatim strings for C#
  413. style.cpp.77=$(style.cpp.13),fore:#90B090
  414. # Regular expressions for JavaScript
  415. style.cpp.78=$(style.cpp.14),fore:#7FAF7F
  416. # Doc Comment Line: line comments beginning with /// or //!.
  417. style.cpp.79=$(style.cpp.15),fore:#C0C0C0
  418. # Keywords2
  419. style.cpp.80=$(style.cpp.16),fore:#C0C0C0
  420. # Comment keyword
  421. style.cpp.81=$(style.cpp.17),fore:#C0C0C0
  422. # Comment keyword error
  423. style.cpp.82=$(style.cpp.18),fore:#C0C0C0
  424. # Raw strings for C++0x
  425. style.cpp.84=$(style.cpp.20),fore:#B090B0
  426. # Triple-quoted strings for Vala
  427. style.cpp.85=$(style.cpp.21),fore:#90B090
  428. # Hash-quoted strings for Pike
  429. style.cpp.86=$(style.cpp.22),fore:#90B090
  430. # Preprocessor stream comment
  431. style.cpp.87=$(style.cpp.23),fore:#A0C090
  432. # Preprocessor stream doc comment
  433. style.cpp.88=$(style.cpp.23),fore:#C0C0C0
  434. # User defined literals
  435. style.cpp.89=fore:#D7A090
  436. # Task Marker
  437. style.cpp.90=fore:#C3A1CF,$(font.code.comment.line)
  438.  
  439. # Braces are only matched in operator style
  440. braces.cpp.style=10
  441.  
  442. ccopts=-pedantic -Os
  443. cc=g++ $(ccopts) -c $(FileNameExt) -o $(FileName).o
  444. ccc=gcc $(ccopts) -c $(FileNameExt) -o $(FileName).o
  445.  
  446. make.command=make
  447. command.compile.*.c=$(ccc) -std=c99
  448. command.build.*.c=$(make.command)
  449. command.build.*.h=$(make.command)
  450. command.clean.*.c=$(make.command) clean
  451. command.clean.*.h=$(make.command) clean
  452. command.go.*.c=./$(FileName)
  453. # To make the Go command both compile (if needed) and execute, use this setting:
  454. #command.go.needs.*.c=gcc $(ccopts) -std=c99 $(FileNameExt) -o $(FileName)
  455.  
  456. command.compile.$(file.patterns.cplusplus)=$(cc)
  457. command.build.$(file.patterns.cplusplus)=$(make.command)
  458. command.clean.$(file.patterns.cplusplus)=$(make.command) clean
  459. command.go.$(file.patterns.cplusplus)=./$(FileName)
  460. command.go.needs.$(file.patterns.cplusplus)=g++ $(ccopts) $(FileNameExt) -o $(FileName)
  461.  
  462. command.name.0.$(file.patterns.cpp)=Indent
  463. command.0.$(file.patterns.cpp)=astyle -tOHUKk3 $(FileNameExt)
  464. command.is.filter.0.$(file.patterns.cpp)=1
  465.  
  466. command.name.1.$(file.patterns.cplusplus)=Lint
  467. command.1.$(file.patterns.cplusplus)=g++ -W -Wall -Wshadow -Wwrite-strings -Wold-style-cast \
  468.     -Woverloaded-virtual -pedantic -Os -fno-exceptions -c $(FileNameExt)
  469.  
  470. if PLAT_WIN
  471.     command.compile.*.rc=windres $(FileNameExt) $(FileName).o
  472.     command.build.*.rc=$(make.command)
  473.     command.help.$(file.patterns.cpp)=$(CurrentWord)!G:\Program Files\Microsoft Visual Studio\MSDN98\98VSa\1033\MSDNVS6A.COL
  474.     command.help.subsystem.$(file.patterns.cpp)=4
  475.     command.go.*.js=cscript /nologo $(FileNameExt)
  476. # When maintaining old Win16 programs...
  477. #   command.help.$(file.patterns.cpp)=$(CurrentWord)!I:\msvc\help\win31wh.hlp
  478. #   command.help.subsystem.$(file.patterns.cpp)=5
  479.  
  480. if PLAT_GTK
  481.     command.help.$(file.patterns.cpp)=man $(CurrentWord) | col -b
  482.  
  483. if PLAT_WIN
  484.     command.build.*.cs=csc /t:winexe $(FileNameExt) /r:system.dll,system.drawing.dll
  485.     command.go.*.cs=$(FileName)
  486.     command.go.subsystem.*.cs=0
  487. if PLAT_GTK
  488.     command.build.*.cs=mcs /t:winexe $(FileNameExt) /r:System,System.Drawing
  489.     command.go.*.cs=mono $(FileName).exe
  490.     command.go.subsystem.*.cs=1
  491.  
  492. command.compile.*.java=javac $(FileNameExt)
  493. command.build.*.java=javac *.java
  494. command.go.*.java=java -cp . $(FileName)
  495.  
  496. if PLAT_WIN
  497.     command.help.*.java=http://java.sun.com/javase/6/docs/api/java/util/$(CurrentWord).html
  498.     command.help.subsystem.*.java=2
  499.  
  500. command.compile.*.ch=ch -n $(FileNameExt)
  501. command.build.*.ch=ch -n  $(FileNameExt)
  502. command.go.*.ch=ch -u $(FileNameExt)
  503.  
  504. command.compile.*.as=mtasc -strict $(FileNameExt)
  505. command.build.*.as=mtasc -strict *.as
  506.  
  507. command.build.$(file.patterns.vala)=valac $(FileNameExt)
  508. command.go.*.vala=./$(FileName)
  509.  
  510. # can also be 6g for 64-bit systems!
  511. command.compile.*.go=8g $(FileNameExt)
  512. command.build.*.go=$(make.command)
  513. command.go.*.go=./$(FileName)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement