ruby_grammar_builder 1.1.7 → 1.1.8

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: 56dfb466636e1129250201678d584ea52657d7a89a6fd3d6d1a9b345074df2c3
4
- data.tar.gz: d31f097e6d6cf9db18ad9c1d965d7c4ea4b666ce9ccecb7a560990716b2bfe46
3
+ metadata.gz: e405d22122f7b04d7042eba408692b3f486c6c511296716b94da87b53094648c
4
+ data.tar.gz: 280b800dcc65e8a17fabb3c1f4c039fa18f4d89cf77599dbc10bc29e2735bd19
5
5
  SHA512:
6
- metadata.gz: 3bf2133a31d655e8ab263e1bfc151ba485e029d34f91631d1e590da2930d284e8713a040fe68a10b9b2b6bd00f33e6a6272a4d32a2784ce247ef7af9b02bbf9c
7
- data.tar.gz: 7f06a5c4e2e9ae5fc7381987ab13630337675a6349302f4001205c2af560b0539121d8e6f1c7e848f67bbbdc73627c67aa3b5697f58cc9e0b3f05861ee65b494
6
+ metadata.gz: 685b012af4dc69acd21609f78f880becdc6aeb411bebb6ed7ecf6876fd1d5c9d2cda37aa05832ec5812fd9b0ea64013b80090f95b306be3622b817d8262a7c59
7
+ data.tar.gz: 600cbaacc3e7a5e0f08100ac1a763ea225375b9b6e5ff25a93691f87f1802db1b5e38c3c27a8e46e799abdc7664bf4fe4fcbf74c4ebafb2da21080fa7686d19a
@@ -194,7 +194,11 @@ class StandardNaming < GrammarLinter
194
194
 
195
195
  valid_prefix = (pos > 0) ? tag[0..(pos-1)].join(".") + "." : ""
196
196
 
197
- puts "The prefix `#{tag[0..pos].join('.')}' does not follow the standard format"
197
+ joined_tag = "#{tag[0..pos].join('.')}"
198
+ if joined_tag.start_with? "meta."
199
+ return
200
+ end
201
+ puts "The prefix `#{joined_tag}' does not follow the standard format"
198
202
  puts "The expected prefixes at this level are:"
199
203
  root.keys.each do |key|
200
204
  if root[:key] == false
@@ -723,11 +723,7 @@ class PatternBase
723
723
  end
724
724
 
725
725
  # if the reference does exist, then replace it with it's number
726
- if references[match_reference] < 10
727
- "\\#{references[match_reference]}"
728
- else
729
- "\\k<#{references[match_reference]}>"
730
- end
726
+ "(?:\\#{references[match_reference]})"
731
727
  end
732
728
 
733
729
  # check for a subroutine to the Nth group, replace it with `\N`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_grammar_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Hykin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-12-12 00:00:00.000000000 Z
12
+ date: 2022-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: deep_clone