head[head(Index: )plain(lib/coderay/token_classes.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/token_classes.rb)plain( (revision 0\))] head[head(+++ )filename(lib/coderay/token_classes.rb)plain( (revision 250\))] change[change(@@)plain( -0,0 +1,71 )change(@@)] insert[insert(+)reserved(module) class(CodeRay)] insert[insert(+) reserved(class) class(Tokens)] insert[insert(+) constant(ClassOfKind) operator(=) constant(Hash)operator(.)ident(new) reserved(do) operator(|)ident(h)operator(,) ident(k)operator(|)] insert[insert(+) ident(h)operator([)ident(k)operator(]) operator(=) ident(k)operator(.)ident(to_s)] insert[insert(+) reserved(end)] insert[insert(+) constant(ClassOfKind)operator(.)ident(update) ident(with) operator(=) operator({)] insert[insert(+) symbol(:attribute_name) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:attribute_name_fat) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:attribute_value) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:attribute_value_fat) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:bin) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:char) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:class) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:class_variable) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:color) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:comment) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:constant) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:content) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:definition) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:delimiter) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:directive) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:doc) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:doc_string) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:entity) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:error) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:escape) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:exception) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:float) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:function) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:global_variable) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:hex) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:include) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:inline) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:inline_delimiter) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:instance_variable) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:integer) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:interpreted) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:label) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:local_variable) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:modifier) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:oct) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:operator_fat) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:pre_constant) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:pre_type) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:predefined) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:preprocessor) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:regexp) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:reserved) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:shell) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:string) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:symbol) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:tag) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:tag_fat) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:tag_special) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:type) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:variable) operator(=)operator(>) stringoperator(,)] insert[insert(+) symbol(:xml_text) operator(=)operator(>) stringoperator(,)] insert[insert(+)] insert[insert(+) symbol(:ident) operator(=)operator(>) symbol(:NO_HIGHLIGHT)operator(,) comment(# 'id')] insert[insert(+) comment(#:operator => 'op',)] insert[insert(+) symbol(:operator) operator(=)operator(>) symbol(:NO_HIGHLIGHT)operator(,) comment(# 'op')] insert[insert(+) symbol(:space) operator(=)operator(>) symbol(:NO_HIGHLIGHT)operator(,) comment(# 'sp')] insert[insert(+) symbol(:plain) operator(=)operator(>) symbol(:NO_HIGHLIGHT)operator(,)] insert[insert(+) operator(})] insert[insert(+) constant(ClassOfKind)operator([)symbol(:procedure)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:method)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:function)operator(])] insert[insert(+) constant(ClassOfKind)operator([)symbol(:open)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:close)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:delimiter)operator(])] insert[insert(+) constant(ClassOfKind)operator([)symbol(:nesting_delimiter)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:delimiter)operator(])] insert[insert(+) constant(ClassOfKind)operator([)symbol(:escape)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:delimiter)operator(])] insert[insert(+) comment(#ClassOfKind.default = ClassOfKind[:error] or raise 'no class found for :error!')] insert[insert(+) reserved(end)] insert[insert(+)reserved(end)] change[change(\\ )plain(No newline at end of file)] head[head(Property changes on: )plain(lib/coderay/token_classes.rb)] head[head(___________________________________________________________________)filename()] head[head(Added: )plain(svn:executable)] insert[insert( +)plain( *)] head[head(Index: )plain(lib/coderay/encoder.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/encoder.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/encoder.rb)plain( (revision 250\))] change[change(@@)plain( -1,3 +1,5 )change(@@)] insert[insert(+)ident(require) string] insert[insert(+)] reserved(module) class(CodeRay) comment(# This module holds the Encoder class and its subclasses.) change[change(@@)plain( -40,7 +42,7 )change(@@)] comment(# downcase class name instead.) reserved(def) method(const_missing) ident(sym) reserved(if) ident(sym) operator(==) symbol(:FILE_EXTENSION) delete[delete(-) ident(sym)operator(.)ident(to_s)operator(.)ident(downcase)] insert[insert(+) ident(plugin_id)] reserved(else) reserved(super) reserved(end) change[change(@@)plain( -130,13 +132,15 )change(@@)] comment(# By default, it calls text_token or block_token, depending on) comment(# whether +text+ is a String.) reserved(def) method(token) ident(text)operator(,) ident(kind) delete[delete(-) reserved(if) ident(text)operator(.)ident(instance_of?) operator(::)constant(String) comment(# Ruby 1.9: :open.is_a? String)] delete[delete(-) ident(text_token) ident(text)operator(,) ident(kind)] delete[delete(-) reserved(elsif) ident(text)operator(.)ident(is_a?) operator(::)constant(Symbol)] delete[delete(-) ident(block_token) ident(text)operator(,) ident(kind)] delete[delete(-) reserved(else)] delete[delete(-) ident(raise) string operator(%) ident(text)] delete[delete(-) reserved(end)] insert[insert(+) ident(out) operator(=)] insert[insert(+) reserved(if) ident(text)operator(.)ident(is_a?) operator(::)constant(String) comment(# Ruby 1.9: :open.is_a? String)] insert[insert(+) ident(text_token) ident(text)operator(,) ident(kind)] insert[insert(+) reserved(elsif) ident(text)operator(.)ident(is_a?) operator(::)constant(Symbol)] insert[insert(+) ident(block_token) ident(text)operator(,) ident(kind)] insert[insert(+) reserved(else)] insert[insert(+) ident(raise) string operator(%) ident(text)] insert[insert(+) reserved(end)] insert[insert(+) instance_variable(@out) operator(<<) ident(out) reserved(if) reserved(defined?)operator(()instance_variable(@out)operator(\)) operator(&&) instance_variable(@out)] reserved(end) reserved(def) method(text_token) ident(text)operator(,) ident(kind) change[change(@@)plain( -164,7 +168,8 )change(@@)] comment(# The already created +tokens+ object must be used; it can be a) comment(# TokenStream or a Tokens object.) reserved(def) method(compile) ident(tokens)operator(,) ident(options) delete[delete(-) ident(tokens)operator(.)ident(each)operator(()operator(&)pre_constant(self)operator(\))] insert[insert(+) ident(tokens)operator(.)ident(each) operator({) operator(|)ident(text)operator(,) ident(kind)operator(|) ident(token) ident(text)operator(,) ident(kind) operator(}) comment(# FIXME for Ruby 1.9?)] insert[insert(+) comment(#tokens.each(&self\))] reserved(end) reserved(end) head[head(Index: )plain(lib/coderay/encoders/xml.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/encoders/xml.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/encoders/xml.rb)plain( (revision 250\))] change[change(@@)plain( -22,7 +22,6 )change(@@)] ident(protected) reserved(def) method(setup) ident(options) delete[delete(-) instance_variable(@out) operator(=) string] instance_variable(@doc) operator(=) constant(REXML)operator(::)constant(Document)operator(.)ident(new) instance_variable(@doc) operator(<<) constant(REXML)operator(::)constant(XMLDecl)operator(.)ident(new) instance_variable(@tab_width) operator(=) ident(options)operator([)symbol(:tab_width)operator(]) change[change(@@)plain( -33,7 +32,7 )change(@@)] instance_variable(@doc)operator(.)ident(write) instance_variable(@out)operator(,) ident(options)operator([)symbol(:pretty)operator(])operator(,) ident(options)operator([)symbol(:transitive)operator(])operator(,) pre_constant(true) instance_variable(@out) reserved(end) delete[delete(-)] insert[insert(+) ] reserved(def) method(text_token) ident(text)operator(,) ident(kind) reserved(if) ident(kind) operator(==) symbol(:space) ident(token) operator(=) instance_variable(@node) head[head(Index: )plain(lib/coderay/encoders/html/classes.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/encoders/html/classes.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/encoders/html/classes.rb)plain( (revision 250\))] change[change(@@)plain( -1,77 +0,0 )change(@@)] delete[delete(-)reserved(module) class(CodeRay)] delete[delete(-)reserved(module) class(Encoders)] delete[delete(-)] delete[delete(-) reserved(class) class(HTML)] delete[delete(-)] delete[delete(-) constant(ClassOfKind) operator(=) constant(Hash)operator(.)ident(new) reserved(do) operator(|)ident(h)operator(,) ident(k)operator(|)] delete[delete(-) ident(h)operator([)ident(k)operator(]) operator(=) ident(k)operator(.)ident(to_s)] delete[delete(-) reserved(end)] delete[delete(-) constant(ClassOfKind)operator(.)ident(update) ident(with) operator(=) operator({)] delete[delete(-) symbol(:attribute_name) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:attribute_name_fat) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:attribute_value) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:attribute_value_fat) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:bin) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:char) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:class) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:class_variable) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:color) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:comment) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:constant) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:content) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:definition) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:delimiter) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:directive) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:doc) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:doc_string) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:entity) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:error) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:escape) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:exception) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:float) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:function) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:global_variable) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:hex) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:include) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:inline) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:inline_delimiter) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:instance_variable) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:integer) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:interpreted) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:label) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:local_variable) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:modifier) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:oct) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:operator_name) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:pre_constant) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:pre_type) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:predefined) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:preprocessor) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:regexp) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:reserved) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:shell) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:string) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:symbol) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:tag) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:tag_fat) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:tag_special) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:type) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:variable) operator(=)operator(>) stringoperator(,)] delete[delete(-) symbol(:xml_text) operator(=)operator(>) stringoperator(,)] delete[delete(-)] delete[delete(-) symbol(:ident) operator(=)operator(>) symbol(:NO_HIGHLIGHT)operator(,) comment(# 'id')] delete[delete(-) comment(#:operator => 'op',)] delete[delete(-) symbol(:operator) operator(=)operator(>) symbol(:NO_HIGHLIGHT)operator(,) comment(# 'op')] delete[delete(-) symbol(:space) operator(=)operator(>) symbol(:NO_HIGHLIGHT)operator(,) comment(# 'sp')] delete[delete(-) symbol(:plain) operator(=)operator(>) symbol(:NO_HIGHLIGHT)operator(,)] delete[delete(-) operator(})] delete[delete(-) constant(ClassOfKind)operator([)symbol(:procedure)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:method)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:function)operator(])] delete[delete(-) constant(ClassOfKind)operator([)symbol(:open)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:close)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:delimiter)operator(])] delete[delete(-) constant(ClassOfKind)operator([)symbol(:nesting_delimiter)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:delimiter)operator(])] delete[delete(-) constant(ClassOfKind)operator([)symbol(:escape)operator(]) operator(=) constant(ClassOfKind)operator([)symbol(:delimiter)operator(])] delete[delete(-) comment(#ClassOfKind.default = ClassOfKind[:error] or raise 'no class found for :error!')] delete[delete(-)] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-)reserved(end)] delete[delete(-)reserved(end)] head[head(Index: )plain(lib/coderay/encoders/html/numerization.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/encoders/html/numerization.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/encoders/html/numerization.rb)plain( (revision 250\))] change[change(@@)plain( -51,12 +51,12 )change(@@)] reserved(case) ident(mode) reserved(when) symbol(:inline) ident(max_width) operator(=) operator(()ident(start) operator(+) ident(line_count)operator(\))operator(.)ident(to_s)operator(.)ident(size) delete[delete(-) ident(line) operator(=) ident(start)] insert[insert(+) ident(line_number) operator(=) ident(start)] ident(gsub!)operator(()regexpoperator(\)) reserved(do) delete[delete(-) ident(line_number) operator(=) ident(bolding)operator(.)ident(call) ident(line)] delete[delete(-) ident(indent) operator(=) string operator(*) operator(()ident(max_width) operator(-) ident(line)operator(.)ident(to_s)operator(.)ident(size)operator(\))] delete[delete(-) ident(res) operator(=) string)inlineinlinecontent( )delimiter(")>] delete[delete(-) ident(line) operator(+=) integer(1)] insert[insert(+) ident(line_number_text) operator(=) ident(bolding)operator(.)ident(call) ident(line_number)] insert[insert(+) ident(indent) operator(=) string operator(*) operator(()ident(max_width) operator(-) ident(line_number)operator(.)ident(to_s)operator(.)ident(size)operator(\)) comment(# TODO: Optimize (10^x\))] insert[insert(+) ident(res) operator(=) string)inlineinlinecontent( )delimiter(")>] insert[insert(+) ident(line_number) operator(+=) integer(1)] ident(res) reserved(end) head[head(Index: )plain(lib/coderay/encoders/tokens.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/encoders/tokens.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/encoders/tokens.rb)plain( (revision 250\))] change[change(@@)plain( -33,9 +33,9 )change(@@)] constant(FILE_EXTENSION) operator(=) string delete[delete(-) ident(protected)] delete[delete(-) reserved(def) method(token) operator(*)ident(args)] delete[delete(-) instance_variable(@out) operator(<<) constant(CodeRay)operator(::)constant(Tokens)operator(.)ident(write_token)operator(()operator(*)ident(args)operator(\))] insert[insert(+) ident(protected)] insert[insert(+) reserved(def) method(token) ident(text)operator(,) ident(kind)] insert[insert(+) instance_variable(@out) operator(<<) constant(CodeRay)operator(::)constant(Tokens)operator(.)ident(write_token)operator(()ident(text)operator(,) ident(kind)operator(\))] reserved(end) reserved(end) head[head(Index: )plain(lib/coderay/encoders/html.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/encoders/html.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/encoders/html.rb)plain( (revision 250\))] change[change(@@)plain( -1,3 +1,5 )change(@@)] insert[insert(+)ident(require) string] insert[insert(+)] reserved(module) class(CodeRay) reserved(module) class(Encoders) change[change(@@)plain( -10,7 +12,8 )change(@@)] comment(#) comment(# require 'coderay') comment(# puts CodeRay.scan('Some /code/', :ruby\).html #-> a HTML page) delete[delete(-) comment(# puts CodeRay.scan('Some /code/', :ruby\).html(:wrap => :span\) #-> Some /code/)] insert[insert(+) comment(# puts CodeRay.scan('Some /code/', :ruby\).html(:wrap => :span\))] insert[insert(+) comment(# #-> Some /code/)] comment(# puts CodeRay.scan('Some /code/', :ruby\).span #-> the same) comment(# ) comment(# puts CodeRay.scan('Some code', :ruby\).html() change[change(@@)plain( -55,7 +58,8 )change(@@)] comment(#) comment(# === :hint) comment(# Include some information into the output using the title attribute.) delete[delete(-) comment(# Can be :info (show token type on mouse-over\), :info_long (with full path\) or :debug (via inspect\).)] insert[insert(+) comment(# Can be :info (show token type on mouse-over\), :info_long (with full path\))] insert[insert(+) comment(# or :debug (via inspect\).)] comment(#) comment(# Default: false) reserved(class) class(HTML) operator(<) constant(Encoder) change[change(@@)plain( -82,7 +86,7 )change(@@)] symbol(:hint) operator(=)operator(>) pre_constant(false)operator(,) operator(}) delete[delete(-) ident(helper) symbol(:classes)operator(,) symbol(:output)operator(,) symbol(:css)] insert[insert(+) ident(helper) symbol(:output)operator(,) symbol(:css)] ident(attr_reader) symbol(:css) change[change(@@)plain( -115,11 +119,14 )change(@@)] reserved(end) operator(}) insert[insert(+) constant(TRANSPARENT_TOKEN_KINDS) operator(=) operator([)] insert[insert(+) symbol(:delimiter)operator(,) symbol(:modifier)operator(,) symbol(:content)operator(,) symbol(:escape)operator(,) symbol(:inline_delimiter)operator(,)] insert[insert(+) operator(])operator(.)ident(to_set)] insert[insert(+)] comment(# Generate a hint about the given +classes+ in a +hint+ style.) comment(#) comment(# +hint+ may be :info, :info_long or :debug.) reserved(def) pre_constant(self)operator(.)method(token_path_to_hint) ident(hint)operator(,) ident(classes) delete[delete(-) reserved(return) string reserved(unless) ident(hint)] ident(title) operator(=) reserved(case) ident(hint) reserved(when) symbol(:info) change[change(@@)plain( -129,7 +136,7 )change(@@)] reserved(when) symbol(:debug) ident(classes)operator(.)ident(inspect) reserved(end) delete[delete(-) stringchar(\\")delimiter(")>] insert[insert(+) ident(title) operator(?) stringchar(\\")delimiter(")> operator(:) string] reserved(end) reserved(def) method(setup) ident(options) change[change(@@)plain( -143,42 +150,45 )change(@@)] ident(hint) operator(=) ident(options)operator([)symbol(:hint)operator(]) reserved(if) ident(hint) reserved(and) reserved(not) operator([)symbol(:debug)operator(,) symbol(:info)operator(,) symbol(:info_long)operator(])operator(.)ident(include?) ident(hint) delete[delete(-) ident(raise) constant(ArgumentError)operator(,) string operator(%) ident(hint)] insert[insert(+) ident(raise) constant(ArgumentError)operator(,) string] insert[insert(+) ident(expected) symbol(:info)operator(,) symbol(:debug)operator(,) pre_constant(false)operator(,) reserved(or) pre_constant(nil)operator(.)string] reserved(end) reserved(case) ident(options)operator([)symbol(:css)operator(]) reserved(when) symbol(:class) instance_variable(@css_style) operator(=) constant(Hash)operator(.)ident(new) reserved(do) operator(|)ident(h)operator(,) ident(k)operator(|) delete[delete(-) reserved(if) ident(k)operator(.)ident(is_a?) constant(Array)] delete[delete(-) ident(type) operator(=) ident(k)operator(.)ident(first)] delete[delete(-) reserved(else)] delete[delete(-) ident(type) operator(=) ident(k)] delete[delete(-) reserved(end)] delete[delete(-) ident(c) operator(=) constant(ClassOfKind)operator([)ident(type)operator(])] insert[insert(+) ident(c) operator(=) constant(CodeRay)operator(::)constant(Tokens)operator(::)constant(ClassOfKind)operator([)ident(k)operator(.)ident(first)operator(])] reserved(if) ident(c) operator(==) symbol(:NO_HIGHLIGHT) reserved(and) reserved(not) ident(hint) delete[delete(-) ident(h)operator([)ident(k)operator(]) operator(=) pre_constant(false)] insert[insert(+) ident(h)operator([)ident(k)operator(.)ident(dup)operator(]) operator(=) pre_constant(false)] reserved(else) delete[delete(-) ident(title) operator(=) constant(HTML)operator(.)ident(token_path_to_hint) ident(hint)operator(,) operator(()ident(k)operator([)integer(1)operator(..)integer(-1)operator(]) operator(<<) ident(k)operator(.)ident(first)operator(\))] delete[delete(-) ident(h)operator([)ident(k)operator(]) operator(=) string)delimiter(')> operator(%) operator([)ident(title)operator(,) ident(c)operator(])] insert[insert(+) ident(title) operator(=) reserved(if) ident(hint)] insert[insert(+) constant(HTML)operator(.)ident(token_path_to_hint)operator(()ident(hint)operator(,) ident(k)operator([)integer(1)operator(..)integer(-1)operator(]) operator(<<) ident(k)operator(.)ident(first)operator(\))] insert[insert(+) reserved(else)] insert[insert(+) string] insert[insert(+) reserved(end)] insert[insert(+) reserved(if) ident(c) operator(==) symbol(:NO_HIGHLIGHT)] insert[insert(+) ident(h)operator([)ident(k)operator(.)ident(dup)operator(]) operator(=) string)delimiter(')> operator(%) operator([)ident(title)operator(])] insert[insert(+) reserved(else)] insert[insert(+) ident(h)operator([)ident(k)operator(.)ident(dup)operator(]) operator(=) string)delimiter(')> operator(%) operator([)ident(title)operator(,) ident(c)operator(])] insert[insert(+) reserved(end)] reserved(end) reserved(end) reserved(when) symbol(:style) instance_variable(@css_style) operator(=) constant(Hash)operator(.)ident(new) reserved(do) operator(|)ident(h)operator(,) ident(k)operator(|) delete[delete(-) reserved(if) ident(k)operator(.)ident(is_a?) constant(Array)] insert[insert(+) reserved(if) ident(k)operator(.)ident(is_a?) operator(::)constant(Array)] ident(styles) operator(=) ident(k)operator(.)ident(dup) reserved(else) ident(styles) operator(=) operator([)ident(k)operator(]) reserved(end) ident(type) operator(=) ident(styles)operator(.)ident(first) delete[delete(-) ident(classes) operator(=) ident(styles)operator(.)ident(map) operator({) operator(|)ident(c)operator(|) constant(ClassOfKind)operator([)ident(c)operator(]) operator(})] insert[insert(+) ident(classes) operator(=) ident(styles)operator(.)ident(map) operator({) operator(|)ident(c)operator(|) constant(Tokens)operator(::)constant(ClassOfKind)operator([)ident(c)operator(]) operator(})] reserved(if) ident(classes)operator(.)ident(first) operator(==) symbol(:NO_HIGHLIGHT) reserved(and) reserved(not) ident(hint) ident(h)operator([)ident(k)operator(]) operator(=) pre_constant(false) reserved(else) delete[delete(-) ident(styles)operator(.)ident(shift) reserved(if) operator([)symbol(:delimiter)operator(,) symbol(:modifier)operator(,) symbol(:content)operator(,) symbol(:escape)operator(])operator(.)ident(include?) ident(styles)operator(.)ident(first)] insert[insert(+) ident(styles)operator(.)ident(shift) reserved(if) constant(TRANSPARENT_TOKEN_KINDS)operator(.)ident(include?) ident(styles)operator(.)ident(first)] ident(title) operator(=) constant(HTML)operator(.)ident(token_path_to_hint) ident(hint)operator(,) ident(styles) delete[delete(-) ident(classes)operator(.)ident(delete) string] ident(style) operator(=) instance_variable(@css)operator([)operator(*)ident(classes)operator(]) ident(h)operator([)ident(k)operator(]) operator(=) reserved(if) ident(style) change[change(@@)plain( -198,7 +208,9 )change(@@)] reserved(def) method(finish) ident(options) ident(not_needed) operator(=) instance_variable(@opened)operator(.)ident(shift) instance_variable(@out) operator(<<) string)delimiter(')> operator(*) instance_variable(@opened)operator(.)ident(size) delete[delete(-) ident(warn) string operator(%) operator([)instance_variable(@opened)operator(.)ident(size)operator(,) instance_variable(@opened)operator(]) reserved(unless) instance_variable(@opened)operator(.)ident(empty?)] insert[insert(+) reserved(unless) instance_variable(@opened)operator(.)ident(empty?)] insert[insert(+) ident(warn) string operator(%) operator([)instance_variable(@opened)operator(.)ident(size)operator(,) instance_variable(@opened)operator(])] insert[insert(+) reserved(end)] instance_variable(@out)operator(.)ident(extend) constant(Output) instance_variable(@out)operator(.)ident(css) operator(=) instance_variable(@css) change[change(@@)plain( -229,8 +241,9 )change(@@)] reserved(if) instance_variable(@opened)operator(.)ident(empty?) comment(# nothing to close) reserved(else) delete[delete(-) reserved(if) instance_variable(@opened)operator(.)ident(size) operator(==) integer(1) reserved(or) instance_variable(@opened)operator(.)ident(last) operator(!=) ident(type)] delete[delete(-) ident(raise) string operator(%) operator([)ident(type)operator(,) instance_variable(@opened)operator([)integer(1)operator(..)integer(-1)operator(])operator(]) reserved(if) global_variable($DEBUG)] insert[insert(+) reserved(if) global_variable($DEBUG) reserved(and) operator(()instance_variable(@opened)operator(.)ident(size) operator(==) integer(1) reserved(or) instance_variable(@opened)operator(.)ident(last) operator(!=) ident(type)operator(\))] insert[insert(+) ident(raise) string] insert[insert(+) ident(that) ident(is) reserved(not) ident(open)operator(.) ident(Open) ident(are)operator(:) operator(%)ident(p)operator(.)string] reserved(end) instance_variable(@out) operator(<<) string)delimiter(')> instance_variable(@opened)operator(.)ident(pop) head[head(Index: )plain(lib/coderay/encoders/text.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/encoders/text.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/encoders/text.rb)plain( (revision 250\))] change[change(@@)plain( -14,13 +14,12 )change(@@)] ident(protected) reserved(def) method(setup) ident(options) delete[delete(-) reserved(super)] insert[insert(+) instance_variable(@out) operator(=) string] instance_variable(@sep) operator(=) ident(options)operator([)symbol(:separator)operator(]) reserved(end) reserved(def) method(token) ident(text)operator(,) ident(kind) delete[delete(-) reserved(return) reserved(unless) ident(text)operator(.)ident(respond_to?) symbol(:to_str)] delete[delete(-) instance_variable(@out) operator(<<) ident(text) operator(+) instance_variable(@sep)] insert[insert(+) instance_variable(@out) operator(<<) ident(text) operator(+) instance_variable(@sep) reserved(if) ident(text)operator(.)ident(is_a?) operator(::)constant(String)] reserved(end) reserved(def) method(finish) ident(options) head[head(Index: )plain(lib/coderay/encoders/debug.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/encoders/debug.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/encoders/debug.rb)plain( (revision 250\))] change[change(@@)plain( -19,19 +19,14 )change(@@)] ident(protected) reserved(def) method(text_token) ident(text)operator(,) ident(kind) delete[delete(-) instance_variable(@out) operator(<<)] delete[delete(-) reserved(if) ident(kind) operator(==) symbol(:space)] delete[delete(-) ident(text)] delete[delete(-) reserved(else)] delete[delete(-) ident(text) operator(=) ident(text)operator(.)ident(gsub)operator(()regexpoperator(,) stringoperator(\))] delete[delete(-) stringcontent(()inlinecontent(\))delimiter(")>] delete[delete(-) reserved(end)] insert[insert(+) reserved(if) ident(kind) operator(==) symbol(:space)] insert[insert(+) ident(text)] insert[insert(+) reserved(else)] insert[insert(+) ident(text) operator(=) ident(text)operator(.)ident(gsub)operator(()regexpoperator(,) stringoperator(\)) comment(# escape \) and \\)] insert[insert(+) stringcontent(()inlinecontent(\))delimiter(")>] insert[insert(+) reserved(end)] reserved(end) delete[delete(-) reserved(def) method(block_token) ident(action)operator(,) ident(kind)] delete[delete(-) instance_variable(@out) operator(<<) reserved(super)] delete[delete(-) reserved(end)] delete[delete(-)] reserved(def) method(open_token) ident(kind) stringcontent(<)delimiter(")> reserved(end) head[head(Index: )plain(lib/coderay/encoders/statistic.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/encoders/statistic.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/encoders/statistic.rb)plain( (revision 250\))] change[change(@@)plain( -28,19 +28,15 )change(@@)] instance_variable(@type_stats)operator([)ident(kind)operator(])operator(.)ident(count) operator(+=) integer(1) instance_variable(@type_stats)operator([)ident(kind)operator(])operator(.)ident(size) operator(+=) ident(text)operator(.)ident(size) instance_variable(@type_stats)operator([)stringoperator(])operator(.)ident(size) operator(+=) ident(text)operator(.)ident(size) insert[insert(+) instance_variable(@type_stats)operator([)stringoperator(])operator(.)ident(count) operator(+=) integer(1)] reserved(end) comment(# TODO Hierarchy handling) reserved(def) method(block_token) ident(action)operator(,) ident(kind) delete[delete(-) comment(#@content_type = kind)] insert[insert(+) instance_variable(@type_stats)operator([)stringoperator(])operator(.)ident(count) operator(+=) integer(1)] instance_variable(@type_stats)operator([)stringoperator(])operator(.)ident(count) operator(+=) integer(1) reserved(end) delete[delete(-) reserved(def) method(token) ident(text)operator(,) ident(kind)] delete[delete(-) reserved(super)] delete[delete(-) instance_variable(@type_stats)operator([)stringoperator(])operator(.)ident(count) operator(+=) integer(1)] delete[delete(-) reserved(end)] delete[delete(-)] constant(STATS) operator(=) string constant(Code) constant(Statistics) head[head(Index: )plain(lib/coderay/encoders/_map.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/encoders/_map.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/encoders/_map.rb)plain( (revision 250\))] change[change(@@)plain( -2,7 +2,8 )change(@@)] reserved(module) class(Encoders) ident(map) symbol(:stats) operator(=)operator(>) symbol(:statistic)operator(,) delete[delete(-) symbol(:plain) operator(=)operator(>) symbol(:text)] insert[insert(+) symbol(:plain) operator(=)operator(>) symbol(:text)operator(,)] insert[insert(+) symbol(:tex) operator(=)operator(>) symbol(:latex)] reserved(end) reserved(end) head[head(Index: )plain(lib/coderay/helpers/filetype.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/helpers/filetype.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/helpers/filetype.rb)plain( (revision 250\))] change[change(@@)plain( -1,180 +0,0 )change(@@)] delete[delete(-)comment(# =FileType)] delete[delete(-)comment(#)] delete[delete(-)comment(# A simple filetype recognizer)] delete[delete(-)comment(#)] delete[delete(-)comment(# Author: murphy (mail to murphy cYcnus de\))] delete[delete(-)comment(#)] delete[delete(-)comment(# Version: 0.1 (2005.september.1\))] delete[delete(-)comment(#)] delete[delete(-)comment(# == Documentation)] delete[delete(-)comment(#)] delete[delete(-)comment(# # determine the type of the given)] delete[delete(-)comment(# lang = FileType[ARGV.first])] delete[delete(-)comment(# )] delete[delete(-)comment(# # return :plaintext if the file type is unknown)] delete[delete(-)comment(# lang = FileType.fetch ARGV.first, :plaintext)] delete[delete(-)comment(# )] delete[delete(-)comment(# # try the shebang line, too)] delete[delete(-)comment(# lang = FileType.fetch ARGV.first, :plaintext, true)] delete[delete(-)reserved(module) class(FileType)] delete[delete(-)] delete[delete(-) constant(UnknownFileType) operator(=) constant(Class)operator(.)ident(new) constant(Exception)] delete[delete(-)] delete[delete(-) reserved(class) operator(<<) class(self)] delete[delete(-)] delete[delete(-) comment(# Try to determine the file type of the file.)] delete[delete(-) comment(#)] delete[delete(-) comment(# +filename+ is a relative or absolute path to a file.)] delete[delete(-) comment(#)] delete[delete(-) comment(# The file itself is only accessed when +read_shebang+ is set to true.)] delete[delete(-) comment(# That means you can get filetypes from files that don't exist.)] delete[delete(-) reserved(def) method([]) ident(filename)operator(,) ident(read_shebang) operator(=) pre_constant(false)] delete[delete(-) ident(name) operator(=) constant(File)operator(.)ident(basename) ident(filename)] delete[delete(-) ident(ext) operator(=) constant(File)operator(.)ident(extname) ident(name)] delete[delete(-) ident(ext)operator(.)ident(sub!)operator(()regexpoperator(,) stringoperator(\)) comment(# delete the leading dot)] delete[delete(-)] delete[delete(-) ident(type) operator(=)] delete[delete(-) constant(TypeFromExt)operator([)ident(ext)operator(]) operator(||)] delete[delete(-) constant(TypeFromExt)operator([)ident(ext)operator(.)ident(downcase)operator(]) operator(||)] delete[delete(-) constant(TypeFromName)operator([)ident(name)operator(]) operator(||)] delete[delete(-) constant(TypeFromName)operator([)ident(name)operator(.)ident(downcase)operator(])] delete[delete(-) ident(type) operator(||=) ident(shebang)operator(()ident(filename)operator(\)) reserved(if) ident(read_shebang)] delete[delete(-)] delete[delete(-) ident(type)] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) reserved(def) method(shebang) ident(filename)] delete[delete(-) reserved(begin)] delete[delete(-) constant(File)operator(.)ident(open) ident(filename)operator(,) string reserved(do) operator(|)ident(f)operator(|)] delete[delete(-) ident(first_line) operator(=) ident(f)operator(.)ident(gets)] delete[delete(-) ident(first_line)operator([)constant(TypeFromShebang)operator(])] delete[delete(-) reserved(end)] delete[delete(-) reserved(rescue) constant(IOError)] delete[delete(-) pre_constant(nil)] delete[delete(-) reserved(end)] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) comment(# This works like Hash#fetch.)] delete[delete(-) comment(#)] delete[delete(-) comment(# If the filetype cannot be found, the +default+ value)] delete[delete(-) comment(# is returned.)] delete[delete(-) reserved(def) method(fetch) ident(filename)operator(,) ident(default) operator(=) pre_constant(nil)operator(,) ident(read_shebang) operator(=) pre_constant(false)] delete[delete(-) reserved(if) ident(default) reserved(and) ident(block_given?)] delete[delete(-) ident(warn) string] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) reserved(unless) ident(type) operator(=) pre_constant(self)operator([)ident(filename)operator(,) ident(read_shebang)operator(])] delete[delete(-) reserved(return) reserved(yield) reserved(if) ident(block_given?)] delete[delete(-) reserved(return) ident(default) reserved(if) ident(default)] delete[delete(-) ident(raise) constant(UnknownFileType)operator(,) string operator(%) ident(filename)] delete[delete(-) reserved(end)] delete[delete(-) ident(type)] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) constant(TypeFromExt) operator(=) operator({)] delete[delete(-) string operator(=)operator(>) symbol(:ruby)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:ruby)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:ruby)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:c)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:c)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:c)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:xml)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:html)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:html)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:xhtml)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:rhtml)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:yaml)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:yaml)operator(,)] delete[delete(-) operator(})] delete[delete(-)] delete[delete(-) constant(TypeFromShebang) operator(=) regexp] delete[delete(-)] delete[delete(-) constant(TypeFromName) operator(=) operator({)] delete[delete(-) string operator(=)operator(>) symbol(:ruby)operator(,)] delete[delete(-) string operator(=)operator(>) symbol(:ruby)operator(,)] delete[delete(-) operator(})] delete[delete(-)] delete[delete(-)reserved(end)] delete[delete(-)] delete[delete(-)reserved(if) global_variable($0) operator(==) pre_constant(__FILE__)] delete[delete(-) global_variable($VERBOSE) operator(=) pre_constant(true)] delete[delete(-) ident(eval) pre_constant(DATA)operator(.)ident(read)operator(,) pre_constant(nil)operator(,) global_variable($0)operator(,) pre_constant(__LINE__)operator(+)integer(4)] delete[delete(-)reserved(end)] delete[delete(-)] delete[delete(-)comment(__END__)] delete[delete(-)] delete[delete(-)ident(require) string] delete[delete(-)] delete[delete(-)reserved(class) class(TC_FileType) operator(<) constant(Test)operator(::)constant(Unit)operator(::)constant(TestCase)] delete[delete(-)] delete[delete(-) reserved(def) method(test_fetch)] delete[delete(-) ident(assert_raise) constant(FileType)operator(::)constant(UnknownFileType) reserved(do)] delete[delete(-) constant(FileType)operator(.)ident(fetch) string] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) ident(assert_throws) symbol(:not_found) reserved(do)] delete[delete(-) constant(FileType)operator(.)ident(fetch) string reserved(do)] delete[delete(-) ident(throw) symbol(:not_found)] delete[delete(-) reserved(end)] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) ident(assert_equal) symbol(:default)operator(,) constant(FileType)operator(.)ident(fetch)operator(()stringoperator(,) symbol(:default)operator(\))] delete[delete(-)] delete[delete(-) ident(stderr)operator(,) ident(fake_stderr) operator(=) global_variable($stderr)operator(,) constant(Object)operator(.)ident(new)] delete[delete(-) global_variable($err) operator(=) string] delete[delete(-) reserved(def) ident(fake_stderr)operator(.)method(write) ident(x)] delete[delete(-) global_variable($err) operator(<<) ident(x)] delete[delete(-) reserved(end)] delete[delete(-) global_variable($stderr) operator(=) ident(fake_stderr)] delete[delete(-) constant(FileType)operator(.)ident(fetch)operator(()stringoperator(,) symbol(:default)operator(\)) operator({) operator(})] delete[delete(-) ident(assert_equal) stringoperator(,) global_variable($err)] delete[delete(-) global_variable($stderr) operator(=) ident(stderr)] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) reserved(def) method(test_ruby)] delete[delete(-) ident(assert_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_not_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_not_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_not_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_not_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) reserved(def) method(test_c)] delete[delete(-) ident(assert_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_not_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_not_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_not_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_not_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) reserved(def) method(test_html)] delete[delete(-) ident(assert_equal) symbol(:html)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_equal) symbol(:xhtml)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_equal) symbol(:xhtml)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_equal) symbol(:rhtml)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) reserved(def) method(test_yaml)] delete[delete(-) ident(assert_equal) symbol(:yaml)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_equal) symbol(:yaml)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_equal) symbol(:yaml)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) ident(assert_not_equal) symbol(:yaml)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) reserved(def) method(test_shebang)] delete[delete(-) ident(dir) operator(=) string] delete[delete(-) reserved(if) constant(File)operator(.)ident(directory?) ident(dir)] delete[delete(-) constant(Dir)operator(.)ident(chdir) ident(dir) reserved(do)] delete[delete(-) ident(assert_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] delete[delete(-) reserved(end)] delete[delete(-) reserved(end)] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-)reserved(end)] head[head(Index: )plain(lib/coderay/helpers/plugin.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/helpers/plugin.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/helpers/plugin.rb)plain( (revision 250\))] change[change(@@)plain( -1,3 +1,5 )change(@@)] insert[insert(+)reserved(module) class(CodeRay)] insert[insert(+) ] comment(# = PluginHost) comment(#) comment(# $Id$) change[change(@@)plain( -20,7 +22,7 )change(@@)] comment(#) comment(# Generators[:fancy] #-> FancyGenerator) comment(# # or) delete[delete(-)comment(# require_plugin 'Generators/fancy')] insert[insert(+)comment(# CodeRay.require_plugin 'Generators/fancy')] reserved(module) class(PluginHost) comment(# Raised if Encoders::[] fails because:) change[change(@@)plain( -310,17 +312,18 )change(@@)] reserved(end) delete[delete(-)] comment(# Convenience method for plugin loading.) comment(# The syntax used is:) comment(#) delete[delete(-)comment(# require_plugin '/')] insert[insert(+)comment(# CodeRay.require_plugin '/')] comment(#) comment(# Returns the loaded plugin.) delete[delete(-)reserved(def) method(require_plugin) ident(path)] insert[insert(+)reserved(def) pre_constant(self)operator(.)method(require_plugin) ident(path)] ident(host_id)operator(,) ident(plugin_id) operator(=) ident(path)operator(.)ident(split) stringoperator(,) integer(2) ident(host) operator(=) constant(PluginHost)operator(.)ident(host_by_id)operator(()ident(host_id)operator(\)) ident(raise) constant(PluginHost)operator(::)constant(HostNotFound)operator(,) stringcontent( found.)delimiter(")> reserved(unless) ident(host) ident(host)operator(.)ident(load) ident(plugin_id) reserved(end) insert[insert(+)] insert[insert(+)reserved(end)] change[change(\\ )plain(No newline at end of file)] head[head(Index: )plain(lib/coderay/helpers/file_type.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/helpers/file_type.rb)plain( (revision 0\))] head[head(+++ )filename(lib/coderay/helpers/file_type.rb)plain( (revision 250\))] change[change(@@)plain( -0,0 +1,210 )change(@@)] insert[insert(+)doctype(#!/usr/bin/env ruby)] insert[insert(+)reserved(module) class(CodeRay)] insert[insert(+)] insert[insert(+)comment(# = FileType)] insert[insert(+)comment(#)] insert[insert(+)comment(# A simple filetype recognizer.)] insert[insert(+)comment(#)] insert[insert(+)comment(# Copyright (c\) 2006 by murphy (Kornelius Kalnbach\) )] insert[insert(+)comment(#)] insert[insert(+)comment(# License:: LGPL / ask the author)] insert[insert(+)comment(# Version:: 0.1 (2005-09-01\))] insert[insert(+)comment(#)] insert[insert(+)comment(# == Documentation)] insert[insert(+)comment(#)] insert[insert(+)comment(# # determine the type of the given)] insert[insert(+)comment(# lang = FileType[ARGV.first])] insert[insert(+)comment(# )] insert[insert(+)comment(# # return :plaintext if the file type is unknown)] insert[insert(+)comment(# lang = FileType.fetch ARGV.first, :plaintext)] insert[insert(+)comment(# )] insert[insert(+)comment(# # try the shebang line, too)] insert[insert(+)comment(# lang = FileType.fetch ARGV.first, :plaintext, true)] insert[insert(+)reserved(module) class(FileType)] insert[insert(+)] insert[insert(+) constant(UnknownFileType) operator(=) constant(Class)operator(.)ident(new) constant(Exception)] insert[insert(+)] insert[insert(+) reserved(class) operator(<<) class(self)] insert[insert(+)] insert[insert(+) comment(# Try to determine the file type of the file.)] insert[insert(+) comment(#)] insert[insert(+) comment(# +filename+ is a relative or absolute path to a file.)] insert[insert(+) comment(#)] insert[insert(+) comment(# The file itself is only accessed when +read_shebang+ is set to true.)] insert[insert(+) comment(# That means you can get filetypes from files that don't exist.)] insert[insert(+) reserved(def) method([]) ident(filename)operator(,) ident(read_shebang) operator(=) pre_constant(false)] insert[insert(+) ident(name) operator(=) constant(File)operator(.)ident(basename) ident(filename)] insert[insert(+) ident(ext) operator(=) constant(File)operator(.)ident(extname)operator(()ident(name)operator(\))operator(.)ident(sub)operator(()regexpoperator(,) stringoperator(\)) comment(# from last dot, delete the leading dot)] insert[insert(+) ident(ext2) operator(=) ident(filename)operator([)regexpoperator(,) integer(1)operator(]) comment(# from first dot)] insert[insert(+)] insert[insert(+) ident(type) operator(=)] insert[insert(+) constant(TypeFromExt)operator([)ident(ext)operator(.)ident(downcase)operator(]) operator(||)] insert[insert(+) operator(()constant(TypeFromExt)operator([)ident(ext2)operator(.)ident(downcase)operator(]) reserved(if) ident(ext2)operator(\)) operator(||)] insert[insert(+) constant(TypeFromName)operator([)ident(name)operator(]) operator(||)] insert[insert(+) constant(TypeFromName)operator([)ident(name)operator(.)ident(downcase)operator(])] insert[insert(+) ident(type) operator(||=) ident(shebang)operator(()ident(filename)operator(\)) reserved(if) ident(read_shebang)] insert[insert(+)] insert[insert(+) ident(type)] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) reserved(def) method(shebang) ident(filename)] insert[insert(+) reserved(begin)] insert[insert(+) constant(File)operator(.)ident(open) ident(filename)operator(,) string reserved(do) operator(|)ident(f)operator(|)] insert[insert(+) reserved(if) ident(first_line) operator(=) ident(f)operator(.)ident(gets)] insert[insert(+) reserved(if) ident(type) operator(=) ident(first_line)operator([)constant(TypeFromShebang)operator(])] insert[insert(+) ident(type)operator(.)ident(to_sym)] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] insert[insert(+) reserved(rescue) constant(IOError)] insert[insert(+) pre_constant(nil)] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) comment(# This works like Hash#fetch.)] insert[insert(+) comment(#)] insert[insert(+) comment(# If the filetype cannot be found, the +default+ value)] insert[insert(+) comment(# is returned.)] insert[insert(+) reserved(def) method(fetch) ident(filename)operator(,) ident(default) operator(=) pre_constant(nil)operator(,) ident(read_shebang) operator(=) pre_constant(false)] insert[insert(+) reserved(if) ident(default) reserved(and) ident(block_given?)] insert[insert(+) ident(warn) string] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) reserved(unless) ident(type) operator(=) pre_constant(self)operator([)ident(filename)operator(,) ident(read_shebang)operator(])] insert[insert(+) reserved(return) reserved(yield) reserved(if) ident(block_given?)] insert[insert(+) reserved(return) ident(default) reserved(if) ident(default)] insert[insert(+) ident(raise) constant(UnknownFileType)operator(,) string operator(%) ident(filename)] insert[insert(+) reserved(end)] insert[insert(+) ident(type)] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) constant(TypeFromExt) operator(=) operator({)] insert[insert(+) string operator(=)operator(>) symbol(:ruby)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:ruby)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:ruby)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:ruby)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:c)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:c)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:c)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:xml)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:html)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:html)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:xhtml)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:debug)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:rhtml)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:rhtml)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:scheme)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:scheme)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:yaml)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:yaml)operator(,)] insert[insert(+) operator(})] insert[insert(+)] insert[insert(+) constant(TypeFromShebang) operator(=) regexp] insert[insert(+)] insert[insert(+) constant(TypeFromName) operator(=) operator({)] insert[insert(+) string operator(=)operator(>) symbol(:ruby)operator(,)] insert[insert(+) string operator(=)operator(>) symbol(:ruby)operator(,)] insert[insert(+) operator(})] insert[insert(+)] insert[insert(+)reserved(end)] insert[insert(+)] insert[insert(+)reserved(end)] insert[insert(+)] insert[insert(+)reserved(if) global_variable($0) operator(==) pre_constant(__FILE__)] insert[insert(+) global_variable($VERBOSE) operator(=) pre_constant(true)] insert[insert(+) ident(eval) pre_constant(DATA)operator(.)ident(read)operator(,) pre_constant(nil)operator(,) global_variable($0)operator(,) pre_constant(__LINE__)operator(+)integer(4)] insert[insert(+)reserved(end)] insert[insert(+)] insert[insert(+)comment(__END__)] insert[insert(+)ident(require) string] insert[insert(+)] insert[insert(+)reserved(class) class(TC_FileType) operator(<) constant(Test)operator(::)constant(Unit)operator(::)constant(TestCase)] insert[insert(+) ] insert[insert(+) ident(include) constant(CodeRay)] insert[insert(+) ] insert[insert(+) reserved(def) method(test_fetch)] insert[insert(+) ident(assert_raise) constant(FileType)operator(::)constant(UnknownFileType) reserved(do)] insert[insert(+) constant(FileType)operator(.)ident(fetch) string] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) ident(assert_throws) symbol(:not_found) reserved(do)] insert[insert(+) constant(FileType)operator(.)ident(fetch) string reserved(do)] insert[insert(+) ident(throw) symbol(:not_found)] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) ident(assert_equal) symbol(:default)operator(,) constant(FileType)operator(.)ident(fetch)operator(()stringoperator(,) symbol(:default)operator(\))] insert[insert(+)] insert[insert(+) ident(stderr)operator(,) ident(fake_stderr) operator(=) global_variable($stderr)operator(,) constant(Object)operator(.)ident(new)] insert[insert(+) global_variable($err) operator(=) string] insert[insert(+) reserved(def) ident(fake_stderr)operator(.)method(write) ident(x)] insert[insert(+) global_variable($err) operator(<<) ident(x)] insert[insert(+) reserved(end)] insert[insert(+) global_variable($stderr) operator(=) ident(fake_stderr)] insert[insert(+) constant(FileType)operator(.)ident(fetch)operator(()stringoperator(,) symbol(:default)operator(\)) operator({) operator(})] insert[insert(+) ident(assert_equal) stringoperator(,) global_variable($err)] insert[insert(+) global_variable($stderr) operator(=) ident(stderr)] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) reserved(def) method(test_ruby)] insert[insert(+) ident(assert_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_not_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_not_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_not_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_not_equal) symbol(:ruby)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) reserved(def) method(test_c)] insert[insert(+) ident(assert_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_not_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_not_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_not_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_not_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) reserved(def) method(test_html)] insert[insert(+) ident(assert_equal) symbol(:html)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_equal) symbol(:xhtml)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_equal) symbol(:xhtml)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_equal) symbol(:rhtml)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_equal) symbol(:rhtml)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) reserved(def) method(test_yaml)] insert[insert(+) ident(assert_equal) symbol(:yaml)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_equal) symbol(:yaml)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_equal) symbol(:yaml)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) ident(assert_not_equal) symbol(:yaml)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) reserved(def) method(test_no_shebang)] insert[insert(+) ident(dir) operator(=) string] insert[insert(+) reserved(if) constant(File)operator(.)ident(directory?) ident(dir)] insert[insert(+) constant(Dir)operator(.)ident(chdir) ident(dir) reserved(do)] insert[insert(+) ident(assert_equal) symbol(:c)operator(,) constant(FileType)operator([)stringoperator(])] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] insert[insert(+) ] insert[insert(+) reserved(def) method(test_shebang_empty_file)] insert[insert(+) ident(require) string] insert[insert(+) ident(tmpfile) operator(=) constant(File)operator(.)ident(join)operator(()constant(Dir)operator(.)ident(tmpdir)operator(,) stringoperator(\))] insert[insert(+) constant(File)operator(.)ident(open)operator(()ident(tmpfile)operator(,) stringoperator(\)) operator({) operator(}) comment(# touch)] insert[insert(+) ident(assert_equal) pre_constant(nil)operator(,) constant(FileType)operator([)ident(tmpfile)operator(])] insert[insert(+) reserved(end)] insert[insert(+) ] insert[insert(+) reserved(def) method(test_shebang)] insert[insert(+) ident(require) string] insert[insert(+) ident(tmpfile) operator(=) constant(File)operator(.)ident(join)operator(()constant(Dir)operator(.)ident(tmpdir)operator(,) stringoperator(\))] insert[insert(+) constant(File)operator(.)ident(open)operator(()ident(tmpfile)operator(,) stringoperator(\)) operator({) operator(|)ident(f)operator(|) ident(f)operator(.)ident(puts) string operator(})] insert[insert(+) ident(assert_equal) symbol(:ruby)operator(,) constant(FileType)operator([)ident(tmpfile)operator(,) pre_constant(true)operator(])] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+)reserved(end)] head[head(Property changes on: )plain(lib/coderay/helpers/file_type.rb)] head[head(___________________________________________________________________)filename()] head[head(Added: )plain(svn:keywords)] insert[insert( +)plain( Id Rev)] head[head(Index: )plain(lib/coderay/helpers/gzip_simple.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/helpers/gzip_simple.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/helpers/gzip_simple.rb)plain( (revision 250\))] change[change(@@)plain( -46,6 +46,7 )change(@@)] reserved(end) reserved(end) insert[insert(+)] comment(# String extensions to use the GZip module.) comment(#) comment(# The methods gzip and gunzip provide an even more simple) head[head(Index: )plain(lib/coderay/helpers/word_list.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/helpers/word_list.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/helpers/word_list.rb)plain( (revision 250\))] change[change(@@)plain( -1,15 +1,19 )change(@@)] insert[insert(+)reserved(module) class(CodeRay)] insert[insert(+)] comment(# = WordList) insert[insert(+)comment(# )] insert[insert(+)comment(# A Hash subclass designed for mapping word lists to token types.)] insert[insert(+)comment(# )] insert[insert(+)comment(# Copyright (c\) 2006 by murphy (Kornelius Kalnbach\) )] comment(#) delete[delete(-)comment(# Copyright (c\) 2006 by murphy (Kornelius Kalnbach\) )] delete[delete(-)comment(#)] comment(# License:: LGPL / ask the author) delete[delete(-)comment(# Version:: 1.0 (2006-Feb-3\))] insert[insert(+)comment(# Version:: 1.1 (2006-Oct-19\))] comment(#) comment(# A WordList is a Hash with some additional features.) comment(# It is intended to be used for keyword recognition.) comment(#) comment(# WordList is highly optimized to be used in Scanners,) delete[delete(-)comment(# typically to decide whether a given ident is a keyword.)] insert[insert(+)comment(# typically to decide whether a given ident is a special token.)] comment(#) comment(# For case insensitive words use CaseIgnoringWordList.) comment(#) change[change(@@)plain( -47,25 +51,30 )change(@@)] comment(# ...) reserved(class) class(WordList) operator(<) constant(Hash) delete[delete(-) comment(# Create a WordList for the given +words+.)] delete[delete(-) comment(#)] delete[delete(-) comment(# This WordList responds to [] with +true+, if the word is)] delete[delete(-) comment(# in +words+, and with +false+ otherwise.)] delete[delete(-) reserved(def) pre_constant(self)operator(.)method(for) ident(words)] delete[delete(-) ident(new)operator(.)ident(add) ident(words)] delete[delete(-) reserved(end)] delete[delete(-)] comment(# Creates a new WordList with +default+ as default value.) delete[delete(-) reserved(def) method(initialize) ident(default) operator(=) pre_constant(false)operator(,) operator(&)ident(block)] delete[delete(-) reserved(super) ident(default)operator(,) operator(&)ident(block)] insert[insert(+) comment(# )] insert[insert(+) comment(# You can activate +caching+ to store the results for every [] request.)] insert[insert(+) comment(# )] insert[insert(+) comment(# With caching, methods like +include?+ or +delete+ may no longer behave)] insert[insert(+) comment(# as you expect. Therefore, it is recommended to use the [] method only.)] insert[insert(+) reserved(def) method(initialize) ident(default) operator(=) pre_constant(false)operator(,) ident(caching) operator(=) pre_constant(false)operator(,) operator(&)ident(block)] insert[insert(+) reserved(if) ident(block)] insert[insert(+) ident(raise) constant(ArgumentError)operator(,) string reserved(if) ident(caching)] insert[insert(+) reserved(super)operator(()operator(&)ident(block)operator(\))] insert[insert(+) reserved(else)] insert[insert(+) reserved(if) ident(caching)] insert[insert(+) reserved(super)operator(()operator(\)) reserved(do) operator(|)ident(h)operator(,) ident(k)operator(|)] insert[insert(+) ident(h)operator([)ident(k)operator(]) operator(=) ident(h)operator(.)ident(fetch) ident(k)operator(,) ident(default)] insert[insert(+) reserved(end)] insert[insert(+) reserved(else)] insert[insert(+) reserved(super) ident(default)] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] reserved(end) delete[delete(-) comment(# Checks if a word is included.)] delete[delete(-) reserved(def) method(include?) ident(word)] delete[delete(-) ident(has_key?) ident(word)] delete[delete(-) reserved(end)] delete[delete(-)] comment(# Add words to the list and associate them with +kind+.) insert[insert(+) comment(# )] insert[insert(+) comment(# Returns +self+, so you can concat add calls.)] reserved(def) method(add) ident(words)operator(,) ident(kind) operator(=) pre_constant(true) ident(words)operator(.)ident(each) reserved(do) operator(|)ident(word)operator(|) pre_constant(self)operator([)ident(word)operator(]) operator(=) ident(kind) change[change(@@)plain( -78,24 +87,30 )change(@@)] comment(# A CaseIgnoringWordList is like a WordList, only that) comment(# keys are compared case-insensitively.) insert[insert(+)comment(# )] insert[insert(+)comment(# Ignoring the text case is realized by sending the +downcase+ message to)] insert[insert(+)comment(# all keys.)] insert[insert(+)comment(# )] insert[insert(+)comment(# Caching usually makes a CaseIgnoringWordList faster, but it has to be)] insert[insert(+)comment(# activated explicitely.)] reserved(class) class(CaseIgnoringWordList) operator(<) constant(WordList) delete[delete(-) comment(# Creates a new WordList with +default+ as default value.)] delete[delete(-) comment(#)] delete[delete(-) comment(# Text case is ignored.)] delete[delete(-) reserved(def) method(initialize) ident(default) operator(=) pre_constant(false)operator(,) operator(&)ident(block)] delete[delete(-) ident(block) operator(||=) ident(proc) reserved(do) operator(|)ident(h)operator(,) ident(k)operator(|)] delete[delete(-) ident(h)operator([)ident(k)operator(]) operator(=) ident(h)operator(.)ident(fetch) ident(k)operator(.)ident(downcase)operator(,) ident(default)] insert[insert(+) comment(# Creates a new case-insensitive WordList with +default+ as default value.)] insert[insert(+) comment(# )] insert[insert(+) comment(# You can activate caching to store the results for every [] request.)] insert[insert(+) reserved(def) method(initialize) ident(default) operator(=) pre_constant(false)operator(,) ident(caching) operator(=) pre_constant(false)] insert[insert(+) reserved(if) ident(caching)] insert[insert(+) reserved(super)operator(()ident(default)operator(,) pre_constant(false)operator(\)) reserved(do) operator(|)ident(h)operator(,) ident(k)operator(|)] insert[insert(+) ident(h)operator([)ident(k)operator(]) operator(=) ident(h)operator(.)ident(fetch) ident(k)operator(.)ident(downcase)operator(,) ident(default)] insert[insert(+) reserved(end)] insert[insert(+) reserved(else)] insert[insert(+) reserved(def) pre_constant(self)operator(.)method([]) ident(key) comment(# :nodoc:)] insert[insert(+) reserved(super)operator(()ident(key)operator(.)ident(downcase)operator(\))] insert[insert(+) reserved(end)] reserved(end) delete[delete(-) reserved(super) ident(default)] reserved(end) delete[delete(-) comment(# Checks if a word is included.)] delete[delete(-) reserved(def) method(include?) ident(word)] delete[delete(-) ident(has_key?) ident(word)operator(.)ident(downcase)] delete[delete(-) reserved(end)] delete[delete(-)] delete[delete(-) comment(# Add words to the list and associate them with +kind+.)] insert[insert(+) comment(# Add +words+ to the list and associate them with +kind+.)] reserved(def) method(add) ident(words)operator(,) ident(kind) operator(=) pre_constant(true) ident(words)operator(.)ident(each) reserved(do) operator(|)ident(word)operator(|) pre_constant(self)operator([)ident(word)operator(.)ident(downcase)operator(]) operator(=) ident(kind) change[change(@@)plain( -104,3 +119,5 )change(@@)] reserved(end) reserved(end) insert[insert(+)] insert[insert(+)reserved(end)] change[change(\\ )plain(No newline at end of file)] head[head(Index: )plain(lib/coderay/styles/cycnus.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/styles/cycnus.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/styles/cycnus.rb)plain( (revision 250\))] change[change(@@)plain( -42,12 +42,14 )change(@@)] constant(MAIN) constant(TOKEN_COLORS) operator(=) string insert[insert(+)operator(.)ident(debug) operator({) ident(color)symbol(:white) operator(!) ident(important)operator(;) ident(background)symbol(:blue) operator(!) ident(important)operator(;) operator(})] insert[insert(+)] operator(.)ident(af) operator({) ident(color)operator(:)comment(#00C }) operator(.)ident(an) operator({) ident(color)operator(:)comment(#007 }) operator(.)ident(av) operator({) ident(color)operator(:)comment(#700 }) operator(.)ident(aw) operator({) ident(color)operator(:)comment(#C00 }) operator(.)ident(bi) operator({) ident(color)operator(:)comment(#509; font-weight:bold }) delete[delete(-)operator(.)ident(c) operator({) ident(color)operator(:)comment(#888 })] insert[insert(+)operator(.)ident(c) operator({) ident(color)operator(:)comment(#666; })] operator(.)ident(ch) operator({) ident(color)operator(:)comment(#04D }) operator(.)ident(ch) operator(.)ident(k) operator({) ident(color)operator(:)comment(#04D }) change[change(@@)plain( -83,7 +85,7 )change(@@)] operator(.)ident(la) operator({) ident(color)operator(:)comment(#970; font-weight:bold }) operator(.)ident(lv) operator({) ident(color)operator(:)comment(#963 }) operator(.)ident(oc) operator({) ident(color)operator(:)comment(#40E; font-weight:bold }) delete[delete(-)operator(.)ident(on) operator({) ident(color)operator(:)comment(#000; font-weight:bold })] insert[insert(+)operator(.)ident(of) operator({) ident(color)operator(:)comment(#000; font-weight:bold })] operator(.)ident(op) operator({) operator(}) operator(.)ident(pc) operator({) ident(color)operator(:)comment(#038; font-weight:bold }) operator(.)ident(pd) operator({) ident(color)operator(:)comment(#369; font-weight:bold }) head[head(Index: )plain(lib/coderay/styles/murphy.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/styles/murphy.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/styles/murphy.rb)plain( (revision 250\))] change[change(@@)plain( -47,7 +47,7 )change(@@)] operator(.)ident(av) operator({) ident(color)operator(:)comment(#700; }) operator(.)ident(aw) operator({) ident(color)operator(:)comment(#C00; }) operator(.)ident(bi) operator({) ident(color)operator(:)comment(#509; font-weight:bold; }) delete[delete(-)operator(.)ident(c) operator({) ident(color)operator(:)comment(#666; })] insert[insert(+)operator(.)ident(c) operator({) ident(color)operator(:)comment(#555; background-color: black; })] operator(.)ident(ch) operator({) ident(color)operator(:)comment(#88F; }) operator(.)ident(ch) operator(.)ident(k) operator({) ident(color)operator(:)comment(#04D; }) change[change(@@)plain( -77,7 +77,7 )change(@@)] operator(.)ident(la) operator({) ident(color)operator(:)comment(#970; font-weight:bold; }) operator(.)ident(lv) operator({) ident(color)operator(:)comment(#963; }) operator(.)ident(oc) operator({) ident(color)operator(:)comment(#40E; font-weight:bold; }) delete[delete(-)operator(.)ident(on) operator({) ident(color)operator(:)comment(#000; font-weight:bold; })] insert[insert(+)operator(.)ident(of) operator({) ident(color)operator(:)comment(#000; font-weight:bold; })] operator(.)ident(op) operator({) operator(}) operator(.)ident(pc) operator({) ident(color)operator(:)comment(#08f; font-weight:bold; }) operator(.)ident(pd) operator({) ident(color)operator(:)comment(#369; font-weight:bold; }) head[head(Index: )plain(lib/coderay/tokens.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/tokens.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/tokens.rb)plain( (revision 250\))] change[change(@@)plain( -115,7 +115,7 )change(@@)] comment(# tokens.each_text_token { |text, kind| text.replace html_escape(text\) }) reserved(def) method(each_text_token) ident(each) reserved(do) operator(|)ident(text)operator(,) ident(kind)operator(|) delete[delete(-) reserved(next) reserved(unless) ident(text)operator(.)ident(respond_to?) symbol(:to_str)] insert[insert(+) reserved(next) reserved(unless) ident(text)operator(.)ident(is_a?) operator(::)constant(String)] reserved(yield) ident(text)operator(,) ident(kind) reserved(end) reserved(end) change[change(@@)plain( -252,7 +252,7 )change(@@)] comment(#) comment(# You can configure the level of compression,) comment(# but the default value 7 should be what you want) delete[delete(-) comment(# in most cases as it is a good comprimise between)] insert[insert(+) comment(# in most cases as it is a good compromise between)] comment(# speed and compression rate.) comment(#) comment(# See GZip module.) change[change(@@)plain( -267,9 +267,20 )change(@@)] comment(# Should be equal to the input size before) comment(# scanning.) reserved(def) method(text_size) delete[delete(-) ident(map) operator({) operator(|)ident(t)operator(,) ident(k)operator(|) ident(t) operator(})operator(.)ident(join)operator(.)ident(size)] insert[insert(+) ident(size) operator(=) integer(0)] insert[insert(+) ident(each_text_token) reserved(do) operator(|)ident(t)operator(,) ident(k)operator(|)] insert[insert(+) ident(size) operator(+) ident(t)operator(.)ident(size)] insert[insert(+) reserved(end)] insert[insert(+) ident(size)] reserved(end) insert[insert(+) comment(# The total size of the tokens.)] insert[insert(+) comment(# Should be equal to the input size before)] insert[insert(+) comment(# scanning.)] insert[insert(+) reserved(def) method(text)] insert[insert(+) ident(map) operator({) operator(|)ident(t)operator(,) ident(k)operator(|) ident(t) reserved(if) ident(t)operator(.)ident(is_a?) operator(::)constant(String) operator(})operator(.)ident(join)] insert[insert(+) reserved(end)] insert[insert(+)] comment(# Include this module to give an object an #undump) comment(# method.) comment(#) change[change(@@)plain( -342,7 +353,7 )change(@@)] comment(#) comment(# Returns self.) reserved(def) method(<<) ident(token) delete[delete(-) instance_variable(@callback)operator(.)ident(call) ident(token)] insert[insert(+) instance_variable(@callback)operator(.)ident(call)operator(()operator(*)ident(token)operator(\))] instance_variable(@size) operator(+=) integer(1) pre_constant(self) reserved(end) change[change(@@)plain( -365,4 +376,8 )change(@@)] reserved(end) insert[insert(+) ] insert[insert(+) comment(# Token name abbreviations)] insert[insert(+) ident(require) string] insert[insert(+)] reserved(end) head[head(Index: )plain(lib/coderay/duo.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/duo.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/duo.rb)plain( (revision 250\))] change[change(@@)plain( -4,26 +4,84 )change(@@)] comment(#) comment(# $Id: scanner.rb 123 2006-03-21 14:46:34Z murphy $) comment(#) delete[delete(-) comment(# TODO: Doc.)] insert[insert(+) comment(# A Duo is a convenient way to use CodeRay. You just create a Duo,)] insert[insert(+) comment(# giving it a lang (language of the input code\) and a format (desired)] insert[insert(+) comment(# output format\), and call Duo#highlight with the code.)] insert[insert(+) comment(# )] insert[insert(+) comment(# Duo makes it easy to re-use both scanner and encoder for a repetitive)] insert[insert(+) comment(# task. It also provides a very easy interface syntax:)] insert[insert(+) comment(# )] insert[insert(+) comment(# require 'coderay')] insert[insert(+) comment(# CodeRay::Duo[:python, :div].highlight 'import this')] insert[insert(+) comment(# )] insert[insert(+) comment(# Until you want to do uncommon things with CodeRay, I recommend to use)] insert[insert(+) comment(# this method, since it takes care of everything.)] reserved(class) class(Duo) delete[delete(-) ident(attr_accessor) symbol(:scanner)operator(,) symbol(:encoder)] delete[delete(-)] delete[delete(-) reserved(def) method(initialize) ident(lang)operator(,) ident(format)operator(,) ident(options) operator(=) operator({)operator(})] delete[delete(-) instance_variable(@scanner) operator(=) constant(CodeRay)operator(.)ident(scanner) ident(lang)operator(,) constant(CodeRay)operator(.)ident(get_scanner_options)operator(()ident(options)operator(\))] delete[delete(-) instance_variable(@encoder) operator(=) constant(CodeRay)operator(.)ident(encoder) ident(format)operator(,) ident(options)] insert[insert(+) ident(attr_accessor) symbol(:lang)operator(,) symbol(:format)operator(,) symbol(:options)] insert[insert(+) ] insert[insert(+) comment(# Create a new Duo, holding a lang and a format to highlight code.)] insert[insert(+) comment(# )] insert[insert(+) comment(# simple:)] insert[insert(+) comment(# CodeRay::Duo[:ruby, :page].highlight 'bla 42')] insert[insert(+) comment(# )] insert[insert(+) comment(# streaming:)] insert[insert(+) comment(# CodeRay::Duo[:ruby, :page].highlight 'bar 23', :stream => true)] insert[insert(+) comment(# )] insert[insert(+) comment(# with options:)] insert[insert(+) comment(# CodeRay::Duo[:ruby, :html, :hint => :debug].highlight '????::??')] insert[insert(+) comment(# )] insert[insert(+) comment(# alternative syntax without options:)] insert[insert(+) comment(# CodeRay::Duo[:ruby => :statistic].encode 'class << self; end')] insert[insert(+) comment(# )] insert[insert(+) comment(# alternative syntax with options:)] insert[insert(+) comment(# CodeRay::Duo[{ :ruby => :statistic }, :do => :something].encode 'abc')] insert[insert(+) comment(# )] insert[insert(+) comment(# The options are forwarded to scanner and encoder)] insert[insert(+) comment(# (see CodeRay.get_scanner_options\).)] insert[insert(+) reserved(def) method(initialize) ident(lang) operator(=) pre_constant(nil)operator(,) ident(format) operator(=) pre_constant(nil)operator(,) ident(options) operator(=) operator({)operator(})] insert[insert(+) reserved(if) ident(format) operator(==) pre_constant(nil) reserved(and) ident(lang)operator(.)ident(is_a?) constant(Hash) reserved(and) ident(lang)operator(.)ident(size) operator(==) integer(1)] insert[insert(+) instance_variable(@lang) operator(=) ident(lang)operator(.)ident(keys)operator(.)ident(first)] insert[insert(+) instance_variable(@format) operator(=) ident(lang)operator([)instance_variable(@lang)operator(])] insert[insert(+) reserved(else)] insert[insert(+) instance_variable(@lang) operator(=) ident(lang)] insert[insert(+) instance_variable(@format) operator(=) ident(format)] insert[insert(+) reserved(end)] insert[insert(+) instance_variable(@options) operator(=) ident(options)] reserved(end) reserved(class) operator(<<) class(self) insert[insert(+) comment(# To allow calls like Duo[:ruby, :html].highlight.)] reserved(alias) method([]) method(new) reserved(end) delete[delete(-) reserved(def) method(encode) ident(code)] delete[delete(-) instance_variable(@scanner)operator(.)ident(string) operator(=) ident(code)] delete[delete(-) instance_variable(@encoder)operator(.)ident(encode_tokens)operator(()ident(scanner)operator(.)ident(tokenize)operator(\))] insert[insert(+) comment(# The scanner of the duo. Only created once.)] insert[insert(+) reserved(def) method(scanner)] insert[insert(+) instance_variable(@scanner) operator(||=) constant(CodeRay)operator(.)ident(scanner) instance_variable(@lang)operator(,) constant(CodeRay)operator(.)ident(get_scanner_options)operator(()instance_variable(@options)operator(\))] reserved(end) insert[insert(+) ] insert[insert(+) comment(# The encoder of the duo. Only created once.)] insert[insert(+) reserved(def) method(encoder)] insert[insert(+) instance_variable(@encoder) operator(||=) constant(CodeRay)operator(.)ident(encoder) instance_variable(@format)operator(,) instance_variable(@options)] insert[insert(+) reserved(end)] insert[insert(+) ] insert[insert(+) comment(# Tokenize and highlight the code using +scanner+ and +encoder+.)] insert[insert(+) comment(#)] insert[insert(+) comment(# If the :stream option is set, the Duo will go into streaming mode,)] insert[insert(+) comment(# saving memory for the cost of time.)] insert[insert(+) reserved(def) method(encode) ident(code)operator(,) ident(options) operator(=) operator({) symbol(:stream) operator(=)operator(>) pre_constant(false) operator(})] insert[insert(+) ident(stream) operator(=) ident(options)operator(.)ident(delete) symbol(:stream)] insert[insert(+) ident(options) operator(=) instance_variable(@options)operator(.)ident(merge) ident(options)] insert[insert(+) reserved(if) ident(stream)] insert[insert(+) ident(encoder)operator(.)ident(encode_stream)operator(()ident(code)operator(,) instance_variable(@lang)operator(,) ident(options)operator(\))] insert[insert(+) reserved(else)] insert[insert(+) ident(scanner)operator(.)ident(code) operator(=) ident(code)] insert[insert(+) ident(encoder)operator(.)ident(encode_tokens)operator(()ident(scanner)operator(.)ident(tokenize)operator(,) ident(options)operator(\))] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] reserved(alias) method(highlight) method(encode) reserved(end) reserved(end) insert[insert(+)] head[head(Index: )plain(lib/coderay/scanner.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/scanner.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/scanner.rb)plain( (revision 250\))] change[change(@@)plain( -66,8 +66,18 )change(@@)] reserved(end) reserved(def) method(normify) ident(code) delete[delete(-) ident(code) operator(=) ident(code)operator(.)ident(to_s)operator(.)ident(to_unix)] insert[insert(+) ident(code) operator(=) ident(code)operator(.)ident(to_s)] insert[insert(+) ident(code)operator(.)ident(force_encoding) string reserved(if) ident(code)operator(.)ident(respond_to?) symbol(:force_encoding)] insert[insert(+) ident(code)operator(.)ident(to_unix)] reserved(end) insert[insert(+) ] insert[insert(+) reserved(def) method(file_extension) ident(extension) operator(=) pre_constant(nil)] insert[insert(+) reserved(if) ident(extension)] insert[insert(+) instance_variable(@file_extension) operator(=) ident(extension)operator(.)ident(to_s)] insert[insert(+) reserved(else)] insert[insert(+) instance_variable(@file_extension) operator(||=) ident(plugin_id)operator(.)ident(to_s)] insert[insert(+) reserved(end)] insert[insert(+) reserved(end) ] reserved(end) change[change(@@)plain( -117,9 +127,6 )change(@@)] ident(setup) reserved(end) delete[delete(-) comment(# More mnemonic accessor name for the input string.)] delete[delete(-) reserved(alias) method(code) method(string)] delete[delete(-)] reserved(def) method(reset) reserved(super) ident(reset_instance) change[change(@@)plain( -131,6 +138,10 )change(@@)] ident(reset_instance) reserved(end) insert[insert(+) comment(# More mnemonic accessor name for the input string.)] insert[insert(+) reserved(alias) method(code) method(string)] insert[insert(+) reserved(alias) method(code=) method(string=)] insert[insert(+)] comment(# Scans the code and returns all tokens in a Tokens object.) reserved(def) method(tokenize) ident(new_string)operator(=)pre_constant(nil)operator(,) ident(options) operator(=) operator({)operator(}) ident(options) operator(=) instance_variable(@options)operator(.)ident(merge)operator(()ident(options)operator(\)) change[change(@@)plain( -148,6 +159,11 )change(@@)] reserved(def) method(tokens) instance_variable(@cached_tokens) operator(||=) ident(tokenize) reserved(end) insert[insert(+) ] insert[insert(+) comment(# Whether the scanner is in streaming mode.)] insert[insert(+) reserved(def) method(streaming?)] insert[insert(+) operator(!)operator(!)instance_variable(@options)operator([)symbol(:stream)operator(])] insert[insert(+) reserved(end)] comment(# Traverses the tokens.) reserved(def) method(each) operator(&)ident(block) change[change(@@)plain( -195,7 +211,7 )change(@@)] ident(raise) constant(ScanError)operator(,) string operator(%) operator([) delete[delete(-)operator(**)operator(*)constant(ERROR) reserved(in) symbol] insert[insert(+)operator(**)operator(*)constant(ERROR) reserved(in) symbol] ident(tokens)operator(:) operator(%)ident(s) change[change(@@)plain( -211,13 +227,14 )change(@@)] operator(**)operator(*)constant(ERROR)operator(**)operator(*) constant(EOE) delete[delete(-) constant(File)operator(.)ident(basename)operator(()ident(caller)operator([)integer(0)operator(])operator(\))operator(,)] delete[delete(-) ident(msg)operator(,)] delete[delete(-) ident(tokens)operator(.)ident(last)operator(()integer(10)operator(\))operator(.)ident(map) operator({) operator(|)ident(t)operator(|) ident(t)operator(.)ident(inspect) operator(})operator(.)ident(join)operator(()stringoperator(\))operator(,)] delete[delete(-) ident(line)operator(,) ident(pos)operator(,)] delete[delete(-) ident(matched)operator(,) ident(state)operator(,) ident(bol?)operator(,) ident(eos?)operator(,)] delete[delete(-) ident(string)operator([)ident(pos)operator(-)ident(ambit)operator(,)ident(ambit)operator(])operator(,)] delete[delete(-) ident(string)operator([)ident(pos)operator(,)ident(ambit)operator(])operator(,)] insert[insert(+) constant(File)operator(.)ident(basename)operator(()ident(caller)operator([)integer(0)operator(])operator(\))operator(,)] insert[insert(+) ident(msg)operator(,)] insert[insert(+) ident(tokens)operator(.)ident(size)operator(,)] insert[insert(+) ident(tokens)operator(.)ident(last)operator(()integer(10)operator(\))operator(.)ident(map) operator({) operator(|)ident(t)operator(|) ident(t)operator(.)ident(inspect) operator(})operator(.)ident(join)operator(()stringoperator(\))operator(,)] insert[insert(+) ident(line)operator(,) ident(pos)operator(,)] insert[insert(+) ident(matched)operator(,) ident(state)operator(,) ident(bol?)operator(,) ident(eos?)operator(,)] insert[insert(+) ident(string)operator([)ident(pos)operator(-)ident(ambit)operator(,)ident(ambit)operator(])operator(,)] insert[insert(+) ident(string)operator([)ident(pos)operator(,)ident(ambit)operator(])operator(,)] operator(]) reserved(end) head[head(Index: )plain(lib/coderay/for_redcloth.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/for_redcloth.rb)plain( (revision 0\))] head[head(+++ )filename(lib/coderay/for_redcloth.rb)plain( (revision 250\))] change[change(@@)plain( -0,0 +1,72 )change(@@)] insert[insert(+)reserved(module) class(CodeRay) comment(# :nodoc:)] insert[insert(+) ] insert[insert(+) comment(# A little hack to enable CodeRay highlighting in RedCloth.)] insert[insert(+) comment(# )] insert[insert(+) comment(# Usage:)] insert[insert(+) comment(# require 'coderay')] insert[insert(+) comment(# require 'coderay/for_redcloth')] insert[insert(+) comment(# RedCloth.new('@[ruby]puts "Hello, World!"@'\).to_html)] insert[insert(+) comment(# )] insert[insert(+) comment(# Make sure you have RedCloth 4.0.3 activated, for example by calling)] insert[insert(+) comment(# require 'rubygems')] insert[insert(+) comment(# before RedCloth is loaded and before calling CodeRay.for_redcloth.)] insert[insert(+) reserved(module) class(ForRedCloth)] insert[insert(+) ] insert[insert(+) reserved(def) pre_constant(self)operator(.)method(install)] insert[insert(+) ident(gem) stringoperator(,) string= 4.0.3)delimiter(')> reserved(rescue) pre_constant(nil)] insert[insert(+) ident(require) string] insert[insert(+) ident(raise) string reserved(unless) constant(RedCloth)operator(::)constant(VERSION)operator(.)ident(to_s) operator(>)operator(=) string] insert[insert(+) constant(RedCloth)operator(::)constant(TextileDoc)operator(.)ident(send) symbol(:include)operator(,) constant(ForRedCloth)operator(::)constant(TextileDoc)] insert[insert(+) constant(RedCloth)operator(::)constant(Formatters)operator(::)constant(HTML)operator(.)ident(module_eval) reserved(do)] insert[insert(+) reserved(def) method(unescape)operator(()ident(html)operator(\))] insert[insert(+) ident(replacements) operator(=) operator({)] insert[insert(+) string operator(=)operator(>) stringoperator(,)] insert[insert(+) string operator(=)operator(>) stringoperator(,)] insert[insert(+) string operator(=)operator(>) string)delimiter(')>operator(,)] insert[insert(+) string operator(=)operator(>) stringoperator(,)] insert[insert(+) operator(})] insert[insert(+) ident(html)operator(.)ident(gsub)operator(()regexpoperator(\)) operator({) operator(|)ident(entity)operator(|) ident(replacements)operator([)ident(entity)operator(]) operator(})] insert[insert(+) reserved(end)] insert[insert(+) ident(undef_method) symbol(:code)operator(,) symbol(:bc_open)operator(,) symbol(:bc_close)operator(,) symbol(:escape_pre)] insert[insert(+) reserved(def) method(code)operator(()ident(opts)operator(\)) comment(# :nodoc:)] insert[insert(+) ident(opts)operator([)symbol(:block)operator(]) operator(=) pre_constant(true)] insert[insert(+) reserved(if) ident(opts)operator([)symbol(:lang)operator(]) operator(&&) operator(!)ident(filter_coderay)] insert[insert(+) ident(require) string] insert[insert(+) instance_variable(@in_bc) operator(||=) pre_constant(nil)] insert[insert(+) ident(format) operator(=) instance_variable(@in_bc) operator(?) symbol(:div) operator(:) symbol(:span)] insert[insert(+) ident(highlighted_code) operator(=) constant(CodeRay)operator(.)ident(encode) ident(opts)operator([)symbol(:text)operator(])operator(,) ident(opts)operator([)symbol(:lang)operator(])operator(,) ident(format)operator(,) symbol(:stream) operator(=)operator(>) pre_constant(true)] insert[insert(+) ident(highlighted_code)operator(.)ident(sub!)operator(()regexpoperator(\)) operator({) operator(|)ident(m)operator(|) ident(m) operator(+) ident(pba)operator(()instance_variable(@in_bc) operator(||) ident(opts)operator(\)) operator(})] insert[insert(+) ident(highlighted_code) operator(=) ident(unescape)operator(()ident(highlighted_code)operator(\)) reserved(unless) instance_variable(@in_bc)] insert[insert(+) ident(highlighted_code)] insert[insert(+) reserved(else)] insert[insert(+) stringcontent(>)inlinecontent()delimiter(")>] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] insert[insert(+) reserved(def) method(bc_open)operator(()ident(opts)operator(\)) comment(# :nodoc:)] insert[insert(+) ident(opts)operator([)symbol(:block)operator(]) operator(=) pre_constant(true)] insert[insert(+) instance_variable(@in_bc) operator(=) ident(opts)] insert[insert(+) ident(opts)operator([)symbol(:lang)operator(]) operator(?) string operator(:) stringcontent(>)delimiter(")>] insert[insert(+) reserved(end)] insert[insert(+) reserved(def) method(bc_close)operator(()ident(opts)operator(\)) comment(# :nodoc:)] insert[insert(+) instance_variable(@in_bc) operator(=) pre_constant(nil)] insert[insert(+) ident(opts)operator([)symbol(:lang)operator(]) operator(?) string operator(:) string)char(\\n)delimiter(")>] insert[insert(+) reserved(end)] insert[insert(+) reserved(def) method(escape_pre)operator(()ident(text)operator(\))] insert[insert(+) reserved(if) instance_variable(@in_bc) operator(||=) pre_constant(nil)] insert[insert(+) ident(text)] insert[insert(+) reserved(else)] insert[insert(+) ident(html_esc)operator(()ident(text)operator(,) symbol(:html_escape_preformatted)operator(\))] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) reserved(module) class(TextileDoc) comment(# :nodoc:)] insert[insert(+) ident(attr_accessor) symbol(:filter_coderay)] insert[insert(+) reserved(end)] insert[insert(+) ] insert[insert(+) reserved(end)] insert[insert(+) ] insert[insert(+)reserved(end)] insert[insert(+)] insert[insert(+)constant(CodeRay)operator(::)constant(ForRedCloth)operator(.)ident(install)] change[change(\\ )plain(No newline at end of file)] head[head(Index: )plain(lib/coderay/scanners/ruby/patterns.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/scanners/ruby/patterns.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/scanners/ruby/patterns.rb)plain( (revision 250\))] change[change(@@)plain( -14,19 +14,14 )change(@@)] constant(DEF_KEYWORDS) operator(=) string constant(UNDEF_KEYWORDS) operator(=) string insert[insert(+) constant(ALIAS_KEYWORDS) operator(=) string] constant(MODULE_KEYWORDS) operator(=) string constant(DEF_NEW_STATE) operator(=) constant(WordList)operator(.)ident(new)operator(()symbol(:initial)operator(\))operator(.) ident(add)operator(()constant(DEF_KEYWORDS)operator(,) symbol(:def_expected)operator(\))operator(.) ident(add)operator(()constant(UNDEF_KEYWORDS)operator(,) symbol(:undef_expected)operator(\))operator(.) insert[insert(+) ident(add)operator(()constant(ALIAS_KEYWORDS)operator(,) symbol(:alias_expected)operator(\))operator(.)] ident(add)operator(()constant(MODULE_KEYWORDS)operator(,) symbol(:module_expected)operator(\)) delete[delete(-) constant(IDENTS_ALLOWING_REGEXP) operator(=) string] delete[delete(-) reserved(and) reserved(or) reserved(not) reserved(while) reserved(until) reserved(unless) reserved(if) reserved(then) reserved(elsif) reserved(when) ident(sub) ident(sub!) ident(gsub) ident(gsub!)] delete[delete(-) ident(scan) ident(slice) ident(slice!) ident(split)] delete[delete(-) operator(])] delete[delete(-) constant(REGEXP_ALLOWED) operator(=) constant(WordList)operator(.)ident(new)operator(()pre_constant(false)operator(\))operator(.)] delete[delete(-) ident(add)operator(()constant(IDENTS_ALLOWING_REGEXP)operator(,) symbol(:set)operator(\))] delete[delete(-)] constant(PREDEFINED_CONSTANTS) operator(=) string pre_constant(nil) pre_constant(true) pre_constant(false) pre_constant(self) pre_constant(DATA) pre_constant(ARGV) pre_constant(ARGF) pre_constant(__FILE__) pre_constant(__LINE__) change[change(@@)plain( -41,19 +36,20 )change(@@)] constant(METHOD_NAME) operator(=) regexpcontent( [?!]? )delimiter(/)modifier(ox)> constant(METHOD_NAME_OPERATOR) operator(=) regexp error(\\)operator(*)error(\\)operator(*)operator(?) comment(# multiplication and power) delete[delete(-) operator(|) operator([)operator(-)operator(+)operator(])error(@)operator(?) comment(# plus, minus)] delete[delete(-) operator(|) operator([)error(\\)regexp] insert[insert(+) operator(|) operator([)operator(-)operator(+)operator(~)operator(])error(@)operator(?) comment(# plus, minus, tilde with and without @)] insert[insert(+) operator(|) operator([)error(\\)regexp] operator(|) error(\\)operator([)error(\\)operator(])operator(=)operator(?) comment(# array getter and setter) operator(|) operator(<<) operator(|) operator(>>) comment(# append or shift left, shift right) operator(|) operator(<=)integer(?>)operator(?) operator(|) operator(>)operator(=)operator(?) comment(# comparison, rocket operator) delete[delete(-) operator(|) operator(===)operator(?) comment(# simple equality and case equality)] insert[insert(+) operator(|) operator(===)operator(?) operator(|) operator(=)operator(~) comment(# simple equality, case equality, match)] insert[insert(+) operator(|) operator(!)operator([)operator(~=)error(@)operator(])operator(?) comment(# negation with and without @, not-equal and not-match)] regexp constant(METHOD_NAME_EX) operator(=) regexpcontent( (?:[?!]|=(?!>\)\)? | )inlinecontent( )delimiter(/)modifier(ox)> constant(INSTANCE_VARIABLE) operator(=) regexpcontent( )delimiter(/)modifier(ox)> constant(CLASS_VARIABLE) operator(=) regexpcontent( )delimiter(/)modifier(ox)> constant(OBJECT_VARIABLE) operator(=) regexpcontent( )delimiter(/)modifier(ox)> constant(GLOBAL_VARIABLE) operator(=) regexpcontent( | [1-9])char(\\d)content(* | 0)char(\\w)content(* | [~&+`'=)char(\\/)content(,;_.<>!@$?*":)char(\\\\)content(] | -[a-zA-Z_0-9] \) )delimiter(/)modifier(ox)> delete[delete(-) constant(PREFIX_VARIABLE) operator(=) regexpcontent( |)inlinecontent( )delimiter(/)modifier(ox)>] insert[insert(+) constant(PREFIX_VARIABLE) operator(=) regexpcontent( | )inlinecontent( )delimiter(/)modifier(ox)>] constant(VARIABLE) operator(=) regexpcontent( | )inlinecontent( )delimiter(/)modifier(ox)> constant(QUOTE_TO_TYPE) operator(=) operator({) change[change(@@)plain( -73,7 +69,7 )change(@@)] constant(EXPONENT) operator(=) regexpcontent( )delimiter(/)modifier(ox)> constant(FLOAT_SUFFIX) operator(=) regexpcontent( | )char(\\.)content( )inlinecontent( )inlinecontent(? )delimiter(/)modifier(ox)> constant(FLOAT_OR_INT) operator(=) regexpcontent( (?: )inlinecontent( (\) \)? )delimiter(/)modifier(ox)> delete[delete(-) constant(NUMERIC) operator(=) regexpcontent( | )inlinecontent( | )inlinecontent( \) | )inlinecontent( \) )delimiter(/)modifier(ox)>] insert[insert(+) constant(NUMERIC) operator(=) regexpcontent( | )inlinecontent( | )inlinecontent( \) | )inlinecontent( \) )delimiter(/)modifier(ox)>] constant(SYMBOL) operator(=) regexp operator(:) change[change(@@)plain( -83,6 +79,7 )change(@@)] operator(|) operator([)string operator(\)) regexp insert[insert(+) constant(METHOD_NAME_OR_SYMBOL) operator(=) regexpcontent( | )inlinecontent( )delimiter(/)modifier(ox)>] comment(# TODO investigste \\M, \\c and \\C escape sequences) comment(# (?: M-\\\\C-|C-\\\\M-|M-\\\\c|c\\\\M-|c|C-|M-\)? (?: \\\\ (?: [0-7]{3} | x[0-9A-Fa-f]{2} | . \) \)) change[change(@@)plain( -111,7 +108,7 )change(@@)] operator(()integer(?:) operator(() operator([)constant(A)operator(-)constant(Za)operator(-)ident(z_0)operator(-)integer(9)operator(])operator(+) operator(\)) comment(# $2 = delim) operator(|) delete[delete(-) operator(() operator([)string] insert[insert(+) operator(() operator([)string] operator(() operator([)operator(^)error(\\)ident(n)operator(])operator(*)operator(?) operator(\)) error(\\)integer(3) comment(# $4 = delim) operator(\)) regexp change[change(@@)plain( -129,15 +126,14 )change(@@)] regexp comment(# Checks for a valid value to follow. This enables) delete[delete(-) comment(# fancy_allowed in method calls.)] insert[insert(+) comment(# value_expected in method calls without parentheses.)] constant(VALUE_FOLLOWS) operator(=) regexp delete[delete(-) error(\\)ident(s)operator(+)] insert[insert(+) operator(()integer(?>)operator([) error(\\)ident(t)error(\\)ident(f)error(\\)ident(v)operator(])operator(+)operator(\))] operator(()integer(?:) operator([)stringident(s)operator(=)operator(]) delete[delete(-) operator(|)] delete[delete(-) operator(<<)operator(-)integer(?\\S)] delete[delete(-) operator(|)] delete[delete(-) comment(#{CHARACTER})] insert[insert(+) operator(|) operator(<<)operator(-)integer(?\\S)] insert[insert(+) operator(|) operator([)operator(-)operator(+)operator(]) error(\\)ident(d)] insert[insert(+) operator(|) comment(#{CHARACTER})] operator(\)) regexp head[head(Index: )plain(lib/coderay/scanners/ruby.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/scanners/ruby.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/scanners/ruby.rb)plain( (revision 250\))] change[change(@@)plain( -18,6 +18,7 )change(@@)] ident(include) constant(Streamable) ident(register_for) symbol(:ruby) insert[insert(+) ident(file_extension) string] ident(helper) symbol(:patterns) change[change(@@)plain( -90,15 +91,15 )change(@@)] reserved(end) reserved(when) string delete[delete(-) reserved(case) ident(peek)operator(()integer(1)operator(\))operator([)integer(0)operator(])] delete[delete(-) reserved(when) integer(?{)] insert[insert(+) reserved(case) ident(peek)operator(()integer(1)operator(\))] insert[insert(+) reserved(when) string] ident(inline_block_stack) operator(<<) operator([)ident(state)operator(,) ident(depth)operator(,) ident(heredocs)operator(]) ident(value_expected) operator(=) pre_constant(true) ident(state) operator(=) symbol(:initial) ident(depth) operator(=) integer(1) ident(tokens) operator(<<) operator([)symbol(:open)operator(,) symbol(:inline)operator(]) ident(tokens) operator(<<) operator([)ident(match) operator(+) ident(getch)operator(,) symbol(:inline_delimiter)operator(]) delete[delete(-) reserved(when) integer(?$)operator(,) integer(?@)] insert[insert(+) reserved(when) stringoperator(,) string] ident(tokens) operator(<<) operator([)ident(match)operator(,) symbol(:escape)operator(]) ident(last_state) operator(=) ident(state) comment(# scan one token as normal code, then return here) ident(state) operator(=) symbol(:initial) change[change(@@)plain( -121,36 +122,37 )change(@@)] comment(# }}}) reserved(else) comment(# {{{) delete[delete(-) reserved(if) ident(match) operator(=) ident(scan)operator(()regexpoperator(\)) reserved(or)] delete[delete(-) operator(() ident(bol?) reserved(and) ident(match) operator(=) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\)) operator(\))] delete[delete(-) reserved(case) ident(m) operator(=) ident(match)operator([)integer(0)operator(])] delete[delete(-) reserved(when) integer(?\\s)operator(,) integer(?\\t)operator(,) integer(?\\f)] delete[delete(-) ident(match) operator(<<) ident(scan)operator(()regexpoperator(\)) reserved(unless) ident(eos?) reserved(or) ident(heredocs)] delete[delete(-) ident(kind) operator(=) symbol(:space)] delete[delete(-) reserved(when) integer(?\\n)operator(,) integer(?\\\\)] delete[delete(-) ident(kind) operator(=) symbol(:space)] delete[delete(-) reserved(if) ident(m) operator(==) integer(?\\n)] delete[delete(-) ident(value_expected) operator(=) pre_constant(true) comment(# FIXME not quite true)] delete[delete(-) ident(state) operator(=) symbol(:initial) reserved(if) ident(state) operator(==) symbol(:undef_comma_expected)] delete[delete(-) reserved(end)] delete[delete(-) reserved(if) ident(heredocs)] delete[delete(-) ident(unscan) comment(# heredoc scanning needs \\n at start)] delete[delete(-) ident(state) operator(=) ident(heredocs)operator(.)ident(shift)] delete[delete(-) ident(tokens) operator(<<) operator([)symbol(:open)operator(,) ident(state)operator(.)ident(type)operator(])] delete[delete(-) ident(heredocs) operator(=) pre_constant(nil) reserved(if) ident(heredocs)operator(.)ident(empty?)] delete[delete(-) reserved(next)] delete[delete(-) reserved(else)] delete[delete(-) ident(match) operator(<<) ident(scan)operator(()regexpoperator(\)) reserved(unless) ident(eos?)] delete[delete(-) reserved(end)] delete[delete(-) reserved(when) integer(?#)operator(,) integer(?=)operator(,) integer(?_)] delete[delete(-) ident(kind) operator(=) symbol(:comment)] delete[delete(-) ident(value_expected) operator(=) pre_constant(true)] insert[insert(+) reserved(if) ident(match) operator(=) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) symbol(:space)] insert[insert(+) ident(match) operator(<<) ident(scan)operator(()regexpoperator(\)) reserved(unless) ident(eos?) operator(||) ident(heredocs)] insert[insert(+) ident(value_expected) operator(=) pre_constant(true) reserved(if) ident(match)operator(.)ident(index)operator(()integer(?\\n)operator(\)) comment(# FIXME not quite true)] insert[insert(+) ident(tokens) operator(<<) operator([)ident(match)operator(,) ident(kind)operator(])] insert[insert(+) reserved(next)] insert[insert(+) ] insert[insert(+) reserved(elsif) ident(match) operator(=) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) symbol(:space)] insert[insert(+) reserved(if) ident(match) operator(==) string] insert[insert(+) ident(value_expected) operator(=) pre_constant(true) comment(# FIXME not quite true)] insert[insert(+) ident(state) operator(=) symbol(:initial) reserved(if) ident(state) operator(==) symbol(:undef_comma_expected)] insert[insert(+) reserved(end)] insert[insert(+) reserved(if) ident(heredocs)] insert[insert(+) ident(unscan) comment(# heredoc scanning needs \\n at start)] insert[insert(+) ident(state) operator(=) ident(heredocs)operator(.)ident(shift)] insert[insert(+) ident(tokens) operator(<<) operator([)symbol(:open)operator(,) ident(state)operator(.)ident(type)operator(])] insert[insert(+) ident(heredocs) operator(=) pre_constant(nil) reserved(if) ident(heredocs)operator(.)ident(empty?)] insert[insert(+) reserved(next)] reserved(else) delete[delete(-) ident(raise_inspect) string] delete[delete(-) reserved(not) ident(handled)string] insert[insert(+) ident(match) operator(<<) ident(scan)operator(()regexpoperator(\)) reserved(unless) ident(eos?)] reserved(end) ident(tokens) operator(<<) operator([)ident(match)operator(,) ident(kind)operator(]) reserved(next) insert[insert(+) ] insert[insert(+) reserved(elsif) ident(match) operator(=) ident(scan)operator(()regexpoperator(\)) reserved(or)] insert[insert(+) operator(() ident(bol?) reserved(and) ident(match) operator(=) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\)) operator(\))] insert[insert(+) ident(kind) operator(=) symbol(:comment)] insert[insert(+) ident(value_expected) operator(=) pre_constant(true)] insert[insert(+) ident(tokens) operator(<<) operator([)ident(match)operator(,) ident(kind)operator(])] insert[insert(+) reserved(next)] reserved(elsif) ident(state) operator(==) symbol(:initial) change[change(@@)plain( -167,19 +169,19 )change(@@)] reserved(end) reserved(end) comment(## experimental!) delete[delete(-) ident(value_expected) operator(=) symbol(:set) reserved(if)] delete[delete(-) ident(patterns)operator(::)constant(REGEXP_ALLOWED)operator([)ident(match)operator(]) reserved(or) ident(check)operator(()regexpdelimiter(/)modifier(o)>operator(\))] insert[insert(+) ident(value_expected) operator(=) symbol(:set) reserved(if) ident(check)operator(()regexpdelimiter(/)modifier(o)>operator(\))] reserved(elsif) ident(last_token_dot) reserved(and) ident(match) operator(=) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\)) ident(kind) operator(=) symbol(:ident) ident(value_expected) operator(=) symbol(:set) reserved(if) ident(check)operator(()regexpdelimiter(/)modifier(o)>operator(\)) comment(# OPERATORS #) delete[delete(-) reserved(elsif) reserved(not) ident(last_token_dot) reserved(and) ident(match) operator(=) ident(scan)operator(()regexpoperator(\))] insert[insert(+) comment(# TODO: match (\), [], {} as one single operator)] insert[insert(+) reserved(elsif) reserved(not) ident(last_token_dot) reserved(and) ident(match) operator(=) ident(scan)operator(()regexpoperator(\))] reserved(if) ident(match) operator(!)operator(~) regexp reserved(or) ident(match) operator(=)operator(~) regexp ident(value_expected) operator(=) symbol(:set) reserved(end) delete[delete(-) ident(last_token_dot) operator(=) symbol(:set) reserved(if) ident(match) operator(==) string reserved(or) ident(match) operator(==) string] insert[insert(+) ident(last_token_dot) operator(=) symbol(:set) reserved(if) pre_constant(self)operator([)integer(1)operator(])] ident(kind) operator(=) symbol(:operator) reserved(unless) ident(inline_block_stack)operator(.)ident(empty?) reserved(case) ident(match) change[change(@@)plain( -210,8 +212,9 )change(@@)] ident(interpreted) operator(=) pre_constant(true) ident(state) operator(=) ident(patterns)operator(::)constant(StringState)operator(.)ident(new) symbol(:regexp)operator(,) ident(interpreted)operator(,) ident(match) delete[delete(-) reserved(elsif) ident(match) operator(=) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\))] delete[delete(-) ident(kind) operator(=) reserved(if) pre_constant(self)operator([)integer(1)operator(]) reserved(then) symbol(:float) reserved(else) symbol(:integer) reserved(end)] insert[insert(+) comment(# elsif match = scan(/[-+]?#{patterns::NUMERIC}/o\))] insert[insert(+) reserved(elsif) ident(match) operator(=) ident(value_expected) operator(?) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\)) operator(:) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\))] insert[insert(+) ident(kind) operator(=) pre_constant(self)operator([)integer(1)operator(]) operator(?) symbol(:float) operator(:) symbol(:integer)] reserved(elsif) ident(match) operator(=) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\)) reserved(case) ident(delim) operator(=) ident(match)operator([)integer(1)operator(]) change[change(@@)plain( -285,6 +288,18 )change(@@)] reserved(next) reserved(end) insert[insert(+) reserved(elsif) ident(state) operator(==) symbol(:module_expected)] insert[insert(+) reserved(if) ident(match) operator(=) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) symbol(:operator)] insert[insert(+) reserved(else)] insert[insert(+) ident(state) operator(=) symbol(:initial)] insert[insert(+) reserved(if) ident(match) operator(=) ident(scan)operator(()regexpcontent(::\)* )inlinecontent( )delimiter(/)modifier(ox)>operator(\))] insert[insert(+) ident(kind) operator(=) symbol(:class)] insert[insert(+) reserved(else)] insert[insert(+) reserved(next)] insert[insert(+) reserved(end)] insert[insert(+) reserved(end)] insert[insert(+)] reserved(elsif) ident(state) operator(==) symbol(:undef_expected) ident(state) operator(=) symbol(:undef_comma_expected) reserved(if) ident(match) operator(=) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\)) change[change(@@)plain( -306,6 +321,15 )change(@@)] reserved(next) reserved(end) insert[insert(+) reserved(elsif) ident(state) operator(==) symbol(:alias_expected)] insert[insert(+) reserved(if) ident(match) operator(=) ident(scan)operator(()regexpcontent(\)([ )char(\\t)content(]+\)()inlinecontent(\))delimiter(/)modifier(o)>operator(\))] insert[insert(+) ident(tokens) operator(<<) operator([)pre_constant(self)operator([)integer(1)operator(])operator(,) operator(()pre_constant(self)operator([)integer(1)operator(])operator([)integer(0)operator(]) operator(==) integer(?:) operator(?) symbol(:symbol) operator(:) symbol(:method)operator(\))operator(])] insert[insert(+) ident(tokens) operator(<<) operator([)pre_constant(self)operator([)integer(2)operator(])operator(,) symbol(:space)operator(])] insert[insert(+) ident(tokens) operator(<<) operator([)pre_constant(self)operator([)integer(3)operator(])operator(,) operator(()pre_constant(self)operator([)integer(3)operator(])operator([)integer(0)operator(]) operator(==) integer(?:) operator(?) symbol(:symbol) operator(:) symbol(:method)operator(\))operator(])] insert[insert(+) reserved(end)] insert[insert(+) ident(state) operator(=) symbol(:initial)] insert[insert(+) reserved(next)] insert[insert(+)] reserved(elsif) ident(state) operator(==) symbol(:undef_comma_expected) reserved(if) ident(match) operator(=) ident(scan)operator(()regexpoperator(\)) ident(kind) operator(=) symbol(:operator) change[change(@@)plain( -315,24 +339,14 )change(@@)] reserved(next) reserved(end) delete[delete(-) reserved(elsif) ident(state) operator(==) symbol(:module_expected)] delete[delete(-) reserved(if) ident(match) operator(=) ident(scan)operator(()regexpoperator(\))] delete[delete(-) ident(kind) operator(=) symbol(:operator)] delete[delete(-) reserved(else)] delete[delete(-) ident(state) operator(=) symbol(:initial)] delete[delete(-) reserved(if) ident(match) operator(=) ident(scan)operator(()regexpcontent(::\)* )inlinecontent( )delimiter(/)modifier(ox)>operator(\))] delete[delete(-) ident(kind) operator(=) symbol(:class)] delete[delete(-) reserved(else)] delete[delete(-) reserved(next)] delete[delete(-) reserved(end)] delete[delete(-) reserved(end)] delete[delete(-)] reserved(end) comment(# }}}) insert[insert(+) ] insert[insert(+) reserved(unless) ident(kind) operator(==) symbol(:error)] insert[insert(+) ident(value_expected) operator(=) ident(value_expected) operator(==) symbol(:set)] insert[insert(+) ident(last_token_dot) operator(=) ident(last_token_dot) operator(==) symbol(:set)] insert[insert(+) reserved(end)] delete[delete(-) ident(value_expected) operator(=) ident(value_expected) operator(==) symbol(:set)] delete[delete(-) ident(last_token_dot) operator(=) ident(last_token_dot) operator(==) symbol(:set)] delete[delete(-)] reserved(if) global_variable($DEBUG) reserved(and) reserved(not) ident(kind) ident(raise_inspect) string operator(%) operator([)operator([)ident(match)operator(,) ident(kind)operator(])operator(,) ident(line)operator(])operator(,) ident(tokens)operator(,) ident(state) head[head(Index: )plain(lib/coderay/scanners/c.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/scanners/c.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/scanners/c.rb)plain( (revision 250\))] change[change(@@)plain( -4,6 +4,8 )change(@@)] reserved(class) class(C) operator(<) constant(Scanner) ident(register_for) symbol(:c) insert[insert(+) ] insert[insert(+) ident(include) constant(Streamable)] constant(RESERVED_WORDS) operator(=) operator([) stringoperator(,) stringoperator(,) stringoperator(,) stringoperator(,) stringoperator(,) stringoperator(,) stringoperator(,) change[change(@@)plain( -42,7 +44,7 )change(@@)] ident(kind) operator(=) pre_constant(nil) ident(match) operator(=) pre_constant(nil) delete[delete(-)] insert[insert(+) ] reserved(case) ident(state) reserved(when) symbol(:initial) head[head(Index: )plain(lib/coderay/scanners/scheme.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/scanners/scheme.rb)plain( (revision 0\))] head[head(+++ )filename(lib/coderay/scanners/scheme.rb)plain( (revision 250\))] change[change(@@)plain( -0,0 +1,142 )change(@@)] insert[insert(+)reserved(module) class(CodeRay)] insert[insert(+) reserved(module) class(Scanners)] insert[insert(+)] insert[insert(+) comment(# Scheme scanner for CodeRay (by closure\).)] insert[insert(+) comment(# Thanks to murphy for putting CodeRay into public.)] insert[insert(+) reserved(class) class(Scheme) operator(<) constant(Scanner)] insert[insert(+) ] insert[insert(+) ident(register_for) symbol(:scheme)] insert[insert(+) ident(file_extension) symbol(:scm)] insert[insert(+)] insert[insert(+) constant(CORE_FORMS) operator(=) string] insert[insert(+) ident(lambda) ident(let) ident(let)operator(*) ident(letrec) ident(syntax)operator(-)reserved(case) ident(define)operator(-)ident(syntax) ident(let)operator(-)ident(syntax)] insert[insert(+) ident(letrec)operator(-)ident(syntax) reserved(begin) ident(define) ident(quote) reserved(if) reserved(or) reserved(and) ident(cond) reserved(case) reserved(do) ident(delay)] insert[insert(+) ident(quasiquote) ident(set!) ident(cons) ident(force) ident(call)operator(-)ident(with)operator(-)ident(current)operator(-)ident(continuation) ident(call)operator(/)ident(cc)] insert[insert(+) operator(])] insert[insert(+)] insert[insert(+) constant(IDENT_KIND) operator(=) constant(CaseIgnoringWordList)operator(.)ident(new)operator(()symbol(:ident)operator(\))operator(.)] insert[insert(+) ident(add)operator(()constant(CORE_FORMS)operator(,) symbol(:reserved)operator(\))] insert[insert(+) ] insert[insert(+) comment(#IDENTIFIER_INITIAL = /[a-z!@\\$%&\\*\\/\\:<=>\\?~_\\^]/i)] insert[insert(+) comment(#IDENTIFIER_SUBSEQUENT = /#{IDENTIFIER_INITIAL}|\\d|\\.|\\+|-/)] insert[insert(+) comment(#IDENTIFIER = /#{IDENTIFIER_INITIAL}#{IDENTIFIER_SUBSEQUENT}*|\\+|-|\\.{3}/)] insert[insert(+) constant(IDENTIFIER) operator(=) regexp?~_^][)char(\\w)content(!@$%&*)char(\\/)content(:<=>?~^.+)char(\\-)content(]*|[+-]|)char(\\.)char(\\.)char(\\.)delimiter(/)>] insert[insert(+) constant(DIGIT) operator(=) regexp] insert[insert(+) constant(DIGIT10) operator(=) constant(DIGIT)] insert[insert(+) constant(DIGIT16) operator(=) regexp] insert[insert(+) constant(DIGIT8) operator(=) regexp] insert[insert(+) constant(DIGIT2) operator(=) regexp] insert[insert(+) constant(RADIX16) operator(=) regexp] insert[insert(+) constant(RADIX8) operator(=) regexp] insert[insert(+) constant(RADIX2) operator(=) regexp] insert[insert(+) constant(RADIX10) operator(=) regexp] insert[insert(+) constant(EXACTNESS) operator(=) regexp] insert[insert(+) constant(SIGN) operator(=) regexp] insert[insert(+) constant(EXP_MARK) operator(=) regexp] insert[insert(+) constant(EXP) operator(=) regexpinlineinlinecontent(+)delimiter(/)>] insert[insert(+) constant(SUFFIX) operator(=) regexpcontent(?)delimiter(/)>] insert[insert(+) constant(PREFIX10) operator(=) regexpcontent(?)inlinecontent(?|)inlinecontent(?)inlinecontent(?)delimiter(/)>] insert[insert(+) constant(PREFIX16) operator(=) regexpinlinecontent(?|)inlinecontent(?)inlinedelimiter(/)>] insert[insert(+) constant(PREFIX8) operator(=) regexpinlinecontent(?|)inlinecontent(?)inlinedelimiter(/)>] insert[insert(+) constant(PREFIX2) operator(=) regexpinlinecontent(?|)inlinecontent(?)inlinedelimiter(/)>] insert[insert(+) constant(UINT10) operator(=) regexpcontent(+#*)delimiter(/)>] insert[insert(+) constant(UINT16) operator(=) regexpcontent(+#*)delimiter(/)>] insert[insert(+) constant(UINT8) operator(=) regexpcontent(+#*)delimiter(/)>] insert[insert(+) constant(UINT2) operator(=) regexpcontent(+#*)delimiter(/)>] insert[insert(+) constant(DECIMAL) operator(=) regexpcontent(+#+)char(\\.)content(#*)inlinecontent(|)inlinecontent(+)char(\\.)inlinecontent(*#*)inlinecontent(|)char(\\.)inlinecontent(+#*)inlinecontent(|)inlineinlinedelimiter(/)>] insert[insert(+) constant(UREAL10) operator(=) regexpchar(\\/)inlinecontent(|)inlinecontent(|)inlinedelimiter(/)>] insert[insert(+) constant(UREAL16) operator(=) regexpchar(\\/)inlinecontent(|)inlinedelimiter(/)>] insert[insert(+) constant(UREAL8) operator(=) regexpchar(\\/)inlinecontent(|)inlinedelimiter(/)>] insert[insert(+) constant(UREAL2) operator(=) regexpchar(\\/)inlinecontent(|)inlinedelimiter(/)>] insert[insert(+) constant(REAL10) operator(=) regexpinlinedelimiter(/)>] insert[insert(+) constant(REAL16) operator(=) regexpinlinedelimiter(/)>] insert[insert(+) constant(REAL8) operator(=) regexpinlinedelimiter(/)>] insert[insert(+) constant(REAL2) operator(=) regexpinlinedelimiter(/)>] insert[insert(+) constant(IMAG10) operator(=) regexpcontent(i)delimiter(/)>] insert[insert(+) constant(IMAG16) operator(=) regexpcontent(i)delimiter(/)>] insert[insert(+) constant(IMAG8) operator(=) regexpcontent(i)delimiter(/)>] insert[insert(+) constant(IMAG2) operator(=) regexpcontent(i)delimiter(/)>] insert[insert(+) constant(COMPLEX10) operator(=) regexpcontent(@)inlinecontent(|)inlinechar(\\+)inlinecontent(|)inlinecontent(-)inlinecontent(|)char(\\+)inlinecontent(|-)inlinecontent(|)inlinedelimiter(/)>] insert[insert(+) constant(COMPLEX16) operator(=) regexpcontent(@)inlinecontent(|)inlinechar(\\+)inlinecontent(|)inlinecontent(-)inlinecontent(|)char(\\+)inlinecontent(|-)inlinecontent(|)inlinedelimiter(/)>] insert[insert(+) constant(COMPLEX8) operator(=) regexpcontent(@)inlinecontent(|)inlinechar(\\+)inlinecontent(|)inlinecontent(-)inlinecontent(|)char(\\+)inlinecontent(|-)inlinecontent(|)inlinedelimiter(/)>] insert[insert(+) constant(COMPLEX2) operator(=) regexpcontent(@)inlinecontent(|)inlinechar(\\+)inlinecontent(|)inlinecontent(-)inlinecontent(|)char(\\+)inlinecontent(|-)inlinecontent(|)inlinedelimiter(/)>] insert[insert(+) constant(NUM10) operator(=) regexpcontent(?)inlinedelimiter(/)>] insert[insert(+) constant(NUM16) operator(=) regexpinlinedelimiter(/)>] insert[insert(+) constant(NUM8) operator(=) regexpinlinedelimiter(/)>] insert[insert(+) constant(NUM2) operator(=) regexpinlinedelimiter(/)>] insert[insert(+) constant(NUM) operator(=) regexpcontent(|)inlinecontent(|)inlinecontent(|)inlinedelimiter(/)>] insert[insert(+) ] insert[insert(+) ident(private)] insert[insert(+) reserved(def) method(scan_tokens) ident(tokens)operator(,)ident(options)] insert[insert(+) ] insert[insert(+) ident(state) operator(=) symbol(:initial)] insert[insert(+) ident(ident_kind) operator(=) constant(IDENT_KIND)] insert[insert(+) ] insert[insert(+) reserved(until) ident(eos?)] insert[insert(+) ident(kind) operator(=) ident(match) operator(=) pre_constant(nil)] insert[insert(+) ] insert[insert(+) reserved(case) ident(state)] insert[insert(+) reserved(when) symbol(:initial)] insert[insert(+) reserved(if) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) symbol(:space)] insert[insert(+) reserved(elsif) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) symbol(:operator_fat)] insert[insert(+) reserved(elsif) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) symbol(:comment)] insert[insert(+) reserved(elsif) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) symbol(:char)] insert[insert(+) reserved(elsif) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) symbol(:pre_constant)] insert[insert(+) reserved(elsif) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\))] insert[insert(+) ident(kind) operator(=) ident(ident_kind)operator([)ident(matched)operator(])] insert[insert(+) reserved(elsif) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) symbol(:operator)] insert[insert(+) reserved(elsif) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(tokens) operator(<<) operator([)symbol(:open)operator(,) symbol(:string)operator(])] insert[insert(+) ident(state) operator(=) symbol(:string)] insert[insert(+) ident(tokens) operator(<<) operator([)stringoperator(,) symbol(:delimiter)operator(])] insert[insert(+) reserved(next)] insert[insert(+) reserved(elsif) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\)) reserved(and) reserved(not) ident(matched)operator(.)ident(empty?)] insert[insert(+) ident(kind) operator(=) symbol(:integer)] insert[insert(+) reserved(elsif) ident(getch)] insert[insert(+) ident(kind) operator(=) symbol(:error)] insert[insert(+) reserved(end)] insert[insert(+) ] insert[insert(+) reserved(when) symbol(:string)] insert[insert(+) reserved(if) ident(scan)operator(()regexpoperator(\)) reserved(or) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) symbol(:content)] insert[insert(+) reserved(elsif) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(tokens) operator(<<) operator([)stringoperator(,) symbol(:delimiter)operator(])] insert[insert(+) ident(tokens) operator(<<) operator([)symbol(:close)operator(,) symbol(:string)operator(])] insert[insert(+) ident(state) operator(=) symbol(:initial)] insert[insert(+) reserved(next)] insert[insert(+) reserved(else)] insert[insert(+) ident(raise_inspect) string operator(%) ident(peek)operator(()integer(1)operator(\))operator(,)] insert[insert(+) ident(tokens)operator(,) ident(state)] insert[insert(+) reserved(end)] insert[insert(+) ] insert[insert(+) reserved(else)] insert[insert(+) ident(raise) string] insert[insert(+) reserved(end)] insert[insert(+) ] insert[insert(+) ident(match) operator(||=) ident(matched)] insert[insert(+) reserved(if) global_variable($DEBUG) reserved(and) reserved(not) ident(kind)] insert[insert(+) ident(raise_inspect) string operator(%)] insert[insert(+) operator([)operator([)ident(match)operator(,) ident(kind)operator(])operator(,) ident(line)operator(])operator(,) ident(tokens)] insert[insert(+) reserved(end)] insert[insert(+) ident(raise_inspect) stringoperator(,) ident(tokens)operator(,) ident(state) reserved(unless) ident(match)] insert[insert(+) ] insert[insert(+) ident(tokens) operator(<<) operator([)ident(match)operator(,) ident(kind)operator(])] insert[insert(+) ] insert[insert(+) reserved(end) comment(# until eos)] insert[insert(+) ] insert[insert(+) reserved(if) ident(state) operator(==) symbol(:string)] insert[insert(+) ident(tokens) operator(<<) operator([)symbol(:close)operator(,) symbol(:string)operator(])] insert[insert(+) reserved(end)] insert[insert(+) ] insert[insert(+) ident(tokens)] insert[insert(+) ] insert[insert(+) reserved(end) comment(#scan_tokens)] insert[insert(+) reserved(end) comment(#class)] insert[insert(+) reserved(end) comment(#module scanners)] insert[insert(+)reserved(end) comment(#module coderay)] change[change(\\ )plain(No newline at end of file)] head[head(Index: )plain(lib/coderay/scanners/delphi.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/scanners/delphi.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/scanners/delphi.rb)plain( (revision 250\))] change[change(@@)plain( -29,13 +29,18 )change(@@)] stringoperator(,) stringoperator(,) string operator(]) delete[delete(-) constant(IDENT_KIND) operator(=) constant(CaseIgnoringWordList)operator(.)ident(new)operator(()symbol(:ident)operator(\))operator(.)] insert[insert(+) constant(IDENT_KIND) operator(=) constant(CaseIgnoringWordList)operator(.)ident(new)operator(()symbol(:ident)operator(,) ident(caching)operator(=)pre_constant(true)operator(\))operator(.)] ident(add)operator(()constant(RESERVED_WORDS)operator(,) symbol(:reserved)operator(\))operator(.) ident(add)operator(()constant(DIRECTIVES)operator(,) symbol(:directive)operator(\)) insert[insert(+) ] insert[insert(+) constant(NAME_FOLLOWS) operator(=) constant(CaseIgnoringWordList)operator(.)ident(new)operator(()pre_constant(false)operator(,) ident(caching)operator(=)pre_constant(true)operator(\))operator(.)] insert[insert(+) ident(add)operator(()stringoperator(\))] insert[insert(+) ident(private)] reserved(def) method(scan_tokens) ident(tokens)operator(,) ident(options) ident(state) operator(=) symbol(:initial) insert[insert(+) ident(last_token) operator(=) string] reserved(until) ident(eos?) change[change(@@)plain( -45,19 +50,29 )change(@@)] reserved(if) ident(state) operator(==) symbol(:initial) reserved(if) ident(scan)operator(()regexpoperator(\)) delete[delete(-) ident(kind) operator(=) symbol(:space)] insert[insert(+) ident(tokens) operator(<<) operator([)ident(matched)operator(,) symbol(:space)operator(])] insert[insert(+) reserved(next)] reserved(elsif) ident(scan)operator(()regexpoperator(\)) delete[delete(-) ident(kind) operator(=) symbol(:preprocessor)] insert[insert(+) ident(tokens) operator(<<) operator([)ident(matched)operator(,) symbol(:preprocessor)operator(])] insert[insert(+) reserved(next)] reserved(elsif) ident(scan)operator(()regexpoperator(\)) delete[delete(-) ident(kind) operator(=) symbol(:comment)] insert[insert(+) ident(tokens) operator(<<) operator([)ident(matched)operator(,) symbol(:comment)operator(])] insert[insert(+) reserved(next)] delete[delete(-) reserved(elsif) ident(scan)operator(()regexp:;,.@)char(\\^)content(|)char(\\()char(\\\))char(\\[)char(\\])content(]+ )delimiter(/)modifier(x)>operator(\))] insert[insert(+) reserved(elsif) ident(match) operator(=) ident(scan)operator(()regexp=]? | >=? | :=? | [-+=*)char(\\/)content(;,@)char(\\^)content(|)char(\\()char(\\\))char(\\[)char(\\])content(] | )char(\\.)char(\\.)content( )delimiter(/)modifier(x)>operator(\))] ident(kind) operator(=) symbol(:operator) insert[insert(+) ] insert[insert(+) reserved(elsif) ident(match) operator(=) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) symbol(:operator)] insert[insert(+) reserved(if) ident(last_token) operator(==) string] insert[insert(+) ident(tokens) operator(<<) operator([)ident(match)operator(,) ident(kind)operator(])] insert[insert(+) reserved(next)] insert[insert(+) reserved(end)] reserved(elsif) ident(match) operator(=) ident(scan)operator(()regexpoperator(\)) delete[delete(-) ident(kind) operator(=) constant(IDENT_KIND)operator([)ident(match)operator(])] insert[insert(+) ident(kind) operator(=) constant(NAME_FOLLOWS)operator([)ident(last_token)operator(]) operator(?) symbol(:ident) operator(:) constant(IDENT_KIND)operator([)ident(match)operator(])] reserved(elsif) ident(match) operator(=) ident(scan)operator(()regexpoperator(\)) ident(tokens) operator(<<) operator([)symbol(:open)operator(,) symbol(:char)operator(]) change[change(@@)plain( -101,6 +116,7 )change(@@)] ident(state) operator(=) symbol(:initial) reserved(next) reserved(elsif) ident(scan)operator(()regexpoperator(\)) insert[insert(+) ident(tokens) operator(<<) operator([)symbol(:close)operator(,) symbol(:string)operator(])] ident(kind) operator(=) symbol(:error) ident(state) operator(=) symbol(:initial) reserved(else) change[change(@@)plain( -119,6 +135,7 )change(@@)] reserved(end) ident(raise_inspect) stringoperator(,) ident(tokens) reserved(unless) ident(match) insert[insert(+) ident(last_token) operator(=) ident(match)] ident(tokens) operator(<<) operator([)ident(match)operator(,) ident(kind)operator(]) reserved(end) head[head(Index: )plain(lib/coderay/scanners/debug.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/scanners/debug.rb)plain( (revision 0\))] head[head(+++ )filename(lib/coderay/scanners/debug.rb)plain( (revision 250\))] change[change(@@)plain( -0,0 +1,60 )change(@@)] insert[insert(+)reserved(module) class(CodeRay)] insert[insert(+)reserved(module) class(Scanners)] insert[insert(+)] insert[insert(+) comment(# = Debug Scanner)] insert[insert(+) reserved(class) class(Debug) operator(<) constant(Scanner)] insert[insert(+)] insert[insert(+) ident(include) constant(Streamable)] insert[insert(+) ident(register_for) symbol(:debug)] insert[insert(+)] insert[insert(+) ident(protected)] insert[insert(+) reserved(def) method(scan_tokens) ident(tokens)operator(,) ident(options)] insert[insert(+)] insert[insert(+) ident(opened_tokens) operator(=) operator([)operator(])] insert[insert(+)] insert[insert(+) reserved(until) ident(eos?)] insert[insert(+)] insert[insert(+) ident(kind) operator(=) pre_constant(nil)] insert[insert(+) ident(match) operator(=) pre_constant(nil)] insert[insert(+)] insert[insert(+) reserved(if) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(tokens) operator(<<) operator([)ident(matched)operator(,) symbol(:space)operator(])] insert[insert(+) reserved(next)] insert[insert(+) ] insert[insert(+) reserved(elsif) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) pre_constant(self)operator([)integer(1)operator(])operator(.)ident(to_sym)] insert[insert(+) ident(match) operator(=) pre_constant(self)operator([)integer(2)operator(])operator(.)ident(gsub)operator(()regexpoperator(,) stringoperator(\))] insert[insert(+) ] insert[insert(+) reserved(elsif) ident(scan)operator(()regexpoperator(\))] insert[insert(+) ident(kind) operator(=) pre_constant(self)operator([)integer(1)operator(])operator(.)ident(to_sym)] insert[insert(+) ident(opened_tokens) operator(<<) ident(kind)] insert[insert(+) ident(match) operator(=) symbol(:open)] insert[insert(+) ] insert[insert(+) reserved(elsif) ident(scan)operator(()regexp )delimiter(/)modifier(x)>operator(\))] insert[insert(+) ident(kind) operator(=) ident(opened_tokens)operator(.)ident(pop)] insert[insert(+) ident(match) operator(=) symbol(:close)] insert[insert(+) ] insert[insert(+) reserved(else)] insert[insert(+) ident(kind) operator(=) symbol(:error)] insert[insert(+) ident(getch)] insert[insert(+)] insert[insert(+) reserved(end)] insert[insert(+) ] insert[insert(+) ident(match) operator(||=) ident(matched)] insert[insert(+) reserved(if) global_variable($DEBUG) reserved(and) reserved(not) ident(kind)] insert[insert(+) ident(raise_inspect) string operator(%)] insert[insert(+) operator([)operator([)ident(match)operator(,) ident(kind)operator(])operator(,) ident(line)operator(])operator(,) ident(tokens)] insert[insert(+) reserved(end)] insert[insert(+) ident(raise_inspect) stringoperator(,) ident(tokens) reserved(unless) ident(match)] insert[insert(+)] insert[insert(+) ident(tokens) operator(<<) operator([)ident(match)operator(,) ident(kind)operator(])] insert[insert(+) ] insert[insert(+) reserved(end)] insert[insert(+) ] insert[insert(+) ident(tokens)] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+) reserved(end)] insert[insert(+)] insert[insert(+)reserved(end)] insert[insert(+)reserved(end)] head[head(Index: )plain(lib/coderay/scanners/rhtml.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/scanners/rhtml.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/scanners/rhtml.rb)plain( (revision 250\))] change[change(@@)plain( -51,10 +51,10 )change(@@)] ident(start_tag) operator(=) ident(match)operator([)regexpoperator(]) ident(end_tag) operator(=) ident(match)operator([)regexp?)char(\\z)delimiter(/)>operator(]) ident(tokens) operator(<<) operator([)symbol(:open)operator(,) symbol(:inline)operator(]) delete[delete(-) ident(tokens) operator(<<) operator([)ident(start_tag)operator(,) symbol(:delimiter)operator(])] insert[insert(+) ident(tokens) operator(<<) operator([)ident(start_tag)operator(,) symbol(:inline_delimiter)operator(])] ident(code) operator(=) ident(match)operator([)ident(start_tag)operator(.)ident(size) operator(..) integer(-1) operator(-) ident(end_tag)operator(.)ident(size)operator(]) instance_variable(@ruby_scanner)operator(.)ident(tokenize) ident(code) delete[delete(-) ident(tokens) operator(<<) operator([)ident(end_tag)operator(,) symbol(:delimiter)operator(]) reserved(unless) ident(end_tag)operator(.)ident(empty?)] insert[insert(+) ident(tokens) operator(<<) operator([)ident(end_tag)operator(,) symbol(:inline_delimiter)operator(]) reserved(unless) ident(end_tag)operator(.)ident(empty?)] ident(tokens) operator(<<) operator([)symbol(:close)operator(,) symbol(:inline)operator(]) reserved(else) head[head(Index: )plain(lib/coderay/scanners/nitro_xhtml.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/scanners/nitro_xhtml.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/scanners/nitro_xhtml.rb)plain( (revision 250\))] change[change(@@)plain( -95,20 +95,20 )change(@@)] ident(delimiter) operator(=) constant(CLOSING_PAREN)operator([)ident(start_tag)operator([)integer(1)operator(,)integer(1)operator(])operator(]) ident(end_tag) operator(=) ident(match)operator([)integer(-1)operator(,)integer(1)operator(]) operator(==) ident(delimiter) operator(?) ident(delimiter) operator(:) string ident(tokens) operator(<<) operator([)symbol(:open)operator(,) symbol(:inline)operator(]) delete[delete(-) ident(tokens) operator(<<) operator([)ident(start_tag)operator(,) symbol(:delimiter)operator(])] insert[insert(+) ident(tokens) operator(<<) operator([)ident(start_tag)operator(,) symbol(:inline_delimiter)operator(])] ident(code) operator(=) ident(match)operator([)ident(start_tag)operator(.)ident(size) operator(..) integer(-1) operator(-) ident(end_tag)operator(.)ident(size)operator(]) instance_variable(@ruby_scanner)operator(.)ident(tokenize) ident(code) delete[delete(-) ident(tokens) operator(<<) operator([)ident(end_tag)operator(,) symbol(:delimiter)operator(]) reserved(unless) ident(end_tag)operator(.)ident(empty?)] insert[insert(+) ident(tokens) operator(<<) operator([)ident(end_tag)operator(,) symbol(:inline_delimiter)operator(]) reserved(unless) ident(end_tag)operator(.)ident(empty?)] ident(tokens) operator(<<) operator([)symbol(:close)operator(,) symbol(:inline)operator(]) reserved(elsif) ident(match) operator(=) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\)) ident(start_tag) operator(=) string ident(end_tag) operator(=) ident(match)operator([)integer(-2)operator(,)integer(2)operator(]) operator(==) string)delimiter(')> operator(?) string)delimiter(')> operator(:) string ident(tokens) operator(<<) operator([)symbol(:open)operator(,) symbol(:inline)operator(]) delete[delete(-) ident(tokens) operator(<<) operator([)ident(start_tag)operator(,) symbol(:delimiter)operator(])] insert[insert(+) ident(tokens) operator(<<) operator([)ident(start_tag)operator(,) symbol(:inline_delimiter)operator(])] ident(code) operator(=) ident(match)operator([)ident(start_tag)operator(.)ident(size) operator(..) operator(-)operator(()ident(end_tag)operator(.)ident(size)operator(\))operator(-)integer(1)operator(]) instance_variable(@ruby_scanner)operator(.)ident(tokenize) ident(code) delete[delete(-) ident(tokens) operator(<<) operator([)ident(end_tag)operator(,) symbol(:delimiter)operator(]) reserved(unless) ident(end_tag)operator(.)ident(empty?)] insert[insert(+) ident(tokens) operator(<<) operator([)ident(end_tag)operator(,) symbol(:inline_delimiter)operator(]) reserved(unless) ident(end_tag)operator(.)ident(empty?)] ident(tokens) operator(<<) operator([)symbol(:close)operator(,) symbol(:inline)operator(]) reserved(elsif) ident(entity) operator(=) ident(scan)operator(()regexpdelimiter(/)modifier(o)>operator(\)) head[head(Index: )plain(lib/coderay/scanners/plaintext.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay/scanners/plaintext.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay/scanners/plaintext.rb)plain( (revision 250\))] change[change(@@)plain( -4,6 +4,8 )change(@@)] reserved(class) class(Plaintext) operator(<) constant(Scanner) ident(register_for) symbol(:plaintext)operator(,) symbol(:plain) insert[insert(+) ] insert[insert(+) ident(include) constant(Streamable)] reserved(def) method(scan_tokens) ident(tokens)operator(,) ident(options) ident(text) operator(=) operator(()ident(scan_until)operator(()regexpoperator(\)) operator(||) stringoperator(\)) head[head(Index: )plain(lib/coderay.rb)] head[head(===================================================================)filename()] head[head(--- )filename(lib/coderay.rb)plain( (revision 200\))] head[head(+++ )filename(lib/coderay.rb)plain( (revision 250\))] change[change(@@)plain( -24,8 +24,8 )change(@@)] comment(#) comment(# == Usage) comment(#) delete[delete(-)comment(# Remember you need RubyGems to use CodeRay. Run Ruby with -rubygems option)] delete[delete(-)comment(# if required.)] insert[insert(+)comment(# Remember you need RubyGems to use CodeRay, unless you have it in your load path. Run Ruby with)] insert[insert(+)comment(# -rubygems option if required.)] comment(#) comment(# === Highlight Ruby code in a string as html) comment(# ) change[change(@@)plain( -44,19 +44,15 )change(@@)] comment(# ) comment(# You can include this div in your page. The used CSS styles can be printed with) comment(# ) delete[delete(-)comment(# % ruby -rcoderay -e "print CodeRay::Encoders[:html]::CSS")] insert[insert(+)comment(# % coderay_stylesheet)] comment(# ) comment(# === Highlight without typing too much) delete[delete(-)comment(#)] insert[insert(+)comment(# )] comment(# If you are one of the hasty (or lazy, or extremely curious\) people, just run this file:) delete[delete(-)comment(#)] delete[delete(-)comment(# % ruby -rubygems coderay.rb)] comment(# ) delete[delete(-)comment(# If the output was to fast for you, try)] insert[insert(+)comment(# % ruby -rubygems /path/to/coderay/coderay.rb > example.html)] comment(# ) delete[delete(-)comment(# % ruby -rubygems coderay.rb > example.html)] delete[delete(-)comment(#)] delete[delete(-)comment(# and look at the file it created.)] insert[insert(+)comment(# and look at the file it created in your browser.)] comment(# ) comment(# = CodeRay Module) comment(#) change[change(@@)plain( -111,7 +107,7 )change(@@)] comment(#) comment(# CodeRay.scan_stream:: Scan in stream mode.) comment(#) delete[delete(-)comment(# == All-in-One Encoding)] insert[insert(+)comment(# == All-in-One Encoding)] comment(#) comment(# CodeRay.encode:: Highlight a string with a given input and output format.) comment(#) change[change(@@)plain( -121,11 +117,16 )change(@@)] comment(# for this Encoder must only be done once.) comment(#) comment(# CodeRay.encoder:: Create an Encoder instance with format and options.) insert[insert(+)comment(# CodeRay.scanner:: Create an Scanner instance for lang, with '' as default code.)] comment(#) delete[delete(-)comment(# There is no CodeRay.scanner method because Scanners are bound to an input string)] delete[delete(-)comment(# on creation; you can't re-use them with another string.)] insert[insert(+)comment(# To make use of CodeRay.scanner, use CodeRay::Scanner::code=.)] comment(#) delete[delete(-)comment(# The scanning methods provide more flexibility; we recommend to use these.)] insert[insert(+)comment(# The scanning methods provide more flexibility; we recommend to use these.)] insert[insert(+)comment(# )] insert[insert(+)comment(# == Reusing Scanners and Encoders)] insert[insert(+)comment(# )] insert[insert(+)comment(# If you want to re-use scanners and encoders (because that is faster\), see)] insert[insert(+)comment(# CodeRay::Duo for the most convenient (and recommended\) interface.)] reserved(module) class(CodeRay) comment(# Version: Major.Minor.Teeny[.Revision]) change[change(@@)plain( -133,7 +134,7 )change(@@)] comment(# Minor: odd for beta, even for stable) comment(# Teeny: development state) comment(# Revision: Subversion Revision number (generated on rake\)) delete[delete(-) constant(VERSION) operator(=) string] insert[insert(+) constant(VERSION) operator(=) string] ident(require) string ident(require) string change[change(@@)plain( -170,7 +171,7 )change(@@)] reserved(def) method(scan_file) ident(filename)operator(,) ident(lang) operator(=) symbol(:auto)operator(,) ident(options) operator(=) operator({)operator(})operator(,) operator(&)ident(block) ident(file) operator(=) constant(IO)operator(.)ident(read) ident(filename) reserved(if) ident(lang) operator(==) symbol(:auto) delete[delete(-) ident(require) string] insert[insert(+) ident(require) string] ident(lang) operator(=) constant(FileType)operator(.)ident(fetch) ident(filename)operator(,) symbol(:plaintext)operator(,) pre_constant(true) reserved(end) ident(scan) ident(file)operator(,) ident(lang)operator(,) ident(options) operator(=) operator({)operator(})operator(,) operator(&)ident(block) change[change(@@)plain( -314,6 +315,7 )change(@@)] comment(# Run a test script.) reserved(if) global_variable($0) operator(==) pre_constant(__FILE__) global_variable($stderr)operator(.)ident(print) stringoperator(;) ident(gets) delete[delete(-) ident(code) operator(=) constant(File)operator(.)ident(read)operator(()global_variable($0)operator(\))operator([)regexpoperator(])] insert[insert(+) comment(# Just use this file as an example of Ruby code.)] insert[insert(+) ident(code) operator(=) constant(File)operator(.)ident(read)operator(()pre_constant(__FILE__)operator(\))operator([)regexpoperator(])] ident(print) constant(CodeRay)operator(.)ident(scan)operator(()ident(code)operator(,) symbol(:ruby)operator(\))operator(.)ident(html) reserved(end) head[head(Property changes on: )plain(lib)] head[head(___________________________________________________________________)filename()] head[head(Added: )plain(svn:externals)] insert[insert( +)plain( term http://term-ansicolor.rubyforge.org/svn/trunk/lib/term/)]