File: matlab.jsf

package info (click to toggle)
joe 4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,308 kB
  • sloc: ansic: 51,623; sh: 4,358; makefile: 149; csh: 26
file content (97 lines) | stat: -rw-r--r-- 1,526 bytes parent folder | download | duplicates (3)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# joe Matlab syntax highlighting
# Created by Gustav Stenberg 2007-10-30
#

=Idle
=Ident
=Comment
=Keyword
=Number		+Constant
=String		+Constant
=Secondary	+Ident
=Error		+Bad
=Command	+Statement +Keyword

:idle Idle
	*		idle
	"%"		comment		recolor=-1
	"\'"		string		mark recolor=-1
	"a-zA-Z_." 	ident           buffer
	"!"		command		recolor=-1
	"([{"		parent		buffer
	"0-9"		first_digit	recolor=-1

:command Command
	*		command
	"\n"		idle

:comment Comment comment
	*		comment
	"BFHNTX"	comment		noeat call=comment_todo.comment_todo()
	"\n"		idle

:keyword Keyword
	*		idle		noeat

:keywordc Keyword
	*		comment
	"\n"		idle

:parent Idle
	*		parent
	")]}"		idle

:string Error
	*		string
	"\'"		stringdone	recolormark recolor=-1
	"\n"		idle

:stringdone String string
	*		idle		recolor=-1

:first_digit Number
	*		idle		noeat
	"."		float
	"eE"		epart
	"0-9"		first_digit
	
:float Number
	*		idle		noeat
	"eE"		epart
	"0-9"		float

:epart Number
	*		idle		noeat
	"0-9+\-"	enum

:enum Number
	*		idle		noeat
	"0-9"		enum

:secondary Secondary
	*		idle		noeat
	"a-zA-Z_0-9. "  secondary
	"\n;:=!\"\'+-,*(){}[]&\\\|/~"	idle recolor=-1

:ident Ident
	*		secondary	noeat strings
	"..."		keywordc
	"break"		keyword
	"case"		keyword
	"catch"		keyword
	"continue"	keyword
	"else"		keyword
	"elseif"	keyword
	"end"		keyword
	"for"		keyword
	"function"	keyword
	"global"	keyword
	"if"		keyword
	"otherwise"	keyword
	"persistent"	keyword
	"return"	keyword
	"switch"	keyword
	"try"		keyword
	"while"		keyword
done
	"a-zA-Z0-9_."   ident