fmt 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fmt/parsers/template_parser.rb +5 -5
- data/lib/fmt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c00b656522d9a8a4623d577bc7c0740bb5c6a7f81a4cbc0d6459b844b8177107
|
4
|
+
data.tar.gz: 54c8d23268fb964d2c75af86a55e2011d08699ffd1d004672563abf837833c26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de078ce04f2abd8f67b25a5625d0cf96b418f804bf50e882d9029ae808dba9fa35255bb428e9410b6da120eab9fe3045c66b50555bc50b923822c9af4d40793a
|
7
|
+
data.tar.gz: abf3571f4aa30568112c55ca4861e2526c5aabbe1bd373309f0d86bfa65529ed453eb500c1d80694f8716b67200b016bc3eff51d4c460929061850064907ee43
|
@@ -118,7 +118,7 @@ module Fmt
|
|
118
118
|
def extract_next_pipeline(scanner)
|
119
119
|
return nil unless scanner.skip_until(PIPELINE_PEEK)
|
120
120
|
|
121
|
-
index = scanner.
|
121
|
+
index = scanner.charpos
|
122
122
|
|
123
123
|
until scanner.eos?
|
124
124
|
len = 1
|
@@ -132,15 +132,15 @@ module Fmt
|
|
132
132
|
len = 0
|
133
133
|
val = nil
|
134
134
|
val = scanner.peek(len += 1) until val&.valid_encoding?
|
135
|
-
case [index, scanner.
|
136
|
-
in [i, pos, Sigils::FORMAT_PREFIX] if i == pos then scanner.
|
135
|
+
case [index, scanner.charpos, val]
|
136
|
+
in [i, pos, Sigils::FORMAT_PREFIX] if i == pos then scanner.getch
|
137
137
|
in [i, pos, Sigils::FORMAT_PREFIX] if i != pos then break
|
138
138
|
in [i, pos, WHITESPACE] if arguments_balanced?(scanner.string[i...pos]) then break
|
139
|
-
else scanner.
|
139
|
+
else scanner.getch
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
143
|
-
scanner.string[index...scanner.
|
143
|
+
scanner.string[index...scanner.charpos]
|
144
144
|
end
|
145
145
|
|
146
146
|
# Extracts pipelines from the source
|
data/lib/fmt/version.rb
CHANGED