From b0350a849c6e14b314a2ffdcd5ff484f21f096b3 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sun, 4 Jan 2015 18:49:52 +0100 Subject: [PATCH] added new items to hardcoded static macros --- src/ce_staticmacro.pas | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/ce_staticmacro.pas b/src/ce_staticmacro.pas index a122d666..357747af 100644 --- a/src/ce_staticmacro.pas +++ b/src/ce_staticmacro.pas @@ -5,7 +5,7 @@ unit ce_staticmacro; interface uses - Classes, Sysutils, SynEdit, SynEditAutoComplete, SynCompletion, + Classes, Sysutils, SynEdit, SynCompletion, ce_interfaces, ce_writableComponent, ce_synmemo; type @@ -53,13 +53,22 @@ type const macFname = 'staticMacros.txt'; - defMacros: array[0..5] of string = ( + defMacros: array[0..14] of string = ( '$a=auto', '$c=class {}', + '$e=enum {}', + '$it=interface {}', + '$im=import ', + '$pr=protected {}', + '$pu=public {}', + '$pv=private {}', '$s=struct {}', + '$t=template {}', + '$un=union{}', '$ut=unittest{}', '$fo=for(auto i = 0; ; )', - '$fe=foreach(elem; )' + '$fe=foreach(elem; )', + '$v=void (){}' ); var