Index: test/functional/basic.rb
===================================================================
--- test/functional/basic.rb (revision 308)
+++ test/functional/basic.rb (working copy)
@@ -48,11 +48,30 @@
-
BLOCKCODE
RedCloth.new('bc[ruby]. puts "Hello, World!"').to_html
end
+ def test_for_redcloth_no_lang
+ require 'rubygems'
+ require 'coderay/for_redcloth'
+ assert_equal "puts \"Hello, World!\"
",
+ RedCloth.new('@puts "Hello, World!"@').to_html
+ assert_equal <<-BLOCKCODE.chomp,
+puts \"Hello, World!\"
+ BLOCKCODE
+ RedCloth.new('bc. puts "Hello, World!"').to_html
+ end
+
+ def test_for_redcloth_style
+ require 'rubygems'
+ require 'coderay/for_redcloth'
+ assert_equal <<-BLOCKCODE.chomp,
+puts \"Hello, World!\"
+ BLOCKCODE
+ RedCloth.new('bc{color: red}. puts "Hello, World!"').to_html
+ end
+
def test_for_redcloth_escapes
require 'rubygems'
require 'coderay/for_redcloth'
@@ -62,7 +81,6 @@
-
BLOCKCODE
RedCloth.new('bc[ruby]. &').to_html
end
Index: test/scanners/java/jruby.expected.raydebug
===================================================================
--- test/scanners/java/jruby.expected.raydebug (revision 308)
+++ test/scanners/java/jruby.expected.raydebug (working copy)
@@ -50,7 +50,7 @@
* @author pldms
*
*/)
-directive(public) type(interface) ident(Finalizable) operator({)
+directive(public) type(interface) class(Finalizable) operator({)
directive(public) type(void) ident(finalize)operator(()operator(\))operator(;)
operator(})
comment(/***** BEGIN LICENSE BLOCK *****
@@ -91,7 +91,7 @@
* The purpose of this class it to help implement the Errno module which in turn in needed by rubicon.
* @author Benoit Cerrina
**/)
-directive(public) type(interface) ident(IErrno)
+directive(public) type(interface) class(IErrno)
operator({)
type(int) ident(EPERM) operator(=) integer(1)operator(;)
type(int) ident(ENOENT) operator(=) integer(2)operator(;)
@@ -590,7 +590,7 @@
directive(private) pre_type(Graphics) ident(backBufferGraphics)operator(;)
directive(private) ident(Facade) ident(facade)operator(;)
- directive(private) type(interface) ident(Facade) operator({)
+ directive(private) type(interface) class(Facade) operator({)
directive(public) pre_type(InputStream) ident(getInputStream)operator(()operator(\))operator(;)
directive(public) pre_type(PrintStream) ident(getOutputStream)operator(()operator(\))operator(;)
directive(public) pre_type(PrintStream) ident(getErrorStream)operator(()operator(\))operator(;)
@@ -1742,7 +1742,7 @@
comment(/**
* @author Ola Bini
*/)
-directive(public) type(interface) ident(Profile) operator({)
+directive(public) type(interface) class(Profile) operator({)
ident(Profile) ident(ALL) operator(=) keyword(new) ident(Profile)operator(()operator(\)) operator({)
directive(public) type(boolean) ident(allowBuiltin)operator(()pre_type(String) ident(name)operator(\)) operator({) keyword(return) keyword(true)operator(;) operator(})
directive(public) type(boolean) ident(allowClass)operator(()pre_type(String) ident(name)operator(\)) operator({) keyword(return) keyword(true)operator(;) operator(})
@@ -21557,7 +21557,7 @@
directive(public) directive(static) type(boolean) ident(nativeEnabled) operator(=) keyword(true)operator(;)
- directive(public) directive(static) type(interface) ident(LoadServiceCreator) operator({)
+ directive(public) directive(static) type(interface) class(LoadServiceCreator) operator({)
ident(LoadService) ident(create)operator(()ident(Ruby) ident(runtime)operator(\))operator(;)
ident(LoadServiceCreator) ident(DEFAULT) operator(=) keyword(new) ident(LoadServiceCreator)operator(()operator(\)) operator({)
@@ -36946,7 +36946,7 @@
*
* @author nicksieger
*/)
-directive(public) type(interface) ident(RubyObjectAdapter) operator({)
+directive(public) type(interface) class(RubyObjectAdapter) operator({)
type(boolean) ident(isKindOf)operator(()ident(IRubyObject) ident(value)operator(,) ident(RubyModule) ident(rubyModule)operator(\))operator(;)
@@ -40779,7 +40779,7 @@
*
* @author nicksieger
*/)
-directive(public) type(interface) ident(RubyRuntimeAdapter) operator({)
+directive(public) type(interface) class(RubyRuntimeAdapter) operator({)
ident(IRubyObject) ident(eval)operator(()ident(Ruby) ident(runtime)operator(,) pre_type(String) ident(script)operator(\))operator(;)
operator(})
comment(/***** BEGIN LICENSE BLOCK *****
Index: test/scanners/javascript/script.aculo.us.expected.raydebug
===================================================================
--- test/scanners/javascript/script.aculo.us.expected.raydebug (revision 308)
+++ test/scanners/javascript/script.aculo.us.expected.raydebug (working copy)
@@ -2083,9 +2083,9 @@
operator(}\))operator(;)
operator(})operator(,)
key(PAIRS)operator(:) operator({)
- stringoperator(:) operator([)stringoperator(,)stringoperator(])operator(,)
- stringoperator(:) operator([)stringoperator(,)stringoperator(])operator(,)
- stringoperator(:) operator([)stringoperator(,)stringoperator(])
+ keyoperator(:) operator([)stringoperator(,)stringoperator(])operator(,)
+ keyoperator(:) operator([)stringoperator(,)stringoperator(])operator(,)
+ keyoperator(:) operator([)stringoperator(,)stringoperator(])
operator(})operator(,)
key(toggle)operator(:) keyword(function)operator(()ident(element)operator(,) ident(effect)operator(\)) operator({)
ident(element) operator(=) predefined($)operator(()ident(element)operator(\))operator(;)
@@ -3378,12 +3378,12 @@
keyword(return) ident(value) operator(==) keyword(null) operator(?) string operator(:) ident(String)operator(()ident(value)operator(\))operator(;)
operator(})operator(,)
key(specialChar)operator(:) operator({)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) string
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) string
operator(})
operator(}\))operator(;)
@@ -4296,9 +4296,9 @@
key(setRequestHeaders)operator(:) keyword(function)operator(()operator(\)) operator({)
keyword(var) ident(headers) operator(=) operator({)
- stringoperator(:) stringoperator(,)
- stringoperator(:) ident(Prototype)operator(.)ident(Version)operator(,)
- stringoperator(:) string
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) ident(Prototype)operator(.)ident(Version)operator(,)
+ keyoperator(:) string
operator(})operator(;)
keyword(if) operator(()local_variable(this)operator(.)ident(method) operator(==) stringoperator(\)) operator({)
@@ -4705,7 +4705,7 @@
key(inspect)operator(:) keyword(function)operator(()ident(element)operator(\)) operator({)
ident(element) operator(=) predefined($)operator(()ident(element)operator(\))operator(;)
keyword(var) ident(result) operator(=) string operator(+) ident(element)operator(.)ident(tagName)operator(.)ident(toLowerCase)operator(()operator(\))operator(;)
- predefined($H)operator(({)stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(}\))operator(.)ident(each)operator(()keyword(function)operator(()ident(pair)operator(\)) operator({)
+ predefined($H)operator(({)keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(}\))operator(.)ident(each)operator(()keyword(function)operator(()ident(pair)operator(\)) operator({)
keyword(var) ident(property) operator(=) ident(pair)operator(.)ident(first)operator(()operator(\))operator(,) ident(attribute) operator(=) ident(pair)operator(.)ident(last)operator(()operator(\))operator(;)
keyword(var) ident(value) operator(=) operator(()ident(element)operator([)ident(property)operator(]) operator(||) stringoperator(\))operator(.)ident(toString)operator(()operator(\))operator(;)
keyword(if) operator(()ident(value)operator(\)) ident(result) operator(+=) string operator(+) ident(attribute) operator(+) string operator(+) ident(value)operator(.)ident(inspect)operator(()keyword(true)operator(\))operator(;)
@@ -5352,8 +5352,8 @@
ident(Element)operator(.)ident(_attributeTranslations) operator(=) operator({)
key(read)operator(:) operator({)
key(names)operator(:) operator({)
- stringoperator(:) stringoperator(,)
- stringoperator(:) string
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) string
operator(})operator(,)
key(values)operator(:) operator({)
key(_getAttr)operator(:) keyword(function)operator(()ident(element)operator(,) ident(attribute)operator(\)) operator({)
@@ -5667,10 +5667,10 @@
ident(Object)operator(.)ident(extend)operator(()ident(Form)operator(,) ident(Form)operator(.)ident(Methods)operator(\))operator(;)
ident(Object)operator(.)ident(extend)operator(()ident(Form)operator(.)ident(Element)operator(,) ident(Form)operator(.)ident(Element)operator(.)ident(Methods)operator(\))operator(;)
ident(Object)operator(.)ident(extend)operator(()ident(Element)operator(.)ident(Methods)operator(.)ident(ByTag)operator(,) operator({)
- stringoperator(:) ident(Object)operator(.)ident(clone)operator(()ident(Form)operator(.)ident(Methods)operator(\))operator(,)
- stringoperator(:) ident(Object)operator(.)ident(clone)operator(()ident(Form)operator(.)ident(Element)operator(.)ident(Methods)operator(\))operator(,)
- stringoperator(:) ident(Object)operator(.)ident(clone)operator(()ident(Form)operator(.)ident(Element)operator(.)ident(Methods)operator(\))operator(,)
- stringoperator(:) ident(Object)operator(.)ident(clone)operator(()ident(Form)operator(.)ident(Element)operator(.)ident(Methods)operator(\))
+ keyoperator(:) ident(Object)operator(.)ident(clone)operator(()ident(Form)operator(.)ident(Methods)operator(\))operator(,)
+ keyoperator(:) ident(Object)operator(.)ident(clone)operator(()ident(Form)operator(.)ident(Element)operator(.)ident(Methods)operator(\))operator(,)
+ keyoperator(:) ident(Object)operator(.)ident(clone)operator(()ident(Form)operator(.)ident(Element)operator(.)ident(Methods)operator(\))operator(,)
+ keyoperator(:) ident(Object)operator(.)ident(clone)operator(()ident(Form)operator(.)ident(Element)operator(.)ident(Methods)operator(\))
operator(}\))operator(;)
operator(})
@@ -5705,15 +5705,15 @@
keyword(function) ident(findDOMClass)operator(()ident(tagName)operator(\)) operator({)
keyword(var) ident(klass)operator(;)
keyword(var) ident(trans) operator(=) operator({)
- stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:)
- stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:)
- stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:)
- stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:) stringoperator(,) stringoperator(:)
- stringoperator(,) stringoperator(:) string
+ keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:)
+ stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:)
+ stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:)
+ stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:) stringoperator(,) keyoperator(:)
+ stringoperator(,) keyoperator(:) string
operator(})operator(;)
keyword(if) operator(()ident(trans)operator([)ident(tagName)operator(]\)) ident(klass) operator(=) string operator(+) ident(trans)operator([)ident(tagName)operator(]) operator(+) stringoperator(;)
keyword(if) operator(()ident(window)operator([)ident(klass)operator(]\)) keyword(return) ident(window)operator([)ident(klass)operator(])operator(;)
@@ -5941,23 +5941,23 @@
keyword(return) keyword(new) ident(Template)operator(()ident(Selector)operator(.)ident(xpath)operator(.)ident(pseudos)operator([)ident(m)operator([)integer(1)operator(]]\))operator(.)ident(evaluate)operator(()ident(m)operator(\))operator(;)
operator(})operator(,)
key(operators)operator(:) operator({)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) string
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) string
operator(})operator(,)
key(pseudos)operator(:) operator({)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) stringoperator(,)
- stringoperator(:) keyword(function)operator(()ident(m)operator(\)) operator({)
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,)
+ keyoperator(:) stringoperator(,)
+ key