diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2011-08-19 04:43:37 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2011-08-19 04:43:37 +0200 |
commit | 5dd7ca65fdb90d6ffe53790abf1fe5a29a66675e (patch) | |
tree | b7450d8dd5b606ea70c8cb54c4743b83b91cf17c /lib/coderay/scanners | |
parent | 5b0d3ed58e4e804ba5585dd2091b8091498488fc (diff) | |
download | coderay-5dd7ca65fdb90d6ffe53790abf1fe5a29a66675e.tar.gz |
rename CaseIgnoringWordList to WordList::CaseIgnoring
Diffstat (limited to 'lib/coderay/scanners')
-rw-r--r-- | lib/coderay/scanners/delphi.rb | 4 | ||||
-rw-r--r-- | lib/coderay/scanners/html.rb | 5 | ||||
-rw-r--r-- | lib/coderay/scanners/php.rb | 2 | ||||
-rw-r--r-- | lib/coderay/scanners/sql.rb | 2 |
4 files changed, 6 insertions, 7 deletions
diff --git a/lib/coderay/scanners/delphi.rb b/lib/coderay/scanners/delphi.rb index 1361869..b328155 100644 --- a/lib/coderay/scanners/delphi.rb +++ b/lib/coderay/scanners/delphi.rb @@ -33,11 +33,11 @@ module Scanners 'virtual', 'write', 'writeonly', ] # :nodoc: - IDENT_KIND = CaseIgnoringWordList.new(:ident). + IDENT_KIND = WordList::CaseIgnoring.new(:ident). add(KEYWORDS, :keyword). add(DIRECTIVES, :directive) # :nodoc: - NAME_FOLLOWS = CaseIgnoringWordList.new(false). + NAME_FOLLOWS = WordList::CaseIgnoring.new(false). add(%w(procedure function .)) # :nodoc: protected diff --git a/lib/coderay/scanners/html.rb b/lib/coderay/scanners/html.rb index 2f57e44..206ace0 100644 --- a/lib/coderay/scanners/html.rb +++ b/lib/coderay/scanners/html.rb @@ -32,7 +32,7 @@ module Scanners onvolumechange onwaiting ) - IN_ATTRIBUTE = CaseIgnoringWordList.new(nil). + IN_ATTRIBUTE = WordList::CaseIgnoring.new(nil). add(EVENT_ATTRIBUTES, :script) ATTR_NAME = /[\w.:-]+/ # :nodoc: @@ -58,8 +58,7 @@ module Scanners '"' => /[^&">\n]+/, } # :nodoc: - def reset # :nodoc: - # FIXME: why not overwrite reset_instance? + def reset_instance # :nodoc: super @state = :initial end diff --git a/lib/coderay/scanners/php.rb b/lib/coderay/scanners/php.rb index b2632a2..dadab00 100644 --- a/lib/coderay/scanners/php.rb +++ b/lib/coderay/scanners/php.rb @@ -181,7 +181,7 @@ module Scanners $argc $argv ] - IDENT_KIND = CaseIgnoringWordList.new(:ident). + IDENT_KIND = WordList::CaseIgnoring.new(:ident). add(KEYWORDS, :keyword). add(TYPES, :predefined_type). add(LANGUAGE_CONSTRUCTS, :keyword). diff --git a/lib/coderay/scanners/sql.rb b/lib/coderay/scanners/sql.rb index 807a41d..bb460cc 100644 --- a/lib/coderay/scanners/sql.rb +++ b/lib/coderay/scanners/sql.rb @@ -42,7 +42,7 @@ module CodeRay module Scanners PREDEFINED_CONSTANTS = %w( null true false ) - IDENT_KIND = CaseIgnoringWordList.new(:ident). + IDENT_KIND = WordList::CaseIgnoring.new(:ident). add(KEYWORDS, :keyword). add(OBJECTS, :type). add(COMMANDS, :class). |