summaryrefslogtreecommitdiff
path: root/support/context/Highlighters/Scala.chl
blob: 328f19ac93aabb10af70341dae60ca3b3bed41bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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

OverrideTxtFgColor:     0