From 3f5cc3ae69ecad6a6909aad4b553eb958241dd14 Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 18 Oct 2006 21:48:17 +0000 Subject: Ruby scanner: #{...} delimiters are now :inline_delimiter to solve CSS problem. New token: :inline_delimiter Scanner tests suite revamped: colorization, split up into methods. --- test/scanners/ruby/evil.expected.raydebug | 46 +++++++++++++++---------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'test/scanners/ruby/evil.expected.raydebug') diff --git a/test/scanners/ruby/evil.expected.raydebug b/test/scanners/ruby/evil.expected.raydebug index 5518de0..cca15dd 100644 --- a/test/scanners/ruby/evil.expected.raydebug +++ b/test/scanners/ruby/evil.expected.raydebug @@ -376,7 +376,7 @@ reserved(def) method(bill)operator(()ident(x)operator(\)) ident(x) reserved(end) ident(p)operator(()ident(bob) stringoperator(\)) reserved(for) ident(bob) reserved(in) operator([)integer(100)operator(]) reserved(do) ident(p)operator(()ident(bob) stringoperator(\)) reserved(end) ident(p)operator(()ident(bob) stringoperator(\)) -reserved(def) method(%)operator(()ident(n)operator(\)) ident(to_s)operator(+)stringdelimiter(")> reserved(end) +reserved(def) method(%)operator(()ident(n)operator(\)) ident(to_s)operator(+)stringdelimiter(")> reserved(end) ident(p)operator(()ident(bill) stringoperator(\)) reserved(begin) ident(sdjkfsjkdfsd)operator(;) reserved(rescue) constant(Object) operator(=)operator(>) ident(bill)operator(;) ident(p)operator(()ident(bill) stringoperator(\)) reserved(end) ident(p)operator(()ident(bill) stringoperator(\)) @@ -386,7 +386,7 @@ reserved(class) class(Object) ident(public) symbol(:`) reserved(def) method(`)operator(()ident(s)operator(\)) - ident(print) stringchar(\\n)delimiter(")> + ident(print) stringchar(\\n)delimiter(")> reserved(end) reserved(end) @@ -630,7 +630,7 @@ end ident(proc) operator({) operator(}) -ident(p) stringdelimiter(})>delimiter(")> +ident(p) stringinline_delimiter(})>delimiter(")> ident(bim) ident(baz) ident(bof) @@ -657,8 +657,8 @@ ident(p)operator(() regexpoperato ident(p)operator(() regexp)delimiter(~)modifier(m)>operator(\)) ident(p) stringstringchar(\\ -)inlinedelimiter( +)inlinechar(\\ +)inlinedelimiter( end)> @@ -671,27 +671,27 @@ ident(proc) operator({) operator(})operator(.)ident(call) -ident(p) stringdelimiter(})>delimiter(")> +ident(p) stringinline_delimiter(})>delimiter(")> ident(bim) ident(baz) ident(bof) ident(foobar3) -ident(p) stringstringstring -delimiter(})>delimiter(")> +inline_delimiter(})>delimiter(")> -ident(p) string operator(;) ident(p) stringdelimiter(})>delimiter(")>string operator(;) ident(p) stringinline_delimiter(})>delimiter(")>stringstring -ident(p) stringoperator(.)ident(each)operator(()stringoperator(\))operator({)operator(|)ident(s)operator(|) stringoperator(+)ident(s)operator(}) delimiter(})>delimiter(")> +ident(p) stringoperator(.)ident(each)operator(()stringoperator(\))operator({)operator(|)ident(s)operator(|) stringoperator(+)ident(s)operator(}) inline_delimiter(})>delimiter(")> ident(jbvd)operator(|)ident(g4543ghb)operator(|)operator(!)instance_variable(@G)global_variable($dfsd)operator(|)ident(fafr)operator(|)ident(e) operator(|)ident(s4e5rrwware)operator(|)constant(BBBBB)operator(|*)operator(&)operator(^)operator(()operator(*&)operator(^)operator(>)stringdelimiter(")> +ident(p) stringdelimiter(")> ident(p) string ident(p) string ident(p) string ident(p) string ident(p) string -ident(p) stringdelimiter(")> +ident(p) stringdelimiter(")> ident(p) string -ident(p) stringdelimiter(])> +ident(p) stringdelimiter(])> ident(p) string -ident(p) shelldelimiter(`)> +ident(p) shelldelimiter(`)> ident(p) shell -ident(p)operator(()regexpdelimiter(/)>operator(\)) +ident(p)operator(()regexpdelimiter(/)>operator(\)) comment(#p(/\\#$a \\#@b \\#@@c \\#{$a+@b+@@c}/\) #moved to w.rb) reserved(class) class(AA)operator(;) reserved(class) class(BB)operator(;) reserved(class) class(CC) @@ -753,7 +753,7 @@ ident(compile_body)operator(=)ident(outvar)operator(=)stringoperator(\)) operator(+) - stringchar(\\n)delimiter(")> + stringchar(\\n)delimiter(")> ident(rescu) integer(-1) reserved(end) @@ -777,7 +777,7 @@ ident(val)operator(=)stringdelimiter(")> +ident(p) stringdelimiter(")> ident(p) string reserved(class) class(Hosts) reserved(end) @@ -893,7 +893,7 @@ ident(p) ident(cls_name) operator(=) operator({)operator(})operator([)symbol(:cl ident(p) ident(foo) -ident(p) stringdelimiter(")> +ident(p) stringdelimiter(")> ident(p) symbol(:p) ident(p)operator(()symbol(:p)operator(\)) ident(p)operator(()symboloperator(\)) @@ -910,7 +910,7 @@ ident(p)operator(()integer(-1)operator(\)) ident(p) string ident(p) string)delimiter(])> ident(i)operator(=)integer(99) -ident(p) string)inlinecontent()char(\\n)delimiter(])> +ident(p) string)inlinecontent()char(\\n)delimiter(])> ident(p)operator(()symbol(:side)operator(=)operator(>)symbol(:top)operator(\)) ident(p) string @@ -933,12 +933,12 @@ reserved(if) pre_constant(false) reserved(end) reserved(if) pre_constant(false) ident(ret) operator(=) stringstringcontent( + @@parts_template = )inlinecontent( def parts_template @@parts_template end - )inlineoperator(\))delimiter(})>content( + )inlineoperator(\))inline_delimiter(})>content( def amrita_expand_and_format(element, context, formatter\) if element.tagname_symbol == :span and element.attrs.size == 0 amrita_expand_and_format1(element, context, formatter\) @@ -950,7 +950,7 @@ reserved(if) pre_constant(false) end def amrita_expand_and_format1(element, context, formatter\) - )inlinecontent( + )inlinecontent( end)delimiter( END)> ident(j)operator(=)integer(55) @@ -1046,7 +1046,7 @@ a)> ident(label)operator(=)stringoperator(;)ident(tab)operator(=)operator([)integer(1)operator(,)integer(2)operator(,)integer(3)operator(]) ident(p) stringstringcontent( = arr = Array.new()inlinecontent(, nil\) +)inlinecontent( = arr = Array.new()inlinecontent(, nil\) str = a = i = nil idx = 0 clist.each do |str| -- cgit v1.2.1