"Fossies" - the Fresh Open Source Software Archive

Member "wscite/oscript.properties" (11 Sep 2020, 7918 Bytes) of package /windows/misc/wscite445.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Defines SciTE settings for OScript sources; osx files and/or OSpace dumps.
    2 # OScript is a programming language used to develop applications for the
    3 # Livelink server platform.
    4 
    5 ##############################################################################
    6 # Specify file extension and lexer class.
    7 
    8 file.patterns.oscript=*.osx
    9 filter.oscript=OScript (osx)|$(file.patterns.oscript)|
   10 *filter.oscript=$(filter.oscript)
   11 lexer.$(file.patterns.oscript)=oscript
   12 
   13 ##############################################################################
   14 # Specify various editor parameters.
   15 
   16 word.chars.oscript=$(chars.alpha)$(chars.numeric)_$
   17 word.characters.$(file.patterns.oscript)=$(word.chars.oscript)
   18 
   19 #comment.block.at.line.start.oscript=1
   20 comment.block.oscript=//~
   21 #~ comment.stream.start.oscript=#ifdef DOC
   22 #~ comment.stream.end.oscript=#endif
   23 comment.stream.start.oscript=/*
   24 comment.stream.end.oscript=*/
   25 comment.box.start.oscript=/*
   26 comment.box.middle.oscript= *
   27 comment.box.end.oscript= */
   28 
   29 statement.indent.$(file.patterns.oscript)=6 case default else for if \
   30 repeat switch while
   31 statement.lookback.$(file.patterns.oscript)=20
   32 statement.end.$(file.patterns.oscript)=10 ;
   33 block.start.$(file.patterns.oscript)=10 if
   34 block.end.$(file.patterns.oscript)=10 end
   35 indent.maintain.$(file.patterns.oscript)=1
   36 indent.size.$(file.patterns.oscript)=4
   37 use.tabs.$(file.patterns.oscript)=1
   38 tab.size.$(file.patterns.oscript)=4
   39 
   40 preprocessor.symbol.$(file.patterns.oscript)=#
   41 preprocessor.start.$(file.patterns.oscript)=ifdef ifndef
   42 preprocessor.middle.$(file.patterns.oscript)=else
   43 preprocessor.end.$(file.patterns.oscript)=endif
   44 
   45 ##############################################################################
   46 # Specify API autocompletion and calltip help.
   47 
   48 api.$(file.patterns.oscript)=$(SciteDefaultHome)\api\oscript.api
   49 autocomplete.oscript.ignorecase=1
   50 calltip.oscript.ignorecase=1
   51 calltip.oscript.use.escapes=1
   52 calltip.oscript.word.characters=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$.
   53 
   54 ##############################################################################
   55 # Define keyword classes separately according to the language semantics
   56 # before grouping them to keywords for styling. OScript is not case-sensitive;
   57 # all keywords configured here must be entered in lower-case.
   58 
   59 # Language native value and reference types.
   60 keywordclass.type=\
   61 assoc boolean bytes date dynamic error extern file integer list long object \
   62 point real recarray record script string
   63 
   64 # Word-like (literal) operators (boolean).
   65 keywordclass.operator=\
   66 and eq ge gt le lt ne not or xor
   67 
   68 # Code-flow control statements.
   69 keywordclass.oscript.control=\
   70 break breakif by case continue continueif default downto else elseif end for \
   71 goto if in repeat switch to until while
   72 
   73 # Keywords to declare functions.
   74 keywordclass.function=\
   75 function return void
   76 
   77 # Various language native keywords and reserved words.
   78 keywordclass.miscellaneous=\
   79 dll inbyref inout linked nodebug super this xcmd xfcn
   80 
   81 # Constants with values and defaults for primitive types.
   82 keywordclass.constant=\
   83 false true undefined
   84 
   85 # Language native constants (type classification integers).
   86 keywordclass.coreconstant=\
   87 booleantype bytestype datatype dynamictype errortype externtype integertype \
   88 listtype longtype objecttype objreftype pointtype realtype scripttype \
   89 stringtype undefinedtype voidtype
   90 
   91 # Language native functions not bound to any object (global).
   92 keywordclass.corefunction=\
   93 datatypename echo echodebug echoerror echoinfo echostamp echowarn \
   94 getfeatures isdefined iserror isfeature isinvokable isnoterror isnotset \
   95 isobject isset isundefined length nparameters parameters pointh pointv type
   96 
   97 # Object types available in Livelink kernel and core modules.
   98 keywordclass.builtintype=\
   99 cachetree capiconnect capierr capilog capilogin compiler dapisession \
  100 dapinode dapiversion dapistream filecopy fileprefs frame javaobject \
  101 mailmessage pop3session smtpsession ssloptions patfind patchange regex \
  102 socket sqlconnection sqlcursor uapisession uapiuser wapisession wapimap \
  103 wapimaptask wapiwork wapisubwork domattr domcdatasection domcharacterdata \
  104 domcomment domdocument domdocumentfragment domdocumenttype domelement \
  105 domentity domentityreference domimplementation domnamednodemap domnode \
  106 domnodelist domnotation domparser domprocessinginstruction domtext saxparser \
  107 xslprocessor
  108 
  109 # Singletons available in Livelink kernel and core modules; they offer only
  110 # static methods to call.
  111 keywordclass.builtinobject=\
  112 capi dapi env global language logging math memcached otds pattern security \
  113 sql str system uapi vis wapi web zip
  114 
  115 # Keywords usable in WebLingo sources (HTML templates including OScript).
  116 keywordclass.weblingo=\
  117 call html oscript
  118 
  119 ##############################################################################
  120 # Define keyword groups that are recognized by the lexer and can be assigned
  121 # different styles.
  122 
  123 # Language native keywords: SCE_OSCRIPT_KEYWORD state.
  124 keywords.$(file.patterns.oscript)=$(keywordclass.oscript.control) \
  125 $(keywordclass.function) $(keywordclass.miscellaneous)
  126 
  127 # Constants: SCE_OSCRIPT_CONSTANT state.
  128 keywords2.$(file.patterns.oscript)=$(keywordclass.constant) \
  129 $(keywordclass.coreconstant)
  130 
  131 # Word-like (literal) operators: SCE_OSCRIPT_OPERATOR state.
  132 keywords3.$(file.patterns.oscript)=$(keywordclass.operator)
  133 
  134 # Value and reference (object) types: SCE_OSCRIPT_TYPE state.
  135 keywords4.$(file.patterns.oscript)=$(keywordclass.type) \
  136 $(keywordclass.builtintype)
  137 
  138 # Language native (global) functions: SCE_OSCRIPT_FUNCTION state.
  139 keywords5.$(file.patterns.oscript)=$(keywordclass.corefunction)
  140 
  141 # Core static objects: SCE_OSCRIPT_OBJECT state.
  142 keywords6.$(file.patterns.oscript)=$(keywordclass.builtinobject)
  143 
  144 ##############################################################################
  145 # Define Style definitions supported by the lexical states. There are multiple
  146 # states for language keyword groups although they all are reserved words; to
  147 # be able ot assign them different styles.
  148 
  149 # Default text style.
  150 style.oscript.0=
  151 # Single-line comment.
  152 style.oscript.1=$(colour.code.comment.line),$(font.code.comment.line)
  153 # Multi-line comment.
  154 style.oscript.2=$(colour.code.comment.box),$(font.code.comment.box)
  155 # Documentation comment; a text delimited by preprocessor directives
  156 # #ifdef DOC and #endif; the value of DOC is supposed to be never defined.
  157 style.oscript.3=$(colour.code.comment.doc),$(font.code.comment.doc)
  158 # Preprocessor directive.
  159 style.oscript.4=$(colour.preproc)
  160 # Number.
  161 style.oscript.5=$(colour.number)
  162 # String enclosed in single quotes (apostrophes).
  163 style.oscript.6=$(colour.string)
  164 # String enclosed in double quotes (quotation marks).
  165 style.oscript.7=$(colour.string)
  166 # Constant literal. See the property keywords2 above.
  167 style.oscript.8=fore:#FF7F3F
  168 # Identifier of a variable, an object or a script.
  169 style.oscript.9=
  170 # Server-global variable (prefixed by $).
  171 style.oscript.10=fore:#7F007F
  172 # Language native keyword or reserved word. See the property keywords above.
  173 style.oscript.11=$(colour.keyword),bold
  174 # Operator; either symbolic or literal. See the property keywords3 above.
  175 style.oscript.12=$(colour.operator),bold
  176 # Label to jump to with the GoTo statement.
  177 style.oscript.13=fore:#FF00FF
  178 # Type available in the language, in kernel or code modules.
  179 # See the property keywords4 above.
  180 style.oscript.14=fore:#00007F
  181 # Global function in the language, in kernel or code modules.
  182 # See the property keywords5 above.
  183 style.oscript.15=fore:#0000FF
  184 # Static built-in object. See the property keywords6 above.
  185 style.oscript.16=fore:#007F7F
  186 # Object property.
  187 style.oscript.17=
  188 # Object method.
  189 style.oscript.18=
  190 
  191 braces.oscript.style=12
  192 
  193 ##############################################################################
  194 # Specify help.
  195 
  196 if PLAT_WIN
  197 	command.help.$(file.patterns.oscript)=$(CurrentWord)!C:\LL971\builder\documentation.chm
  198 	command.help.subsystem.$(file.patterns.oscript)=4