File: css.jsf

package info (click to toggle)
joe 3.7-2.3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,304 kB
  • sloc: ansic: 34,071; sh: 3,426; makefile: 138
file content (102 lines) | stat: -rw-r--r-- 1,577 bytes parent folder | download | duplicates (7)
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
98
99
100
101
102
# JOE syntax highlight file for CSS
# by Eric Lin

-

# Define colors

=Idle
=Comment 	green
=Class 	cyan
=Id red
=Tag  magenta
=Keyword  bold
=HTML

:begin Idle
	*	begin	noeat call=.css()

#
# For <style> in html
#

.subr css

:reset HTML
	*		  reset
	"<"	maybe_done
	"/"		slash
	"#"   id_block recolor=-1
	"."   class_block recolor=-1
	"a-zA-Z"  tag_block recolor=-1

:maybe_done HTML
	*	reset noeat
	"/"	reset noeat return recolor=-2

:slash Idle
	*		reset		noeat
	"*"		comment		recolor=-2

:comment Comment
	*		comment
	"*"		maybe_end_comment

:maybe_end_comment Comment
	*		comment
	"/"		reset
	"*"		maybe_end_comment

:id_block Id
  *   id_block
  " " id_block_reset
  "{" style_block recolor=-1

:id_block_reset Idle
  *   id_block
  "a-zA-Z"  tag_block recolor=-1
  "." class_block recolor=-1
  "#" id_block  recolor=-1
  "{" style_block recolor=-1
   
:class_block  Class
  *   class_block
  " " tag_block
  "{" style_block recolor=-1
  
:tag_block  Tag 
  *   tag_block
  "{" style_block recolor=-1
  "," tag_sep recolor=-1
  
:tag_sep  Idle
  * tag_block recolor=-1

:style_block  Idle
  * style_block
  "}" reset
  "/" maybe_style_comment
  "a-zA-Z-"  style_word  recolor=-1

:style_word Keyword
  * style_word
  ":" style_value  recolor=-1

:style_value Idle
  * style_value
  ";" style_block 
  
:maybe_style_comment  Idle
  * style_block recolor=-1
  "*" style_comment recolor=-2

:style_comment  Comment
  *   style_comment
  "*" maybe_end_style_comment
  
:maybe_end_style_comment  Comment
  *   comment
  "/" style_block
  "*" maybe_end_style_comment
  
.end