Changesets can be listed by changeset number.
The Git repository is here.
Changeset 424
Gave up trying to figure out what was wrong with the YAML
syntax colouring engine this time and just wrote it off as
a bad job - the whole thing is commented out. It's not as
if many people browse the SVN tree anyway! We can most
definitely live without it.
- Comitted by: rool
- Date: Friday May 27 19:14:05 2011 (over 13 years ago)
Affected files:
rool/rails/collaboa/trunk/vendor/syntax/lib/syntax/lang/yaml.rb:
prev. | current | |
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 | ||
1 | # require 'syntax/lib/syntax' | |
2 | # | |
3 | # module Syntax | |
4 | # | |
5 | # # A simple implementation of an YAML lexer. It handles most cases. It is | |
6 | # # not a validating lexer. | |
7 | # class YAML < Tokenizer | |
8 | # | |
9 | # # Step through a single iteration of the tokenization process. This will | |
10 | # # yield (potentially) many tokens, and possibly zero tokens. | |
11 | # def step | |
12 | # if bol? | |
13 | # case | |
14 | # when scan(/---(\s*.+)?$/) | |
15 | # start_group :document, matched | |
16 | # when scan(/(\s*)([a-zA-Z][-\w]*)(\s*):/) | |
17 | # start_group :normal, subgroup(1) | |
18 | # start_group :key, subgroup(2) | |
19 | # start_group :normal, subgroup(3) | |
20 | # start_group :punct, ":" | |
21 | # when scan(/(\s*)-/) | |
22 | # start_group :normal, subgroup(1) | |
23 | # start_group :punct, "-" | |
24 | # when scan(/\s*$/) | |
25 | # start_group :normal, matched | |
26 | # when scan(/#.*$/) | |
27 | # start_group :comment, matched | |
28 | # else | |
29 | # append getch | |
30 | # end | |
31 | # else | |
32 | # case | |
33 | # when scan(/[\n\r]+/) | |
34 | # start_group :normal, matched | |
35 | # when scan(/[ \t]+/) | |
36 | # start_group :normal, matched | |
37 | # when scan(/!+(.*?^)?\S+/) | |
38 | # start_group :type, matched | |
39 | # when scan(/&\S+/) | |
40 | # start_group :anchor, matched | |
41 | # when scan(/\*\S+/) | |
42 | # start_group :ref, matched | |
43 | # when scan(/\d\d:\d\d:\d\d/) | |
44 | # start_group :time, matched | |
45 | # when scan(/\d\d\d\d-\d\d-\d\d\s\d\d:\d\d:\d\d(\.\d+)? [-+]\d\d:\d\d/) | |
46 | # start_group :date, matched | |
47 | # when scan(/['"]/) | |
48 | # start_group :punct, matched | |
49 | # scan_string matched | |
50 | # when scan(/:\w+/) | |
51 | # start_group :symbol, matched | |
52 | # when scan(/[:]/) | |
53 | # start_group :punct, matched | |
54 | # when scan(/#.*$/) | |
55 | # start_group :comment, matched | |
56 | # when scan(/>-?/) | |
57 | # start_group :punct, matched | |
58 | # start_group :normal, scan(/.*$/) | |
59 | # append getch until eos? || bol? | |
60 | # return if eos? | |
61 | # indent = check(/ */) | |
62 | # start_group :string | |
63 | # loop do | |
64 | # line = check_until(/[\n\r]|\Z/) | |
65 | # break if line.nil? || line.length.zero? | |
66 | # if line.chomp.length > 0 | |
67 | # this_indent = line.chomp.match( /^\s*/ )[0] | |
68 | # break if this_indent.length < indent.length | |
69 | # end | |
70 | # append scan_until(/[\n\r]|\Z/) | |
71 | # end | |
72 | # else | |
73 | # start_group :normal, scan_until(/(?=$|#)/) | |
74 | # end | |
75 | # end | |
76 | # end | |
77 | # | |
78 | # private | |
79 | # | |
80 | # def scan_string( delim ) | |
81 | # regex = /(?=[#{delim=="'" ? "" : "\\\\"}#{delim}])/ | |
82 | # loop do | |
83 | # text = scan_until( regex ) | |
84 | # if text.nil? | |
85 | # start_group :string, scan_until( /\Z/ ) | |
86 | # break | |
87 | # else | |
88 | # start_group :string, text unless text.empty? | |
89 | # end | |
90 | # | |
91 | # case peek(1) | |
92 | # when "\\" | |
93 | # start_group :expr, scan(/../) | |
94 | # else | |
95 | # start_group :punct, getch | |
96 | # break | |
97 | # end | |
98 | # end | |
99 | # end | |
100 | # | |
101 | # end | |
102 | # | |
103 | # SYNTAX["yaml"] = YAML | |
104 | # | |
105 | # end |