antlr4-runtime 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/antlr4/runtime/interval_set.rb +4 -4
- data/lib/antlr4/runtime/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 245b28b3ff9464508be9cdd7421d5bb4db7255a841f812bf75956e7fb3787210
|
4
|
+
data.tar.gz: fd3addc862687ad9ab7a1421377e89dc35141abad04c9dad4007d1bc47896249
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8766b0cf6d15ec643ebebe0abf7cad7aef8386fb2a959189c96349f331719d74bd07d32f1fec747b96cda21fcdc564eb72001bb250b66771f50ba30319a16f71
|
7
|
+
data.tar.gz: b165e132a9c5f03371118eba4e92bdc2ac90629392b5b864dd0e72ec1bcd034c018fe5f686c5bb2f4efc94f2ef128442f25a70d9445a3a21284c10d89fcac2ee
|
data/CHANGELOG.md
CHANGED
@@ -348,8 +348,8 @@ module Antlr4::Runtime
|
|
348
348
|
end
|
349
349
|
|
350
350
|
def to_string_from_vocabulary(vocabulary)
|
351
|
-
buf = ''
|
352
|
-
return 'end' if @intervals.nil? || @intervals.empty?
|
351
|
+
buf = '{'
|
352
|
+
return '{end}' if @intervals.nil? || @intervals.empty?
|
353
353
|
|
354
354
|
buf << '' if size > 1
|
355
355
|
i = 0
|
@@ -367,10 +367,10 @@ module Antlr4::Runtime
|
|
367
367
|
j += 1
|
368
368
|
end
|
369
369
|
end
|
370
|
-
buf << ', ' if i < @intervals.length
|
370
|
+
buf << ', ' if i < (@intervals.length - 1)
|
371
371
|
i += 1
|
372
372
|
end
|
373
|
-
buf << '
|
373
|
+
buf << '}' if size > 1
|
374
374
|
buf
|
375
375
|
end
|
376
376
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: antlr4-runtime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Walmsley
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05
|
11
|
+
date: 2019-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|