Skip to content

Commit e101dbe

Browse files
committed
normalize class names
1 parent 775255a commit e101dbe

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

lib/coderay/scanners/java_script4.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module CodeRay
33
module Scanners
44

5-
class RuleBasedScanner5 < Scanner
5+
class JavaScript4RuleBasedScanner < Scanner
66

77
CheckIf = Struct.new :condition
88

@@ -173,7 +173,7 @@ def make_callback block
173173
# Scanner for JavaScript.
174174
#
175175
# Aliases: +ecmascript+, +ecma_script+, +javascript+
176-
class JavaScript4 < RuleBasedScanner5
176+
class JavaScript4 < JavaScript4RuleBasedScanner
177177

178178
register_for :java_script4
179179
file_extension 'js'

lib/coderay/scanners/json2.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module CodeRay
22
module Scanners
33

4-
class RuleBasedScanner2 < Scanner
4+
class JSON2RuleBasedScanner < Scanner
55
class << self
66
attr_accessor :states
77

@@ -34,7 +34,7 @@ def pop_group
3434
end
3535

3636
# Scanner for JSON (JavaScript Object Notation).
37-
class JSON2 < RuleBasedScanner2
37+
class JSON2 < JSON2RuleBasedScanner
3838

3939
register_for :json2
4040
file_extension 'json'

lib/coderay/scanners/json3.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module CodeRay
22
module Scanners
33

4-
class RuleBasedScanner3 < Scanner
4+
class JSON3RuleBasedScanner < Scanner
55
class << self
66
attr_accessor :states
77

@@ -56,7 +56,7 @@ def pop_group
5656
end
5757

5858
# Scanner for JSON (JavaScript Object Notation).
59-
class JSON3 < RuleBasedScanner3
59+
class JSON3 < JSON3RuleBasedScanner
6060

6161
register_for :json3
6262
file_extension 'json'

lib/coderay/scanners/json4.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module CodeRay
22
module Scanners
33

4-
class RuleBasedScanner4 < Scanner
4+
class JSON4RuleBasedScanner < Scanner
55
class << self
66
attr_accessor :states
77

@@ -56,7 +56,7 @@ def pop
5656
end
5757

5858
# Scanner for JSON (JavaScript Object Notation).
59-
class JSON4 < RuleBasedScanner4
59+
class JSON4 < JSON4RuleBasedScanner
6060

6161
register_for :json4
6262
file_extension 'json'

lib/coderay/scanners/lua3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Scanners
99
# The language’s complete syntax is defined in
1010
# {the Lua manual}[http://www.lua.org/manual/5.2/manual.html],
1111
# which is what this scanner tries to conform to.
12-
class Lua3 < RuleBasedScannerX
12+
class Lua3 < RuleBasedScanner
1313

1414
register_for :lua3
1515
file_extension 'lua'

0 commit comments

Comments
 (0)