Skip to content

Commit 43f3e6c

Browse files
committed
0.1.1 TestInput update to account for string with spaces.
1 parent 77815bd commit 43f3e6c

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SwiftScript v0.1.0
1+
# SwiftScript v0.1.1
22
## "*Lite*" Version of Swift: for fun
33

44
### 1 part HyperCard, 1 part realBasic(rip), and 3 parts Swift.

Sources/SwiftScript/Highlighter.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ public class Highlighter: Codable {
154154
font = UIFont.monospacedSystemFont(ofSize: kDefaultFontSize, weight: .semibold)
155155
multipleAttributes[NSAttributedString.Key.font] = font
156156
multipleAttributes[NSAttributedString.Key.foregroundColor] = UIColor.systemIndigo
157+
case .userCustom:
158+
multipleAttributes[NSAttributedString.Key.foregroundColor] = UIColor.systemPurple
157159
}
158160

159161
let myAttrString = NSAttributedString(string: word.string, attributes: multipleAttributes)

Sources/SwiftScript/TestInput.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Foundation
1313
/// Current ``SwiftScript`` version
1414
///
1515
/// Major number should only change for first release or a major expansion in supported operators/functions. Minor number changes when default input updates to show new support. Revision changed when defualt input changes.
16-
public let Version = "0.1.0"
16+
public let Version = "0.1.1"
1717

1818

1919
/// Test string.
@@ -29,10 +29,10 @@ public let Version = "0.1.0"
2929
/// - e = `-3.14`
3030
/// - f = `10`
3131
/// - g = `-5`
32-
/// - h = `"House"`
32+
/// - h = `"Hou se"`
3333
/// - i = `"ion"`
3434
/// - j = `"jet"`
35-
/// - k = `"redKite"`
35+
/// - k = `"red. Kite"`
3636
/// - l = `01234567891011`
3737
/// - m = `200e50`
3838
/// - n = `9`
@@ -45,10 +45,10 @@ let d = false
4545
let e = -3.14
4646
var f = 9 - 0
4747
let g = -a
48-
let h = "House"
48+
let h = "Hou se"
4949
let i = "ion"
5050
let j = "jet"
51-
let k = "redKite"
51+
let k = "red. Kite"
5252
let l = 01234567891011
5353
let m = 200e50
5454
let n = f
@@ -82,10 +82,10 @@ var TestBlock: () -> Void = {
8282
let e = -3.14
8383
var f = 9 - 0
8484
let g = -a
85-
let h = "House"
85+
let h = "Hou se"
8686
let i = "ion"
8787
let j = "jet"
88-
let k = "redKite"
88+
let k = "red. Kite"
8989
let l = 01234567891011
9090
let m = 200e50
9191
let n = f

0 commit comments

Comments
 (0)