parsanol 1.3.125-aarch64-linux → 1.3.126-aarch64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b14f1058ba73dbfcef8eb8f07a07d947de12e047b396a35182383d9fc8f888c4
4
- data.tar.gz: d8a28589ae3cf9a49a1661cb75d046472b68ea452410c63ad282f12fd9f6c4dc
3
+ metadata.gz: 469d7b9dfb1cf9dd2233e11cf5afa05f0520302ca2de9e8f03516e56359a03d4
4
+ data.tar.gz: dd910cd797d6396499295dcea8b92d42f5421d220ad8e29981f492d2f23a1ad1
5
5
  SHA512:
6
- metadata.gz: 855a018f50b2b5dc3dbc81133f3b38778205b042c0d7db23989be7822c501916cc34ca6c76f837afefda01365b37432c7ae4fe2e864c1a1bf379037abd1c90ea
7
- data.tar.gz: ba3562b75a66ab87d2e664ce0b0507e0c18c24ea310821732334fe6bb871bb87fc9076ff4b410189cf1a59c47076575ca4465d83e4c0ec614cdb45a84ba7e42d
6
+ metadata.gz: ed437bb1664e82aea80c6caa0603bf95e2f87f2b67489d2c48998a67169ad774a3b9c4d6879f8bd24842101111520d04350dc4eb3a4cce2caa7a54c5e75acd96
7
+ data.tar.gz: 1be256e1960f5693715114cdb3050a5514a6db2c412eca7f5d4fe9b1c1ced1c930d467d3e70b79a130bbc9fd94f9f147e03f3dbc39563090333c25cbace69e18
@@ -632,8 +632,8 @@ module Parsanol
632
632
  markers[literal] = node.a.to_sym if literal && !literal.strip.empty?
633
633
  collect.call(@document.rules[node.a]) if @document.rules.key?(node.a)
634
634
  when :alt, :seq then node.a.each { |b| collect.call(b) }
635
- when :rep, :opt, :cap then collect.call(node.a)
636
- when :pred then collect.call(node.b)
635
+ when :rep, :opt then collect.call(node.a)
636
+ when :cap, :pred then collect.call(node.b)
637
637
  end
638
638
  end
639
639
  collect.call(@document.skip_declaration)
@@ -652,7 +652,11 @@ module Parsanol
652
652
  case n.kind
653
653
  when :lit then literal = n.a
654
654
  when :seq, :alt then n.a.each { |c| walk.call(c) unless literal }
655
- when :rep, :opt, :cap, :pred then walk.call(n.a || n.b) unless literal
655
+ # :cap stores the capture NAME in `a` (a plain String) and the
656
+ # captured node in `b`; :pred stores its flag in `a`. Walking
657
+ # `a` on either crashes — descend through `b`.
658
+ when :rep, :opt then walk.call(n.a) unless literal
659
+ when :cap, :pred then walk.call(n.b) unless literal
656
660
  end
657
661
  end
658
662
  walk.call(node)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parsanol
4
- VERSION = "1.3.125"
4
+ VERSION = "1.3.126"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsanol
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.125
4
+ version: 1.3.126
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Ribose Inc.