livetext 0.8.81 → 0.8.82
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 +3 -3
- data/lib/livetext.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7041923b573f219f9840264ca00ae087c195e8bb40740b99708f1dd997faebdd
|
4
|
+
data.tar.gz: a64013d7d8e8028628bd0ef460e51dcfc98769e53fa76bcd9fb6f35f4638b468
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d66daf9414ba6168414d115e86d7695fe9f4f5bca8f6d04960b3c7b95dbb79f9ac1beb8a079f3c75e3501c0a67745ccd565339a6e10b41c479d499aebf3b6e57
|
7
|
+
data.tar.gz: 8b2fe0da41d71a410e0b0386cf2f7b344c459f1619cde8df33729f6f63455465bf4f9d1804dc2ecb893544e62b819491fef56e8606339dfa0fe7f4a8cf4b4275
|
data/lib/formatline.rb
CHANGED
@@ -18,6 +18,8 @@ class FormatLine
|
|
18
18
|
Param = ["]", "\n", nil]
|
19
19
|
Escape = "\\" # not an ESC char
|
20
20
|
|
21
|
+
Syms = { "*" => :b, "_" => :i, "`" => :t, "~" => :s }
|
22
|
+
|
21
23
|
def terminate?(terminators, ch)
|
22
24
|
if terminators.is_a? Regexp
|
23
25
|
terminators === ch
|
@@ -192,8 +194,6 @@ class FormatLine
|
|
192
194
|
@token << str unless str.nil?
|
193
195
|
end
|
194
196
|
|
195
|
-
Syms = { "*" => :b, "_" => :i, "`" => :t, "~" => :s }
|
196
|
-
|
197
197
|
def add_token(kind, token = @token)
|
198
198
|
@tokenlist << [kind, token] unless token.empty?
|
199
199
|
@token = Null.dup
|
@@ -255,7 +255,7 @@ class FormatLine
|
|
255
255
|
add_token :str
|
256
256
|
sym = Syms[char]
|
257
257
|
if embedded?
|
258
|
-
|
258
|
+
# add char # ??? add_token "*", :string
|
259
259
|
return
|
260
260
|
end
|
261
261
|
grab
|
data/lib/livetext.rb
CHANGED