ZoriaRPG

ZScript Syntax for SciTE

May 30th, 2017
125
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 Edible GainLower StandAlone GuyCount ContinueDMap ContinueScreen LastEntranceDMap LastEntranceScreen Generic WavyIn WavyOut ZapIn ZapOut OpeningWipe DrawBitmapEx Polygon Polygon3d CreateBitmap ComboArray TileArray \
  53. case catch char class compl const const_cast constexpr continue GetScreenFlags GetScreenEFlags GetScreenState SetScreenState GreyscaleOn GreyscaleOff DMapPalette SetMessage SetMapName SetMapTitle SetMapIntro \
  54. default delete do double dynamic_cast else enum explicit export extern false float for PlayMIDI GetMIDI UnderCSet State Door PlayEnhancedMusic CappedFPS Version Build Beta DisableActiveSubscreen GetPointer \
  55. friend goto if inline int long mutable namespace new not not_eq GetDMapIntro DMapOffset DMapMap NumDeaths Cheat Time TimeValid HasPlayed HitZHeight Diagonal BigHitbox Modifier AFrames PScript MagicCost MinHearts Sprites Combine Downgrade KeepOld RupeeCost \
  56. operator or or_eq private protected public DMapFlags DMapLevel DMapCompass LItems DMapContinue DMapMIDI GetDMapName GetDMapTitle Flip Extend CreateLWeaponDx SetPointer UID AClock Range ScriptDefense InvFrames Invincible HasItem Ringleader \
  57. register reinterpret_cast return short signed sizeof static static_cast struct switch GetDMapMusicFilename GetDMapMusicTrack SetDMapEnhancedMusic GetComboData SetLinkTile GetLinkTile WarpEffect WarpSound SideWarpSounds PitWarpSounds UseWarpReturn UsingItem UsingItemA UsingItemB \
  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 RefFFC RefItem RefItemdata RefLWeapon RefEWeapon RefNPC SP BitmapQuad PixelArray SetRenderSource \
  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 Animation WalkASpeed SwimASpeed InvFrames InvFlicker HurtSound Eaten ItemA ItemB SetItemSlot GetLinkExtend SetLinkExtend \
  69. Abs ArcTan ArcSin ArcCos CopyTile Cos Factorial InvPow Ln Log10 Pow Sin Sqrt Tan Rand RadianSin RadianCos RadianTan Max Min SelectAWeapon SelectBWeapon DrawCount GetDMapScreenDoor SetDMapScreenDoor GetDMapScreenState SetDMapScreenState GetDrawCount \
  70. SizeOfArrayBool SizeOfArrayFFC SizeOfArrayNPC SizeOfArrayItem SizeOfArrayItemdata SizeOfArrayLWeapon SizeOfArrayEWeapon GetMaxMaps MapCount GetScreenEnemy SetScreenEnemy GetScreenDoor SetScreenDoor PauseSound ResumeSound EndSound PauseMusic ResumeMusic WalkSpeed \
  71. 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 \
  72.  
  73. #Script Item  \
  74.  
  75.  
  76.  
  77. directives.objective.c=\
  78. import \
  79. @class @defs @protocol @required @optional @end \
  80. @interface @public @package @protected @private @property \
  81. @implementation @synthesize @dynamic \
  82. @throw @try @catch @finally \
  83. @synchronized @autoreleasepool \
  84. @selector @encode \
  85. @compatibility_alias
  86.  
  87. # Since Objective C and C++ share the .h extension, allow Objective C directives as keywords
  88. # For stricter display of pure C++, specify keywords.$(file.patterns.cpp)=$(keywordclass.cpp)
  89. keywords.$(file.patterns.cpp)=$(keywordclass.cpp) $(directives.objective.c)
  90.  
  91. # keywords2 is for highlighting user defined keywords or function calls or similar
  92. #keywords2.$(file.patterns.cpp)=file
  93.  
  94. # keywords3 is for doc comment keywords, highlighted in style 17
  95. #CPP doxygen
  96. file.patterns.doxygen.langs=$(file.patterns.cpp);$(file.patterns.java)
  97. keywordclass.doxygen=a addindex addtogroup anchor arg attention \
  98. author b brief bug c class code date def defgroup deprecated dontinclude \
  99. e em endcode endhtmlonly endif endlatexonly endlink endverbatim enum example exception \
  100. f$ f[ f] file fn Game hideinitializer htmlinclude htmlonly \
  101. if image include ingroup internal invariant interface latexonly li line link \
  102. mainpage name namespace nosubgrouping note overload \
  103. p page par param param[in] param[out] \
  104. post pre ref relates remarks return retval \
  105. sa section see showinitializer since skip skipline struct subsection \
  106. test throw throws todo typedef union until \
  107. var verbatim verbinclude version warning weakgroup $ @ \ & < > # { }
  108. keywords3.$(file.patterns.doxygen.langs)=$(keywordclass.doxygen)
  109.  
  110. # keywords5 is for preprocessor definitions and will cause inactive code
  111. # to be greyed out. This setting is a space separated list of definitions
  112. # where a definition may be of the form NAME=VALUE or simply NAME.
  113. #keywords5.$(file.patterns.cpp)=_MSC_VER SCI_NAMESPACE GTK_MAJOR_VERSION=2
  114.  
  115. word.chars.cxx=$(chars.alpha)$(chars.numeric)_#
  116. word.characters.$(file.patterns.cpp)=$(word.chars.cxx)
  117. calltip.cpp.word.characters=$(chars.alpha)$(chars.numeric)_
  118. comment.block.cpp=//~
  119. #comment.block.at.line.start.cpp=1
  120. comment.stream.start.cpp=/*
  121. comment.stream.end.cpp=*/
  122. comment.box.start.cpp=/*
  123. comment.box.middle.cpp= *
  124. comment.box.end.cpp= */
  125.  
  126. # Folding
  127. #fold.cpp.syntax.based=0
  128. #fold.cpp.comment.multiline=0
  129. #fold.cpp.comment.explicit=0
  130. #defaults for fold.cpp.explicit.start=//{ and fold.cpp.explicit.end=//}
  131. #  can be replaced by defining custom strings, e.g. //[ and //]
  132. #fold.cpp.explicit.start=//[
  133. #fold.cpp.explicit.end=//]
  134. #if fold strings are set to something like /*{{{ and /*}}} (Origami/WinF style fold strings), enable
  135. #  fold.cpp.explicit.anywhere, allowing explicit fold points being anywhere, not just in line comments
  136. #fold.cpp.explicit.anywhere=1
  137. #fold.at.else=1
  138.  
  139. file.patterns.c.except.cpp=$(file.patterns.cs);$(file.patterns.idl);*.java;$(file.patterns.flash);$(file.patterns.ch)
  140. statement.indent.$(file.patterns.c.except.cpp)=5 case default do else for if while
  141. statement.indent.$(file.patterns.cpp)=5 case default do else for if private protected public while
  142. statement.end.$(file.patterns.c.like)=10 ;
  143. statement.lookback.$(file.patterns.c.like)=20
  144. block.start.$(file.patterns.c.like)=10 {
  145. block.end.$(file.patterns.c.like)=10 }
  146.  
  147. #autocomplete.cpp.fillups=(
  148.  
  149. #styling.within.preprocessor=1
  150. preprocessor.symbol.$(file.patterns.cpp)=#
  151. preprocessor.start.$(file.patterns.cpp)=if ifdef ifndef
  152. preprocessor.middle.$(file.patterns.cpp)=else elif
  153. preprocessor.end.$(file.patterns.cpp)=endif
  154.  
  155. preprocessor.symbol.$(file.patterns.cs)=#
  156. preprocessor.start.$(file.patterns.cs)=if region
  157. preprocessor.middle.$(file.patterns.cs)=else elif
  158. preprocessor.end.$(file.patterns.cs)=endif endregion
  159.  
  160. keywordclass.ch=\
  161. auto array bool break case char class complex ComplexInf ComplexNaN \
  162. const continue default delete \
  163. do double else enum export extern float for foreach goto if Inf inline int \
  164. long namespace NaN new NULL private public register restrict return short \
  165. signed sizeof static string_t struct switch this typedef union unsigned \
  166. using void volatile wchar_t while __declspec
  167. keywords.$(file.patterns.ch)=$(keywordclass.ch)
  168. word.chars.ch=$(chars.alpha)$(chars.numeric)_#
  169. word.characters.$(file.patterns.ch)=$(word.chars.cxx)
  170. comment.block.ch=//~
  171. #comment.block.at.line.start.ch=1
  172. comment.stream.start.ch=/*
  173. comment.stream.end.ch=*/
  174. comment.box.start.ch=/*
  175. comment.box.middle.ch= *
  176. comment.box.end.ch= */
  177. preprocessor.symbol.$(file.patterns.ch)=#
  178. preprocessor.start.$(file.patterns.ch)=if ifdef ifndef
  179. preprocessor.middle.$(file.patterns.ch)=else elif
  180. preprocessor.end.$(file.patterns.ch)=endif
  181.  
  182. keywordclass.cs=abstract as ascending base bool break by byte case catch char checked \
  183. class const continue decimal default delegate descending do double else enum \
  184. equals event explicit extern false finally fixed float for foreach from goto group if \
  185. implicit in int interface internal into is join lock let long namespace new null \
  186. object on operator orderby out override params private protected public \
  187. readonly ref return sbyte sealed select short sizeof stackalloc static \
  188. string struct switch this throw true try typeof uint ulong \
  189. unchecked unsafe ushort using var virtual void volatile where while
  190. keywords.$(file.patterns.cs)=$(keywordclass.cs)
  191. word.characters.$(file.patterns.cs)=$(word.chars.cxx)
  192.  
  193. keywordclass.go=\
  194. bool byte break case chan complex64 complex128 const continue defer default  \
  195. else  for func go goto fallthrough false float32 float64 if import int interface int8 int16 int32 int64 \
  196. len map nil package range return select string struct switch true type \
  197. uint uintptr uint8 uint16 uint32 uint64  var
  198. keywords.$(file.patterns.go)=$(keywordclass.go)
  199.  
  200. keywordclass.rc=\
  201. ACCELERATORS ALT AUTO3STATE AUTOCHECKBOX AUTORADIOBUTTON \
  202. BEGIN BITMAP BLOCK BUTTON CAPTION CHARACTERISTICS CHECKBOX CLASS \
  203. COMBOBOX CONTROL CTEXT CURSOR DEFPUSHBUTTON DIALOG DIALOGEX DISCARDABLE \
  204. EDITTEXT END EXSTYLE FONT GROUPBOX ICON LANGUAGE LISTBOX LTEXT \
  205. MENU MENUEX MENUITEM MESSAGETABLE POPUP \
  206. PUSHBUTTON RADIOBUTTON RCDATA RTEXT SCROLLBAR SEPARATOR SHIFT STATE3 \
  207. STRINGTABLE STYLE TEXTINCLUDE VALUE VERSION VERSIONINFO VIRTKEY
  208. keywords.$(file.patterns.rc)=$(keywordclass.rc)
  209.  
  210. keywordclass.idl=\
  211. aggregatable allocate appobject arrays async async_uuid \
  212. auto_handle \
  213. bindable boolean broadcast byte byte_count \
  214. call_as callback char coclass code comm_status \
  215. const context_handle context_handle_noserialize \
  216. context_handle_serialize control cpp_quote custom \
  217. decode default defaultbind defaultcollelem \
  218. defaultvalue defaultvtable dispinterface displaybind dllname \
  219. double dual \
  220. enable_allocate encode endpoint entry enum error_status_t \
  221. explicit_handle \
  222. fault_status first_is float \
  223. handle_t heap helpcontext helpfile helpstring \
  224. helpstringcontext helpstringdll hidden hyper \
  225. id idempotent ignore iid_as iid_is immediatebind implicit_handle \
  226. import importlib in include in_line int __int64 __int3264 interface \
  227. last_is lcid length_is library licensed local long \
  228. max_is maybe message methods midl_pragma \
  229. midl_user_allocate midl_user_free min_is module ms_union \
  230. ncacn_at_dsp ncacn_dnet_nsp ncacn_http ncacn_ip_tcp \
  231. ncacn_nb_ipx ncacn_nb_nb ncacn_nb_tcp ncacn_np \
  232. ncacn_spx ncacn_vns_spp ncadg_ip_udp ncadg_ipx ncadg_mq \
  233. ncalrpc nocode nonbrowsable noncreatable nonextensible notify \
  234. object odl oleautomation optimize optional out out_of_line \
  235. pipe pointer_default pragma properties propget propput propputref \
  236. ptr public \
  237. range readonly ref represent_as requestedit restricted retval \
  238. shape short signed size_is small source strict_context_handle \
  239. string struct switch switch_is switch_type \
  240. transmit_as typedef \
  241. uidefault union unique unsigned user_marshal usesgetlasterror uuid \
  242. v1_enum vararg version void wchar_t wire_marshal
  243.  
  244. keywordclass.msidl=handle
  245. keywordclass.xpidl=attribute native noscript scriptable shared wstring inout
  246. keywords.$(file.patterns.idl)=$(keywordclass.idl) $(keywordclass.xpidl)
  247.  
  248. # http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
  249. keywordclass.java=abstract assert boolean break byte case catch char class \
  250. const continue default do double else enum extends final finally float for \
  251. goto if implements import instanceof int interface long \
  252. native new package private protected public \
  253. return short static strictfp super switch synchronized this throw throws \
  254. transient try var void volatile while
  255. keywords.$(file.patterns.java)=$(keywordclass.java)
  256.  
  257. keywordclass.javascript=abstract boolean break byte case catch char class \
  258. const continue debugger default delete do double else enum export extends \
  259. final finally float for function goto if implements import in instanceof \
  260. int interface long native new package private protected public \
  261. return short static super switch synchronized this throw throws \
  262. transient try typeof var void volatile while with
  263. keywords.$(file.patterns.js)=$(keywordclass.javascript)
  264.  
  265. keywordclass.flash=add and break case catch class continue default delete do \
  266. dynamic else eq extends false finally for function ge get gt if implements import in \
  267. instanceof interface intrinsic le lt ne new not null or private public return \
  268. set static super switch this throw true try typeof undefined var void while with
  269.  
  270. keywordclass2.flash=Array Arguments Accessibility Boolean Button Camera Color \
  271. ContextMenu ContextMenuItem Date Error Function Key LoadVars LocalConnection Math \
  272. Microphone Mouse MovieClip MovieClipLoader NetConnection NetStream Number Object \
  273. PrintJob Selection SharedObject Sound Stage String StyleSheet System TextField \
  274. TextFormat TextSnapshot Video Void XML XMLNode XMLSocket \
  275. _accProps _focusrect _global _highquality _parent _quality _root _soundbuftime \
  276. arguments asfunction call capabilities chr clearInterval duplicateMovieClip \
  277. escape eval fscommand getProperty getTimer getURL getVersion gotoAndPlay gotoAndStop \
  278. ifFrameLoaded Infinity -Infinity int isFinite isNaN length loadMovie loadMovieNum \
  279. loadVariables loadVariablesNum maxscroll mbchr mblength mbord mbsubstring MMExecute \
  280. NaN newline nextFrame nextScene on onClipEvent onUpdate ord parseFloat parseInt play \
  281. prevFrame prevScene print printAsBitmap printAsBitmapNum printNum random removeMovieClip \
  282. scroll set setInterval setProperty startDrag stop stopAllSounds stopDrag substring \
  283. targetPath tellTarget toggleHighQuality trace unescape unloadMovie unLoadMovieNum updateAfterEvent
  284.  
  285. keywords.$(file.patterns.flash)=$(keywordclass.flash)
  286. keywords2.$(file.patterns.flash)=$(keywordclass2.flash)
  287.  
  288. keywordclass.vala=if else switch case default break continue return yield for foreach in \
  289. do while try catch finally throw
  290.  
  291. keywordclass2.vala=namespace interface class struct enum delegate signal errordomain \
  292. construct get set value base const static var dynamic weak unowned virtual abstract \
  293. override public protected private extern throws requires ensures yields out ref lock \
  294. using true false null delete generic new this typeof sizeof as owned int string char bool
  295.  
  296. keywords.$(file.patterns.vala)=$(keywordclass.vala)
  297. keywords2.$(file.patterns.vala)=$(keywordclass2.vala)
  298.  
  299. keywordclass.pike=constant enum if do for while else foreach case switch break continue \
  300. return typeof catch class lambda import inherit static void int string float mixed object \
  301. function program array mapping multiset
  302. keywords.$(file.patterns.pike)=$(keywordclass.pike)
  303.  
  304. keywordclass.swift.declarations=class deinit enum extension func import init \
  305. internal let operator private protocol public static struct subscript typealias var
  306. keywordclass.swift.statements=break case continue default do else fallthrough \
  307. for if in return switch where while
  308. keywordclass.swift.expressions=as dynamicType false is nil self Self super \
  309. true __COLUMN__ __FILE__ __FUNCTION__ __LINE__
  310. # The contextual keywords are only keywords in particular contexts
  311. keywordclass.swift.contextual=associativity convenience dynamic didSet final get \
  312. infix inout lazy left mutating none nonmutating optional override postfix \
  313. precedence prefix Protocol required right set Type unowned weak willSet
  314.  
  315. keywords.$(file.patterns.swift)=$(keywordclass.swift.declarations) \
  316. $(keywordclass.swift.statements) $(keywordclass.swift.expressions) \
  317. $(keywordclass.swift.contextual)
  318.  
  319. # Markers
  320. # keywords6.$(file.patterns.c.like)=FIXME TODO XXX HACK UnresolvedMergeConflict UNDONE
  321.  
  322. #lexer.cpp.track.preprocessor=1
  323. #lexer.cpp.update.preprocessor=1
  324. # For C# leave lexer.cpp.verbatim.strings.allow.escapes as 0 but change to 1 for Objective C
  325. #lexer.cpp.verbatim.strings.allow.escapes=1
  326. #lexer.cpp.hashquoted.strings=1
  327.  
  328. # C++ styles
  329.  
  330. # Default
  331. style.cpp.32=$(font.base)
  332. # White space
  333. style.cpp.0=fore:#808080
  334. # Comment: /* */.
  335. style.cpp.1=$(colour.code.comment.box),$(font.code.comment.box)
  336. # Line Comment: //.
  337. style.cpp.2=$(colour.code.comment.line),$(font.code.comment.line)
  338. # Doc comment: block comments beginning with /** or /*!
  339. style.cpp.3=$(colour.code.comment.doc),$(font.code.comment.doc)
  340. # Number
  341. style.cpp.4=$(colour.number)
  342. # Keyword
  343. style.cpp.5=$(colour.keyword),bold
  344. # Double quoted string
  345. style.cpp.6=$(colour.string)
  346. # Single quoted string
  347. style.cpp.7=$(colour.char)
  348. # UUIDs (only in IDL)
  349. style.cpp.8=fore:#804080
  350. # Preprocessor
  351. style.cpp.9=$(colour.preproc)
  352. # Operators
  353. style.cpp.10=$(colour.operator),bold
  354. # Identifiers
  355. style.cpp.11=
  356. # End of line where string is not closed
  357. style.cpp.12=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
  358. # Verbatim strings for C#
  359. style.cpp.13=fore:#007F00,$(font.monospace),back:#E0FFE0,eolfilled
  360. # Regular expressions for JavaScript
  361. style.cpp.14=fore:#3F7F3F,$(font.monospace),back:#E0F0FF,eolfilled
  362. # Doc Comment Line: line comments beginning with /// or //!.
  363. style.cpp.15=$(colour.code.comment.doc),$(font.code.comment.doc)
  364. # Keywords2
  365. style.cpp.16=fore:#B00040
  366. # Comment keyword
  367. style.cpp.17=fore:#3060A0,$(font.code.comment.doc)
  368. # Comment keyword error
  369. style.cpp.18=fore:#804020,$(font.code.comment.doc)
  370. # Raw strings for C++0x
  371. style.cpp.20=$(colour.string),back:#FFF3FF,eolfilled
  372. # Triple-quoted strings for Vala
  373. style.cpp.21=$(font.monospace),fore:#007F00,back:#E0FFE0,eolfilled
  374. # Hash-quoted strings for Pike
  375. style.cpp.22=$(font.monospace),fore:#007F00,back:#E7FFD7,eolfilled
  376. # Preprocessor stream comment
  377. style.cpp.23=fore:#659900
  378. # Preprocessor stream doc comment
  379. style.cpp.24=$(colour.code.comment.doc)
  380. # User defined literals
  381. style.cpp.25=fore:#C06000
  382. # Task Marker
  383. style.cpp.26=fore:#BE07FF,$(font.code.comment.line)
  384.  
  385. # Inactive states are 64 greater than their active counterparts
  386.  
  387. # White space
  388. style.cpp.64=fore:#C0C0C0
  389. # Comment: /* */.
  390. style.cpp.65=$(style.cpp.1),fore:#90B090
  391. # Line Comment: //.
  392. style.cpp.66=$(style.cpp.2),fore:#90B090
  393. # Doc comment: block comments beginning with /** or /*!
  394. style.cpp.67=$(style.cpp.3),fore:#D0D0D0
  395. # Number
  396. style.cpp.68=$(style.cpp.4),fore:#90B0B0
  397. # Keyword
  398. style.cpp.69=$(style.cpp.5),fore:#9090B0
  399. # Double quoted string
  400. style.cpp.70=$(style.cpp.6),fore:#B090B0
  401. # Single quoted string
  402. style.cpp.71=$(style.cpp.7),fore:#B090B0
  403. # UUIDs (only in IDL)
  404. style.cpp.72=$(style.cpp.8),fore:#C0C0C0
  405. # Preprocessor
  406. style.cpp.73=$(style.cpp.9),fore:#B0B090
  407. # Operators
  408. style.cpp.74=$(style.cpp.10),fore:#B0B0B0
  409. # Identifiers
  410. style.cpp.75=$(style.cpp.11),fore:#B0B0B0
  411. # End of line where string is not closed
  412. style.cpp.76=$(style.cpp.12),fore:#000000
  413. # Verbatim strings for C#
  414. style.cpp.77=$(style.cpp.13),fore:#90B090
  415. # Regular expressions for JavaScript
  416. style.cpp.78=$(style.cpp.14),fore:#7FAF7F
  417. # Doc Comment Line: line comments beginning with /// or //!.
  418. style.cpp.79=$(style.cpp.15),fore:#C0C0C0
  419. # Keywords2
  420. style.cpp.80=$(style.cpp.16),fore:#C0C0C0
  421. # Comment keyword
  422. style.cpp.81=$(style.cpp.17),fore:#C0C0C0
  423. # Comment keyword error
  424. style.cpp.82=$(style.cpp.18),fore:#C0C0C0
  425. # Raw strings for C++0x
  426. style.cpp.84=$(style.cpp.20),fore:#B090B0
  427. # Triple-quoted strings for Vala
  428. style.cpp.85=$(style.cpp.21),fore:#90B090
  429. # Hash-quoted strings for Pike
  430. style.cpp.86=$(style.cpp.22),fore:#90B090
  431. # Preprocessor stream comment
  432. style.cpp.87=$(style.cpp.23),fore:#A0C090
  433. # Preprocessor stream doc comment
  434. style.cpp.88=$(style.cpp.23),fore:#C0C0C0
  435. # User defined literals
  436. style.cpp.89=fore:#D7A090
  437. # Task Marker
  438. style.cpp.90=fore:#C3A1CF,$(font.code.comment.line)
  439.  
  440. # Braces are only matched in operator style
  441. braces.cpp.style=10
  442.  
  443. ccopts=-pedantic -Os
  444. cc=g++ $(ccopts) -c $(FileNameExt) -o $(FileName).o
  445. ccc=gcc $(ccopts) -c $(FileNameExt) -o $(FileName).o
  446.  
  447. make.command=make
  448. command.compile.*.c=$(ccc) -std=c99
  449. command.build.*.c=$(make.command)
  450. command.build.*.h=$(make.command)
  451. command.clean.*.c=$(make.command) clean
  452. command.clean.*.h=$(make.command) clean
  453. command.go.*.c=./$(FileName)
  454. # To make the Go command both compile (if needed) and execute, use this setting:
  455. #command.go.needs.*.c=gcc $(ccopts) -std=c99 $(FileNameExt) -o $(FileName)
  456.  
  457. command.compile.$(file.patterns.cplusplus)=$(cc)
  458. command.build.$(file.patterns.cplusplus)=$(make.command)
  459. command.clean.$(file.patterns.cplusplus)=$(make.command) clean
  460. command.go.$(file.patterns.cplusplus)=./$(FileName)
  461. command.go.needs.$(file.patterns.cplusplus)=g++ $(ccopts) $(FileNameExt) -o $(FileName)
  462.  
  463. command.name.0.$(file.patterns.cpp)=Indent
  464. command.0.$(file.patterns.cpp)=astyle -tOHUKk3 $(FileNameExt)
  465. command.is.filter.0.$(file.patterns.cpp)=1
  466.  
  467. command.name.1.$(file.patterns.cplusplus)=Lint
  468. command.1.$(file.patterns.cplusplus)=g++ -W -Wall -Wshadow -Wwrite-strings -Wold-style-cast \
  469.     -Woverloaded-virtual -pedantic -Os -fno-exceptions -c $(FileNameExt)
  470.  
  471. if PLAT_WIN
  472.     command.compile.*.rc=windres $(FileNameExt) $(FileName).o
  473.     command.build.*.rc=$(make.command)
  474.     command.help.$(file.patterns.cpp)=$(CurrentWord)!G:\Program Files\Microsoft Visual Studio\MSDN98\98VSa\1033\MSDNVS6A.COL
  475.     command.help.subsystem.$(file.patterns.cpp)=4
  476.     command.go.*.js=cscript /nologo $(FileNameExt)
  477. # When maintaining old Win16 programs...
  478. #   command.help.$(file.patterns.cpp)=$(CurrentWord)!I:\msvc\help\win31wh.hlp
  479. #   command.help.subsystem.$(file.patterns.cpp)=5
  480.  
  481. if PLAT_GTK
  482.     command.help.$(file.patterns.cpp)=man $(CurrentWord) | col -b
  483.  
  484. if PLAT_WIN
  485.     command.build.*.cs=csc /t:winexe $(FileNameExt) /r:system.dll,system.drawing.dll
  486.     command.go.*.cs=$(FileName)
  487.     command.go.subsystem.*.cs=0
  488. if PLAT_GTK
  489.     command.build.*.cs=mcs /t:winexe $(FileNameExt) /r:System,System.Drawing
  490.     command.go.*.cs=mono $(FileName).exe
  491.     command.go.subsystem.*.cs=1
  492.  
  493. command.compile.*.java=javac $(FileNameExt)
  494. command.build.*.java=javac *.java
  495. command.go.*.java=java -cp . $(FileName)
  496.  
  497. if PLAT_WIN
  498.     command.help.*.java=http://java.sun.com/javase/6/docs/api/java/util/$(CurrentWord).html
  499.     command.help.subsystem.*.java=2
  500.  
  501. command.compile.*.ch=ch -n $(FileNameExt)
  502. command.build.*.ch=ch -n  $(FileNameExt)
  503. command.go.*.ch=ch -u $(FileNameExt)
  504.  
  505. command.compile.*.as=mtasc -strict $(FileNameExt)
  506. command.build.*.as=mtasc -strict *.as
  507.  
  508. command.build.$(file.patterns.vala)=valac $(FileNameExt)
  509. command.go.*.vala=./$(FileName)
  510.  
  511. # can also be 6g for 64-bit systems!
  512. command.compile.*.go=8g $(FileNameExt)
  513. command.build.*.go=$(make.command)
  514. command.go.*.go=./$(FileName)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×