# Define SciTE settings for D files. file.patterns.dmd=*.d;*.dmd filter.dmd=D (*.d)|$(file.patterns.dmd)| file.patterns.braces=$(file.patterns.dmd) lexer.$(file.patterns.dmd)=cpp # keywords keywordclass.dmd=this super assert null true false cast new delete throw \ module template void byte ubyte short ushort int uint long ulong \ float double real bit char wchar dchar ifloat idouble ireal cfloat cdouble \ creal function delegate if else while for foreach do switch case default break continue \ synchronized return goto try catch finally with asm struct class interface \ union enum import static virtual final const typedef alias override \ abstract volatile debug deprecated in out inout auto align extern private \ protected public export body invariant unittest version pragma typeid \ typeof is mixin keywords.$(file.patterns.dmd)=$(keywordclass.dmd) # operator overload functions keywords2.$(file.patterns.dmd)=opNeg opCom opPostInc opPostDec \ opAdd opSub opMul opDiv ,pMod opAnd opOr opXor opShl opShr opUShr \ opCat opEquals opCmp opAddAssign opSubAssign opMulAssign opDivAssign \ opModAssign opAndAssign opOrAssign opXorAssign opShlAssign opShrAssign \ opUShrAssign opCatAssign opIndex opSlice opCall opApply \ instance bool # instance is going to disappear from D soon, so make it visible # keywords3 is for doc comment keywords, highlighted in style 17 #CPP doxygen keywords3.$(file.patterns.dmd)=a addindex addtogroup anchor arg attention \ author b brief bug c class code date def defgroup deprecated dontinclude \ e em endcode endhtmlonly endif endlatexonly endlink endverbatim enum example exception \ f$ f[ f] file fn hideinitializer htmlinclude htmlonly \ if image include ingroup internal invariant interface latexonly li line link \ mainpage name namespace nosubgrouping note overload \ p page par param post pre ref relates remarks return retval \ sa section see showinitializer since skip skipline struct subsection \ test throw todo typedef union until \ var verbatim verbinclude version warning weakgroup $ @ \ & < > # { } word.chars.dmd=$(chars.alpha)$(chars.numeric)_# word.characters.$(file.patterns.dmd)=$(word.chars.dmd) comment.block.dmd=//~ #comment.block.at.line.start.cpp=1 comment.stream.start.dmd=/* comment.stream.end.dmd=*/ comment.box.start.dmd=/* comment.box.middle.dmd= * comment.box.end.dmd= */ fold.comment=1 fold.preprocessor=1 statement.indent.$(file.patterns.dmd)=5 case catch class default do else for if \ finally private protected public struct try union while statement.end.$(file.patterns.dmd)=10 ; statement.lookback.$(file.patterns.dmd)=20 block.start.$(file.patterns.dmd)=10 { block.end.$(file.patterns.dmd)=10 } #autocomplete.cpp.fillups=( # no preprocessor in D #styling.within.preprocessor=1 #preprocessor.symbol.$(file.patterns.dmd)=# #preprocessor.start.$(file.patterns.dmd)=if ifdef ifndef #preprocessor.middle.$(file.patterns.dmd)=else elif #preprocessor.end.$(file.patterns.dmd)=endif # D styles # Default style.dmd.32=$(font.base) # White space style.dmd.0=fore:#808080 # Comment style.dmd.1=$(colour.code.comment.box),$(font.code.comment.box) # Line Comment style.dmd.2=$(colour.code.comment.line),$(font.code.comment.line) # Doc comment style.dmd.3=$(colour.code.comment.doc),$(font.code.comment.doc) # Number style.dmd.4=$(colour.number) # Keyword style.dmd.5=$(colour.keyword),bold # Double quoted string style.dmd.6=$(colour.string) # Single quoted string style.dmd.7=$(colour.char) # UUIDs (only in IDL) style.dmd.8=fore:#804080 # Preprocessor style.dmd.9=$(colour.preproc) # Operators style.dmd.10=$(colour.operator),bold # Identifiers style.dmd.11= # End of line where string is not closed style.dmd.12=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled # Verbatim strings for C# style.dmd.13=fore:#007F00,$(font.monospace),back:#E0FFE0,eolfilled # Regular expressions for JavaScript style.dmd.14=fore:#3F7F3F,$(font.monospace),back:#E0F0FF,eolfilled # Doc Comment Line style.dmd.15=$(colour.code.comment.doc),$(font.code.comment.doc) # Keywords2 style.dmd.16=fore:#B00040 # Comment keyword style.dmd.17=fore:#3060A0,$(font.code.comment.doc) # Comment keyword error style.dmd.18=fore:#804020,$(font.code.comment.doc) # Braces are only matched in operator style braces.dmd.style=10 dc=dmd -g $(FileNameExt) command.compile.*.d=$(dc) command.build.*.d= command.go.*.d=$(FileName).exe # To make the Go command both compile (if needed) and execute, use this setting: #command.go.needs.*.c=g++ $(FileNameExt) -o $(FileName) # Commented out, not sure what significance it has to D at this stage #command.name.0.*.cxx=Indent #command.0.*.cxx=astyle -tapO $(FileNameExt) #command.is.filter.0.*.cxx=1 #command.name.1.*.cxx=Lint #command.1.*.cxx=g++ -W -Wall -Wshadow -Wwrite-strings -Wold-style-cast \ # -Woverloaded-virtual -pedantic -Os -fno-exceptions -fvtable-thunks -c $(FileNameExt) #command.name.2.*.cxx=Execute Selection #command.2.*.cxx=$(CurrentSelection)