ymlex 1.1.4 → 1.1.5
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 +4 -4
- data/lib/ymlex/ymlex.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa709a6bc0c4f33aeb0e80dc686af225be43b329
|
4
|
+
data.tar.gz: a5474c089f705435529e25d61153de85e10dcbf5
|
5
5
|
!binary "U0hBNTEy":
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a42b77b976601c6d48c03a7f6f3c6cc68baeac43afb74953fb6e5a695288aa338d9fdf7063ca6056613173a1a23a12f8367aa39d9b6a9e4297137fb84a07c6f3
|
7
|
+
data.tar.gz: 7831d9dc406f0c15b8edc9fd014deeec7a86146f610cbb15e00bfb5945507211aff5b96ff3d13a199155426ff46c974b3d3f8a6d9e83bc81c60752c330ced4fb
|
data/lib/ymlex/ymlex.rb
CHANGED
@@ -80,6 +80,8 @@ class Ymlex
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def self.verbString input, ref, selfRule
|
83
|
+
input = input.gsub(/\\\$/,"~~~")
|
84
|
+
|
83
85
|
selfRule = selfRule.sub(/^/, "#{@name}_") if @name
|
84
86
|
selfRule = selfRule.sub(/_[a-zA-Z0-9]*$/, '')
|
85
87
|
selfRule = selfRule.sub(/_[a-zA-Z0-9]*$/, '') if selfRule =~ /_proc_/
|
@@ -105,9 +107,11 @@ class Ymlex
|
|
105
107
|
keyStr = toRep.gsub(/\./, '_')
|
106
108
|
keyStr = keyStr.sub(/^/, "#{@name}_") if @name
|
107
109
|
input = input.sub(/@{(.*?)}/, keyStr)
|
108
|
-
reg =
|
110
|
+
reg = /@{(.*?)}/.match(input)
|
109
111
|
end
|
110
112
|
|
113
|
+
input = input.gsub(/~~~/,'$')
|
114
|
+
|
111
115
|
input
|
112
116
|
end
|
113
117
|
|