diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-16 15:33:49 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-16 15:33:49 +0000 |
commit | 3ef0d0f9e06327481b50bfc8fdbdca300431953a (patch) | |
tree | 42327164fbe18e8d61a839142e2fb2138980da17 /support/context | |
parent | aa5ba627f3c5cbc6973821c7751d7eb67ccdf27d (diff) | |
download | scala-3ef0d0f9e06327481b50bfc8fdbdca300431953a.tar.gz scala-3ef0d0f9e06327481b50bfc8fdbdca300431953a.tar.bz2 scala-3ef0d0f9e06327481b50bfc8fdbdca300431953a.zip |
Changed EOL flag of all files to be consistent.
Diffstat (limited to 'support/context')
-rw-r--r-- | support/context/Highlighters/Scala.chl | 160 | ||||
-rw-r--r-- | support/context/README | 48 | ||||
-rw-r--r-- | support/context/Template/Scala.ctpl | 150 |
3 files changed, 179 insertions, 179 deletions
diff --git a/support/context/Highlighters/Scala.chl b/support/context/Highlighters/Scala.chl index 328f19ac93..f4690d0a5e 100644 --- a/support/context/Highlighters/Scala.chl +++ b/support/context/Highlighters/Scala.chl @@ -1,81 +1,81 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Scala highlighter written by Stephane Micheloud, scala.epfl.ch -// -////////////////////////////////////////////////////////////////////////////// - -Language: Scala -Filter: Scala files (*.scala)|*.scala -Description: Scala highlighter written by Stephane Micheloud - scala.epfl.ch -HelpFile: -CaseSensitive: 1 -LineComment: // -BlockCommentBeg: /* -BlockCommentEnd: */ -BlockAutoindent: 0 -BlockBegStr: { -BlockEndStr: } -IdentifierBegChars: a..z A..Z _ ` -IdentifierChars: a..z A..Z _ 0..9 ` -NumConstBegChars: 0..9 +- -NumConstChars: 0..9 a..f A..F x X . -EscapeChar: \ - -// keywords (see Scala specification, section 1.1) -KeyWords1: abstract case catch class def do else extends false - final finally for if implicit import match requires - new null object override package private protected - return sealed super this throw trait true try type - val var while with yield - -// special characters (see Scala specification, section 1.1) -KeyWords2: _ : = => <- <: >: # @ - -// standard library objects and classes (see Scala API documentation) -KeyWords3: Any AnyVal Application Array ArrayBuffer Atom - Attribute - BitSet Boolean Buffer Byte - Cell Char Comment Console Double - Elem EntityRef Enumeration Float - HashMap HashSet HashTable History - Int Iterable Iterator - ListMap ListSet Long List Location - Map Message MetaData MultiMap - Nil Node NodeBuffer NodeSeq None Null Option - Ordered Predef Queue - ScalaObject Scriptable Seq Set Short Some Stack - Stream Symbol - Text TextBuffer Tree TreeMap TreeSet - Unit XML - -// standard attribute classes -KeyWords4: cloneable serializable transcient volatile - -KeyWords5: - -StringBegChar: " -StringEndChar: " -MultilineStrings: 0 -UsePreprocessor: 0 -CurrLineHighlighted: 1 - -// 1st value is foreground color, 2nd value is background color -// (see color list in vbScript.chl) and 3rd value (optional) represents -// font attribute (B=bold, I=italic, U=underline, S=strike out) -SpaceCol: clWindowText clWindow -Keyword1Col: clBlack clWindow B -Keyword2Col: clBlack clWindow -Keyword3Col: clMaroon clWindow B -Keyword4Col: clBlue clWindow B -Keyword5Col: clMaroon clWindow B -IdentifierCol: clWindowText clWindow -CommentCol: clGreen clWindow I -NumberCol: clNavy clWindow B -StringCol: clRed clWindow -SymbolCol: clWindowText clWindow -PreprocessorCol: clBlue clWindow -SelectionCol: clWhite clNavy -CurrentLineCol: clBlack clYellow -MatchedBracesCol: clWindowText clWindow - +//////////////////////////////////////////////////////////////////////////////
+//
+// Scala highlighter written by Stephane Micheloud, scala.epfl.ch
+//
+//////////////////////////////////////////////////////////////////////////////
+
+Language: Scala
+Filter: Scala files (*.scala)|*.scala
+Description: Scala highlighter written by Stephane Micheloud - scala.epfl.ch
+HelpFile:
+CaseSensitive: 1
+LineComment: //
+BlockCommentBeg: /*
+BlockCommentEnd: */
+BlockAutoindent: 0
+BlockBegStr: {
+BlockEndStr: }
+IdentifierBegChars: a..z A..Z _ `
+IdentifierChars: a..z A..Z _ 0..9 `
+NumConstBegChars: 0..9 +-
+NumConstChars: 0..9 a..f A..F x X .
+EscapeChar: \
+
+// keywords (see Scala specification, section 1.1)
+KeyWords1: abstract case catch class def do else extends false
+ final finally for if implicit import match requires
+ new null object override package private protected
+ return sealed super this throw trait true try type
+ val var while with yield
+
+// special characters (see Scala specification, section 1.1)
+KeyWords2: _ : = => <- <: >: # @
+
+// standard library objects and classes (see Scala API documentation)
+KeyWords3: Any AnyVal Application Array ArrayBuffer Atom
+ Attribute
+ BitSet Boolean Buffer Byte
+ Cell Char Comment Console Double
+ Elem EntityRef Enumeration Float
+ HashMap HashSet HashTable History
+ Int Iterable Iterator
+ ListMap ListSet Long List Location
+ Map Message MetaData MultiMap
+ Nil Node NodeBuffer NodeSeq None Null Option
+ Ordered Predef Queue
+ ScalaObject Scriptable Seq Set Short Some Stack
+ Stream Symbol
+ Text TextBuffer Tree TreeMap TreeSet
+ Unit XML
+
+// standard attribute classes
+KeyWords4: cloneable serializable transcient volatile
+
+KeyWords5:
+
+StringBegChar: "
+StringEndChar: "
+MultilineStrings: 0
+UsePreprocessor: 0
+CurrLineHighlighted: 1
+
+// 1st value is foreground color, 2nd value is background color
+// (see color list in vbScript.chl) and 3rd value (optional) represents
+// font attribute (B=bold, I=italic, U=underline, S=strike out)
+SpaceCol: clWindowText clWindow
+Keyword1Col: clBlack clWindow B
+Keyword2Col: clBlack clWindow
+Keyword3Col: clMaroon clWindow B
+Keyword4Col: clBlue clWindow B
+Keyword5Col: clMaroon clWindow B
+IdentifierCol: clWindowText clWindow
+CommentCol: clGreen clWindow I
+NumberCol: clNavy clWindow B
+StringCol: clRed clWindow
+SymbolCol: clWindowText clWindow
+PreprocessorCol: clBlue clWindow
+SelectionCol: clWhite clNavy
+CurrentLineCol: clBlack clYellow
+MatchedBracesCol: clWindowText clWindow
+
OverrideTxtFgColor: 0
\ No newline at end of file diff --git a/support/context/README b/support/context/README index b2e4d1b284..f73012f016 100644 --- a/support/context/README +++ b/support/context/README @@ -1,24 +1,24 @@ -* Introduction - -This directory contains an additional highlighter (.chl) for -Scala programs. - -More information about ConTEXT (Windows only) is available from: - - http://www.context.cx/ - -* Installation - -Copy the file "Scala.chl" to the following location: - - <ConTEXT_instdir>/Highlighters/ - -Restart the ConTEXT text editor. - -* Thanks - -Scala.chl was contributed by Stephane Micheloud (scala.epfl.ch) - -* Version - -$Id$ +* Introduction
+
+This directory contains an additional highlighter (.chl) for
+Scala programs.
+
+More information about ConTEXT (Windows only) is available from:
+
+ http://www.context.cx/
+
+* Installation
+
+Copy the file "Scala.chl" to the following location:
+
+ <ConTEXT_instdir>/Highlighters/
+
+Restart the ConTEXT text editor.
+
+* Thanks
+
+Scala.chl was contributed by Stephane Micheloud (scala.epfl.ch)
+
+* Version
+
+$Id$
diff --git a/support/context/Template/Scala.ctpl b/support/context/Template/Scala.ctpl index ed5486f70f..a702edc878 100644 --- a/support/context/Template/Scala.ctpl +++ b/support/context/Template/Scala.ctpl @@ -1,75 +1,75 @@ -[class | Scala class template] -class |MyClass { - -} - -[def | function definition] -def |myFunc(): = { -} - -[exit | System.exit] -System.exit(|); - -[for | for comprehensions] -for (val i <- |) {} - -[if | if expression] -if (|) { - -} - -[ife | if-else expression] -if (|) { - -} -else { - -} - -[main | Scala program template] -object |Main { - - /** Code documentation here */ - def main(args: Array[String]): Unit = { - /* multi-line and semi-line comments here */ - // one-line comments here - Console.println("Hello, world"); - } - -} - -[match | match expression] -| match { - case => - case _ => -} - -[Pair | Pair object] -Pair(|, ) - -[println | Console.println] -Console.println(|); - -[trait | Scala trait template] -trait |MyTrait { -} - -[try | try-catch block] -try { - | -} -catch { - case e: Exception => - Console.println("Unexpected exception"); - e.printStackTrace(); -} - -[val | value definition] -val | = ; - -[while | while block] -var i=0; -while (i < |) { - - i = i + 1; -} +[class | Scala class template]
+class |MyClass {
+
+}
+
+[def | function definition]
+def |myFunc(): = {
+}
+
+[exit | System.exit]
+System.exit(|);
+
+[for | for comprehensions]
+for (val i <- |) {}
+
+[if | if expression]
+if (|) {
+
+}
+
+[ife | if-else expression]
+if (|) {
+
+}
+else {
+
+}
+
+[main | Scala program template]
+object |Main {
+
+ /** Code documentation here */
+ def main(args: Array[String]): Unit = {
+ /* multi-line and semi-line comments here */
+ // one-line comments here
+ Console.println("Hello, world");
+ }
+
+}
+
+[match | match expression]
+| match {
+ case =>
+ case _ =>
+}
+
+[Pair | Pair object]
+Pair(|, )
+
+[println | Console.println]
+Console.println(|);
+
+[trait | Scala trait template]
+trait |MyTrait {
+}
+
+[try | try-catch block]
+try {
+ |
+}
+catch {
+ case e: Exception =>
+ Console.println("Unexpected exception");
+ e.printStackTrace();
+}
+
+[val | value definition]
+val | = ;
+
+[while | while block]
+var i=0;
+while (i < |) {
+
+ i = i + 1;
+}
|