parser 3.1.3.0 → 3.2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parser/current.rb +5 -5
- data/lib/parser/lexer-F0.rb +17642 -0
- data/lib/parser/{lexer.rb → lexer-F1.rb} +2738 -6576
- data/lib/parser/ruby32.rb +1034 -1023
- data/lib/parser/source/buffer.rb +12 -3
- data/lib/parser/source/range.rb +1 -1
- data/lib/parser/version.rb +1 -1
- data/lib/parser.rb +5 -1
- data/parser.gemspec +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f610391f493e02fe53d3282d0334cae06d96e736f65f90127a03e737b216eb2
|
4
|
+
data.tar.gz: 2105182a6079d599d5757205a6dd9400484422be82b02bae9f50f515d2388f2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ea8cc04e8e2d69867bf7f6566001fb88f0ad59fbe3a2e6782e4e939e662a3bdee0a5a77b42aff275b95125e3f51f6adb16ba859ddff7ab5e672a7a119ef323e
|
7
|
+
data.tar.gz: afeac266aea582d8c84c395e467698d6c7243e1cf7400613f7512f2d7dfb08dd94a3553f20ae07fe99a27035e54da6fcfbfdd20dbf484c7c18e00edb62ed0f18
|
data/lib/parser/current.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Parser
|
4
4
|
class << self
|
5
5
|
def warn_syntax_deviation(feature, version)
|
6
|
-
warn "warning: parser/current is loading #{feature}, which recognizes" \
|
6
|
+
warn "warning: parser/current is loading #{feature}, which recognizes " \
|
7
7
|
"#{version}-compliant syntax, but you are running #{RUBY_VERSION}.\n" \
|
8
8
|
"Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri."
|
9
9
|
end
|
@@ -102,7 +102,7 @@ module Parser
|
|
102
102
|
CurrentRuby = Ruby31
|
103
103
|
|
104
104
|
when /^3\.2\./
|
105
|
-
current_version = '3.2.0
|
105
|
+
current_version = '3.2.0'
|
106
106
|
if RUBY_VERSION != current_version
|
107
107
|
warn_syntax_deviation 'parser/ruby32', current_version
|
108
108
|
end
|
@@ -112,8 +112,8 @@ module Parser
|
|
112
112
|
|
113
113
|
else # :nocov:
|
114
114
|
# Keep this in sync with released Ruby.
|
115
|
-
warn_syntax_deviation 'parser/
|
116
|
-
require 'parser/
|
117
|
-
CurrentRuby =
|
115
|
+
warn_syntax_deviation 'parser/ruby32', '3.2.x'
|
116
|
+
require 'parser/ruby32'
|
117
|
+
CurrentRuby = Ruby32
|
118
118
|
end
|
119
119
|
end
|