summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2017-11-03 00:37:54 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2017-11-03 00:37:54 +0100
commite101dbe2d2887a7d158672c86171d59a70027db6 (patch)
tree83af03ea7b4a6fc791a3a38c859123c90a43d1d4
parent775255ad8d6a0928337575103054d1bbff8cda04 (diff)
downloadcoderay-e101dbe2d2887a7d158672c86171d59a70027db6.tar.gz
normalize class names
-rw-r--r--lib/coderay/scanners/java_script4.rb4
-rw-r--r--lib/coderay/scanners/json2.rb4
-rw-r--r--lib/coderay/scanners/json3.rb4
-rw-r--r--lib/coderay/scanners/json4.rb4
-rw-r--r--lib/coderay/scanners/lua3.rb2
5 files changed, 9 insertions, 9 deletions
diff --git a/lib/coderay/scanners/java_script4.rb b/lib/coderay/scanners/java_script4.rb
index 4b9601f..7899a8d 100644
--- a/lib/coderay/scanners/java_script4.rb
+++ b/lib/coderay/scanners/java_script4.rb
@@ -2,7 +2,7 @@
module CodeRay
module Scanners
- class RuleBasedScanner5 < Scanner
+ class JavaScript4RuleBasedScanner < Scanner
CheckIf = Struct.new :condition
@@ -173,7 +173,7 @@ module Scanners
# Scanner for JavaScript.
#
# Aliases: +ecmascript+, +ecma_script+, +javascript+
- class JavaScript4 < RuleBasedScanner5
+ class JavaScript4 < JavaScript4RuleBasedScanner
register_for :java_script4
file_extension 'js'
diff --git a/lib/coderay/scanners/json2.rb b/lib/coderay/scanners/json2.rb
index 6d7adc8..51df782 100644
--- a/lib/coderay/scanners/json2.rb
+++ b/lib/coderay/scanners/json2.rb
@@ -1,7 +1,7 @@
module CodeRay
module Scanners
- class RuleBasedScanner2 < Scanner
+ class JSON2RuleBasedScanner < Scanner
class << self
attr_accessor :states
@@ -34,7 +34,7 @@ module Scanners
end
# Scanner for JSON (JavaScript Object Notation).
- class JSON2 < RuleBasedScanner2
+ class JSON2 < JSON2RuleBasedScanner
register_for :json2
file_extension 'json'
diff --git a/lib/coderay/scanners/json3.rb b/lib/coderay/scanners/json3.rb
index cf0c1f0..e05feb4 100644
--- a/lib/coderay/scanners/json3.rb
+++ b/lib/coderay/scanners/json3.rb
@@ -1,7 +1,7 @@
module CodeRay
module Scanners
- class RuleBasedScanner3 < Scanner
+ class JSON3RuleBasedScanner < Scanner
class << self
attr_accessor :states
@@ -56,7 +56,7 @@ module Scanners
end
# Scanner for JSON (JavaScript Object Notation).
- class JSON3 < RuleBasedScanner3
+ class JSON3 < JSON3RuleBasedScanner
register_for :json3
file_extension 'json'
diff --git a/lib/coderay/scanners/json4.rb b/lib/coderay/scanners/json4.rb
index 5cb3afb..38d71e3 100644
--- a/lib/coderay/scanners/json4.rb
+++ b/lib/coderay/scanners/json4.rb
@@ -1,7 +1,7 @@
module CodeRay
module Scanners
- class RuleBasedScanner4 < Scanner
+ class JSON4RuleBasedScanner < Scanner
class << self
attr_accessor :states
@@ -56,7 +56,7 @@ module Scanners
end
# Scanner for JSON (JavaScript Object Notation).
- class JSON4 < RuleBasedScanner4
+ class JSON4 < JSON4RuleBasedScanner
register_for :json4
file_extension 'json'
diff --git a/lib/coderay/scanners/lua3.rb b/lib/coderay/scanners/lua3.rb
index d2d4280..f0693bb 100644
--- a/lib/coderay/scanners/lua3.rb
+++ b/lib/coderay/scanners/lua3.rb
@@ -9,7 +9,7 @@ module Scanners
# The languageā€™s complete syntax is defined in
# {the Lua manual}[http://www.lua.org/manual/5.2/manual.html],
# which is what this scanner tries to conform to.
- class Lua3 < RuleBasedScannerX
+ class Lua3 < RuleBasedScanner
register_for :lua3
file_extension 'lua'