Diff of /syntax/classic_pascal.jsf.in [000000] .. [409b67]  Maximize  Restore

Switch to unified view

a b/syntax/classic_pascal.jsf.in
1
# PASCAL highlighter for JOE
2
3
=Idle
4
=Comment green
5
=Constant cyan
6
=Type bold
7
=Keyword bold
8
=Operator bold
9
=Function bold
10
11
:idle Idle
12
  *       idle
13
  "a-zA-Z"    ident       buffer
14
  "("     maybe_comment
15
  "{"     comment     recolor=-1
16
  "'"     string      recolor=-1
17
  "0-9"       number      recolor=-1 
18
19
# Comments
20
21
:maybe_comment Idle
22
  *       idle        noeat
23
  "*"     comment     recolor=-2
24
25
:comment Comment
26
  *       comment
27
  "*"     maybe_end_comment
28
  "}"     idle
29
30
:maybe_end_comment Comment
31
  *       comment     noeat
32
  ")"     idle
33
34
35
# String constant
36
37
:string Constant
38
  *       string
39
  "\n"        idle
40
  "'"     maybe_end_string
41
42
:maybe_end_string Constant
43
  *       idle        recolor=-1 noeat
44
  "'"     string
45
46
# Numeric constant
47
48
:number Constant
49
  *       idle        noeat
50
  "0-9"       number
51
  "eE"        epart
52
  "."     dot
53
54
:dot Constant
55
  *       idle    noeat
56
  "0-9"       float
57
58
:float Constant
59
  *       idle    noeat
60
  "eE"        epart
61
  "0-9"       float
62
63
:epart Constant
64
  *       idle    noeat
65
  "0-9+\-"    enum
66
67
:enum Constant
68
  *       idle    noeat
69
  "0-9"       enum
70
71
72
# Keywords
73
74
:ident Idle
75
  *       idle        noeat istrings
76
  "and"       operator
77
  "array"     type
78
  "begin"     kw
79
  "case"      kw
80
  "const"     kw
81
  "div"       operator
82
  "do"        kw
83
  "downto"    kw
84
  "else"      kw
85
  "end"       kw
86
  "file"      kw
87
  "for"       kw
88
  "function"  kw
89
  "goto"      kw
90
  "if"        kw
91
  "in"        kw
92
  "label"     kw
93
  "mod"       operator
94
  "nil"       word_constant
95
  "not"       operator
96
  "of"        kw
97
  "or"        operator
98
  "packed"    kw
99
  "procedure" kw
100
  "program"   kw
101
  "record"    kw
102
  "repeat"    kw
103
  "set"       kw
104
  "then"      kw
105
  "to"        kw
106
  "type"      kw
107
  "until"     kw
108
  "var"       kw
109
  "while"     kw
110
  "with"      kw
111
  "integer"   type
112
  "boolean"   type
113
  "real"      type
114
  "char"      type
115
  "string"    type
116
  "text"      type
117
  "abs"       function
118
  "atan"      function
119
  "arctan"    function
120
  "concat"    function
121
  "cos"       function
122
  "eof"       function
123
  "eoln"      function
124
  "exp"       function
125
  "insert"    function
126
  "length"    function
127
  "ln"        function
128
  "log"       function
129
  "odd"       function
130
  "ord"       function
131
  "page"      function
132
  "pred"      function
133
  "round"     function
134
  "sin"       function
135
  "sqr"       function
136
  "sqrt"      function
137
  "succ"      function
138
  "trun"      function
139
done
140
  "a-zA-Z0-9_"    ident
141
142
:kw Keyword
143
  *   idle    noeat
144
145
:type Type
146
  *   idle    noeat
147
148
:operator Operator
149
  *   idle    noeat
150
151
:word_constant Constant
152
  *   idle    noeat
153
154
:function Function
155
  *   idle    noeat

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks