File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2
2
module CodeRay
3
3
module Scanners
4
4
5
- class RuleBasedScanner5 < Scanner
5
+ class JavaScript4RuleBasedScanner < Scanner
6
6
7
7
CheckIf = Struct . new :condition
8
8
@@ -173,7 +173,7 @@ def make_callback block
173
173
# Scanner for JavaScript.
174
174
#
175
175
# Aliases: +ecmascript+, +ecma_script+, +javascript+
176
- class JavaScript4 < RuleBasedScanner5
176
+ class JavaScript4 < JavaScript4RuleBasedScanner
177
177
178
178
register_for :java_script4
179
179
file_extension 'js'
Original file line number Diff line number Diff line change 1
1
module CodeRay
2
2
module Scanners
3
3
4
- class RuleBasedScanner2 < Scanner
4
+ class JSON2RuleBasedScanner < Scanner
5
5
class << self
6
6
attr_accessor :states
7
7
@@ -34,7 +34,7 @@ def pop_group
34
34
end
35
35
36
36
# Scanner for JSON (JavaScript Object Notation).
37
- class JSON2 < RuleBasedScanner2
37
+ class JSON2 < JSON2RuleBasedScanner
38
38
39
39
register_for :json2
40
40
file_extension 'json'
Original file line number Diff line number Diff line change 1
1
module CodeRay
2
2
module Scanners
3
3
4
- class RuleBasedScanner3 < Scanner
4
+ class JSON3RuleBasedScanner < Scanner
5
5
class << self
6
6
attr_accessor :states
7
7
@@ -56,7 +56,7 @@ def pop_group
56
56
end
57
57
58
58
# Scanner for JSON (JavaScript Object Notation).
59
- class JSON3 < RuleBasedScanner3
59
+ class JSON3 < JSON3RuleBasedScanner
60
60
61
61
register_for :json3
62
62
file_extension 'json'
Original file line number Diff line number Diff line change 1
1
module CodeRay
2
2
module Scanners
3
3
4
- class RuleBasedScanner4 < Scanner
4
+ class JSON4RuleBasedScanner < Scanner
5
5
class << self
6
6
attr_accessor :states
7
7
@@ -56,7 +56,7 @@ def pop
56
56
end
57
57
58
58
# Scanner for JSON (JavaScript Object Notation).
59
- class JSON4 < RuleBasedScanner4
59
+ class JSON4 < JSON4RuleBasedScanner
60
60
61
61
register_for :json4
62
62
file_extension 'json'
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ module Scanners
9
9
# The language’s complete syntax is defined in
10
10
# {the Lua manual}[http://www.lua.org/manual/5.2/manual.html],
11
11
# which is what this scanner tries to conform to.
12
- class Lua3 < RuleBasedScannerX
12
+ class Lua3 < RuleBasedScanner
13
13
14
14
register_for :lua3
15
15
file_extension 'lua'
You can’t perform that action at this time.
0 commit comments