forked from gpellis/ThinkOrSwim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththinkscript.el
51 lines (50 loc) · 966 Bytes
/
thinkscript.el
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
(require 'generic-x)
(define-generic-mode 'thinkscript-mode ;; name of the mode to create
'("#") ;; comments start with '!!'
'("above"
"ago"
"and"
"bar"
"bars"
"below"
"between"
"case"
"crosses"
"declare"
"def"
"default"
"do"
"else"
"equal"
"equals"
"false"
"fold"
"from"
"greater"
"if"
"input"
"is"
"less"
"no"
"not"
"or"
"plot"
"profile"
"rec"
"reference"
"script"
"switch"
"than"
"then"
"to"
"true"
"while"
"with"
"within"
"yes") ;; some keywords
'(("=" . 'font-lock-operator) ;; '=' is an operator
(";" . 'font-lock-builtin)) ;; ';' is a built-in
'(".thinkscript\\'") ;; files for which to activate this mode
nil ;; other functions to call
"A mode for thinkscript files" ;; doc string for this mode
)