"Fossies" - the Fresh Open Source Software Archive

Member "wscite/caml.properties" (11 Sep 2020, 5435 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 #	Define SciTE settings for Objective Caml, Standard ML 97 files
    2 #
    3 #	To use with Standard ML source in .ml files, select Standard ML
    4 #	from the SciTE Language menu (or adjust the properties below).
    5 #
    6 # To fully enable this Scintilla lexer, make sure the following entries
    7 #	are present and uncommented in your SciTE properties:
    8 #
    9 #		$(filter.caml)\
   10 #		$(filter.sml)\
   11 #
   12 #		Objective Caml|ml||\
   13 #		Standard ML|sml||\
   14 #
   15 #		import caml
   16 
   17 # OCaml/SML implementation and interface files
   18 file.patterns.caml=*.ml;*.mli
   19 file.patterns.sml=*.sml
   20 
   21 *filter.objectivecaml=$(filter.caml)
   22 
   23 filter.caml=Objective Caml (ml mli)|$(file.patterns.caml)|
   24 filter.sml=Standard ML 97 (sml ml)|$(file.patterns.sml)|
   25 
   26 lexer.*.caml=caml
   27 lexer.$(file.patterns.caml)=caml
   28 lexer.$(file.patterns.sml)=caml
   29 
   30 #*language.objectivecaml=Objective Caml|ml||
   31 
   32 # the line below is ONLY used as part of "external" lexer support
   33 #lexerpath.$(file.patterns.caml)=LexCaml.dll
   34 #lexerpath.$(file.patterns.sml)=LexCaml.dll
   35 
   36 # the standard Objective Caml 3.09/3.10/3.11 language "textual" keywords
   37 keywordstandard.caml= \
   38 and as assert asr begin class \
   39 constraint do done downto else end \
   40 exception external false for fun function \
   41 functor if in include inherit initializer \
   42 land lazy let lor lsl lsr \
   43 lxor match method mod module mutable \
   44 new object of open or private \
   45 rec sig struct then to true \
   46 try type val virtual when while \
   47 with
   48 keywords.$(file.patterns.caml)=$(keywordstandard.caml)
   49 
   50 # the standard Standard ML '97 language "textual" keywords
   51 keywordstandard.sml= \
   52 abstype andalso and as case datatype div do \
   53 else end eqtype exception \
   54 false fn fun functor handle if infixr infix include in let local \
   55 mod nonfix not of open op orelse raise rec \
   56 sharing signature sig structure struct then true type use \
   57 val while withtype with
   58 keywords.$(file.patterns.sml)=$(keywordstandard.sml)
   59 
   60 # "optional" Objective Caml / library keywords; some suggested entries are here,
   61 # more could come from, say, Pervasives ('parser' is from Camlp4)
   62 keywordoptional1.caml= \
   63 option Some None ignore ref lnot succ pred parser
   64 keywords2.$(file.patterns.caml)=$(keywordoptional1.caml)
   65 
   66 # "optional" Standard ML '97 / library keywords; some suggested entries are here,
   67 # more could come from, say, Standard Basis Library
   68 keywordoptional1.sml= \
   69 option SOME NONE ignore ref \
   70 chr explode implode ord size
   71 keywords2.$(file.patterns.sml)=$(keywordoptional1.sml)
   72 
   73 # "optional" Objective Caml / library keywords; some suggested entries are here,
   74 # more could come from, say, user-defined types
   75 keywordoptional2.caml= \
   76 array bool char float int list string unit
   77 keywords3.$(file.patterns.caml)=$(keywordoptional2.caml)
   78 
   79 # "optional" Standard ML '97 / library keywords; some suggested entries are here,
   80 # more could come from, say, user-defined types
   81 keywordoptional2.sml= \
   82 array bool char int list nil real string unit vector word
   83 keywords3.$(file.patterns.sml)=$(keywordoptional2.sml)
   84 
   85 word.characters.$(file.patterns.caml)=$(chars.alpha)$(chars.numeric)_'`
   86 word.characters.$(file.patterns.sml)=$(chars.alpha)$(chars.numeric)_'
   87 
   88 comment.stream.start.caml=(*
   89 comment.stream.end.caml=*)
   90 comment.box.start.caml=(*
   91 comment.box.middle.caml= *
   92 comment.box.end.caml= *)
   93 
   94 # "folding" support not currently implemented
   95 
   96 # "Out-of-the-box" syntax colors are defined here - I like having
   97 # my literals (number, char, and string), tag-names, and "optional"
   98 # keywords stand out - you might not, so adjust accordingly!
   99 # Default
  100 style.caml.32=$(font.base)
  101 # White space
  102 style.caml.0=fore:#808080
  103 # Identifiers
  104 style.caml.1=
  105 # Tag-names
  106 #style.caml.2=
  107 style.caml.2=fore:#000000,back:#ffe0ff
  108 # Keywords (builtin language-defined keywords)
  109 style.caml.3=$(colour.keyword),bold
  110 # Keywords2 (season to taste - use for option, Some, None, etc)
  111 #style.caml.4=
  112 style.caml.4=fore:#000000,back:#e0e0ff
  113 # Keywords3 (season to taste - use for bool, char, float, etc)
  114 #style.caml.5=
  115 #style.caml.5=fore:#000000,back:#ffe0e0
  116 style.caml.5=fore:#a0000,bold
  117 # Linenum directive
  118 style.caml.6=back:#C0C0C0,$(font.base)
  119 # Operators
  120 style.caml.7=$(colour.operator),bold
  121 # Number
  122 #style.caml.8=$(colour.number)
  123 style.caml.8=fore:#000000,back:#ffff00
  124 # Single quoted string (character constant)
  125 #style.caml.9=$(colour.char)
  126 style.caml.9=fore:#000000,back:#ffff00
  127 # Embedded whitespace (SML character/string constant)
  128 #style.caml.10=
  129 style.caml.10=fore:#000000,back:#e0e0e0
  130 # Double quoted string (string constant)
  131 #style.caml.11=$(colour.string)
  132 style.caml.11=fore:#000000,back:#ffff00
  133 # Comment (NOT nested)
  134 style.caml.12=$(colour.code.comment.box),$(font.code.comment.box)
  135 # Comment (SINGLY nested)
  136 #style.caml.13=$(colour.code.comment.box),$(font.code.comment.box)
  137 style.caml.13=$(colour.embedded.comment),$(font.code.comment.box)
  138 # Comment (DOUBLY nested)
  139 #style.caml.14=$(colour.code.comment.box),$(font.code.comment.box)
  140 style.caml.14=$(colour.embedded.comment),$(font.code.comment.box)
  141 # Comment (TRIPLY nested)
  142 #style.caml.15=$(colour.code.comment.box),$(font.code.comment.box)
  143 style.caml.15=$(colour.embedded.comment),$(font.code.comment.box)
  144 
  145 # Braces are only matched in operator style
  146 braces.caml.style=7
  147 
  148 # The below command(s) can and should be adjusted to reflect your environment;
  149 # in addition, per-directory overrides are possible, so that project-specific "build"
  150 # commands may be used for more complex cases - see the SciTE documentation.
  151 command.compile.$(file.patterns.caml)=ocamlc -c $(FileNameExt)