slimi 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/slimi/parser.rb +9 -5
- data/lib/slimi/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: 299f0ea50391c15aed1b99b4fb2cb1a8eae63a3ba97e2abc31cf676472a38cd8
|
4
|
+
data.tar.gz: 6119285d8a753ab001bf29eff8df574dfab52636fc092d324db50ec7d094e7eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9269ec0c3c35efd6665a3f7aff882737479b72998b28cc067a80823885316a267958f3bf2a62107c7d56fd31bb12675f17b77053f7372c40fe768e3865775c13
|
7
|
+
data.tar.gz: 7c03ac659b980eb512c87c0fa8a3bc2b991faac079f71426e67a3ede722455677b3647d7ceb8af286aae3a38730b4e42c40ac07a62662c2db7d34339060a6055
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/slimi/parser.rb
CHANGED
@@ -300,12 +300,12 @@ module Slimi
|
|
300
300
|
attribute_value << @scanner[1] << "\n"
|
301
301
|
else
|
302
302
|
if count.positive?
|
303
|
-
if opening_delimiter && @scanner.
|
303
|
+
if opening_delimiter && @scanner.match?(/#{::Regexp.escape(opening_delimiter)}/)
|
304
304
|
count += 1
|
305
|
-
elsif closing_delimiter && @scanner.
|
305
|
+
elsif closing_delimiter && @scanner.match?(/#{::Regexp.escape(closing_delimiter)}/)
|
306
306
|
count -= 1
|
307
307
|
end
|
308
|
-
elsif @scanner.
|
308
|
+
elsif @scanner.match?(@ruby_attribute_delimiter_regexp)
|
309
309
|
count = 1
|
310
310
|
opening_delimiter = @scanner.matched
|
311
311
|
closing_delimiter = @ruby_attribute_delimiters[opening_delimiter]
|
@@ -503,9 +503,13 @@ module Slimi
|
|
503
503
|
interpolate = parse_interpolate_line
|
504
504
|
result << interpolate if interpolate
|
505
505
|
|
506
|
-
|
507
|
-
|
506
|
+
until @scanner.eos?
|
507
|
+
if @scanner.skip(/\r?\n[ \t]*(?=\r?\n)/)
|
508
|
+
result << [:newline]
|
509
|
+
next
|
510
|
+
end
|
508
511
|
|
512
|
+
@scanner.match?(/\r?\n[ \t]*/)
|
509
513
|
indent = indent_from_last_match
|
510
514
|
break if indent <= @indents.last
|
511
515
|
|
data/lib/slimi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slimi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: temple
|