livetext 0.8.91 → 0.8.92
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/formatline.rb +14 -1
- data/lib/livetext.rb +1 -1
- data/lib/standard.rb +1 -0
- 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: e2ce1136c00d4d9696ce4642802da8805ae6ca23992d831d6848f86e87a75863
|
4
|
+
data.tar.gz: 6656d250c5b2b5864809791b7ae192629afe5db372f4aa700eb21a872752a221
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0073a3ef6256769c2cdb8179416ecaa554a9452d37a787b6bdc431636f40f92ae7023d5c591d04f357cf8b480fec54f7a6366e5e53a27bacc4af8a6d5e77593d
|
7
|
+
data.tar.gz: b6cee10d8bb591b1bd9869fe35aee04ab1359089953787ed32af397258f61e97da21467c2b7ee899763a8a7607eca06260f1924ec50975a71fb0b93991cd9797
|
data/lib/formatline.rb
CHANGED
@@ -15,6 +15,7 @@ class FormatLine
|
|
15
15
|
Blank = [" ", nil, "\n"]
|
16
16
|
Punc = [")", ",", ".", " ", "\n"]
|
17
17
|
NoAlpha = /[^A-Za-z0-9_]/
|
18
|
+
NoAlphaDot = /[^.A-Za-z0-9_]/
|
18
19
|
Param = ["]", "\n", nil]
|
19
20
|
Escape = "\\" # not an ESC char
|
20
21
|
|
@@ -207,6 +208,18 @@ class FormatLine
|
|
207
208
|
str
|
208
209
|
end
|
209
210
|
|
211
|
+
def grab_alpha_dot
|
212
|
+
str = Null.dup
|
213
|
+
grab
|
214
|
+
loop do
|
215
|
+
break if curr.nil?
|
216
|
+
str << curr
|
217
|
+
break if terminate?(NoAlphaDot, next!)
|
218
|
+
grab
|
219
|
+
end
|
220
|
+
str
|
221
|
+
end
|
222
|
+
|
210
223
|
def dollar
|
211
224
|
grab
|
212
225
|
case curr
|
@@ -217,7 +230,7 @@ class FormatLine
|
|
217
230
|
# when "."; dollar_dot
|
218
231
|
when /[A-Za-z]/
|
219
232
|
add_token :str
|
220
|
-
var = curr +
|
233
|
+
var = curr + grab_alpha_dot
|
221
234
|
add_token(:var, var)
|
222
235
|
else
|
223
236
|
add "$" + curr
|
data/lib/livetext.rb
CHANGED
data/lib/standard.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: livetext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.92
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A smart text processor extensible in Ruby
|
14
14
|
email: rubyhacker@gmail.com
|