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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98d789586df6c883fa5084f610c44d94a492d883b296c0b06236fc462a7b8f5c
4
- data.tar.gz: 1da6160f229fd2a8b99c37b06e1a87efcb476d342deac9bc18ff64a4b2074acb
3
+ metadata.gz: e2ce1136c00d4d9696ce4642802da8805ae6ca23992d831d6848f86e87a75863
4
+ data.tar.gz: 6656d250c5b2b5864809791b7ae192629afe5db372f4aa700eb21a872752a221
5
5
  SHA512:
6
- metadata.gz: ac8c17b7b87bf29c252df478bbbf2c3bd2916ca697a89b32691381d98ed9759361235926483e2ed120695d1bb3bd86328806bd338cd3ed5118d07c7dba68501b
7
- data.tar.gz: f2b8ddcd1112c99a724e0ef15a39ad03c144d8e1f31bf069b6eecd2073c983491f7cb35dcc6cbb50ffdbdf7ce0f3e87dc0ed2cc94b6c1450ac9c0d06206662ed
6
+ metadata.gz: 0073a3ef6256769c2cdb8179416ecaa554a9452d37a787b6bdc431636f40f92ae7023d5c591d04f357cf8b480fec54f7a6366e5e53a27bacc4af8a6d5e77593d
7
+ data.tar.gz: b6cee10d8bb591b1bd9869fe35aee04ab1359089953787ed32af397258f61e97da21467c2b7ee899763a8a7607eca06260f1924ec50975a71fb0b93991cd9797
@@ -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 + grab_alpha
233
+ var = curr + grab_alpha_dot
221
234
  add_token(:var, var)
222
235
  else
223
236
  add "$" + curr
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.8.91"
2
+ VERSION = "0.8.92"
3
3
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
4
4
  end
5
5
 
@@ -161,6 +161,7 @@ EOS
161
161
  # FIXME *Must* allow for vars/functions
162
162
  assigns.each do |a|
163
163
  var, val = a.split("=")
164
+ STDERR.puts "-- var=val #{[var, val].inspect}"
164
165
  var.strip!
165
166
  val.strip!
166
167
  val = val[1..-2] if val[0] == ?" && val[-1] == ?"
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.91
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-15 00:00:00.000000000 Z
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