File: AllStyles.rb

package info (click to toggle)
codequery 1.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,860 kB
  • sloc: cpp: 151,420; xml: 16,576; python: 5,602; ansic: 5,487; makefile: 559; perl: 496; ruby: 209; sql: 194; sh: 106; php: 53; vhdl: 51; erlang: 47; objc: 22; lisp: 18; cobol: 18; modula3: 17; asm: 14; fortran: 12; ml: 11; tcl: 6
file content (118 lines) | stat: -rw-r--r-- 1,645 bytes parent folder | download | duplicates (2)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Enumerate all styles where possible: 0..31,40..45
# 30,31,40,45 are never set and 1 switches rest of file to error state

#0 whitespace
    #
	#

#1:error, can be set with a heredoc delimiter >256 characters but that can't be recovered from
#<<ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789

#2:comment line

#3:POD
=begin
3:POD
=end

#4:number
4

#5:word
super

#6:string
"6:double quotes"

#7:single quoted string
'7:single quotes'

#8:class name
class ClassName end

#9:def name
def Function end

#10:operator
&

#11:identifier
identifier

#12:regex
/[12a-z]/

#13:global
$global13

#14:symbol
:symbol14

#15:module name
module Module15 end

#16:instance var
@instance16

#17:class var
@@class17

#18:back ticks
`18`

#19:data section at end of file

#20:here delimiter
<<DELIMITER20
DELIMITER20

#21:single quoted heredoc
<<'D'
21:here doc #{1 + 1}
D

#22:double quoted heredoc
<<"D"
22:here doc #{1 + 1}
D

#23:back tick quoted heredoc
<<`D`
23:here doc #{1 + 1}
D

#24:q quoted string
%q!24:quotes's!

#25:Q quoted string
%Q!25:quotes"s!

#26:executed string
%x(echo 26)

#27:regex
%r(27[a-z]/[A-Z]+)

#28:interpolable string array
%W(28 cgi.rb complex.rb date.rb #{1} )

#29:demoted keyword do
while 1 do end

# 30,31,40,45 never set

#41:non-interpolable string array
%w(#{1 + 1})

#42:non-interpolable symbol array
%i(#{1 + 1})

#43:interpolable symbol array
%I(#{1 + 1})

#44:symbol
%s(#{1 + 1})

#19:data section
__END__