monaco-editor/out/languages/amd-tsc/basic-languages/swift/swift.test.js
2023-02-23 11:08:13 +00:00

1 line
No EOL
5.3 KiB
JavaScript

define(["require","exports","../test/testRunner"],(function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,s.testTokenization)("swift",[[{line:"@escaping",tokens:[{startIndex:0,type:"keyword.control.swift"}]}],[{line:"class App: UI, UIApp, UIView {",tokens:[{startIndex:0,type:"keyword.swift"},{startIndex:5,type:"white.swift"},{startIndex:6,type:"type.identifier.swift"},{startIndex:9,type:"operator.swift"},{startIndex:10,type:"white.swift"},{startIndex:11,type:"type.identifier.swift"},{startIndex:13,type:"operator.swift"},{startIndex:14,type:"white.swift"},{startIndex:15,type:"type.identifier.swift"},{startIndex:20,type:"operator.swift"},{startIndex:21,type:"white.swift"},{startIndex:22,type:"type.identifier.swift"},{startIndex:28,type:"white.swift"},{startIndex:29,type:"delimiter.curly.swift"}]}],[{line:" var window: UIWindow?",tokens:[{startIndex:0,type:"white.swift"},{startIndex:4,type:"keyword.swift"},{startIndex:7,type:"white.swift"},{startIndex:8,type:"identifier.swift"},{startIndex:14,type:"operator.swift"},{startIndex:15,type:"white.swift"},{startIndex:16,type:"type.identifier.swift"},{startIndex:24,type:"operator.swift"}]}],[{line:" // Comment",tokens:[{startIndex:0,type:"white.swift"},{startIndex:4,type:"comment.swift"}]}],[{line:" /* Comment //Embedded */ var y = 0b10",tokens:[{startIndex:0,type:"white.swift"},{startIndex:4,type:"comment.swift"},{startIndex:28,type:"white.swift"},{startIndex:29,type:"keyword.swift"},{startIndex:32,type:"white.swift"},{startIndex:33,type:"identifier.swift"},{startIndex:34,type:"white.swift"},{startIndex:35,type:"operator.swift"},{startIndex:36,type:"white.swift"},{startIndex:37,type:"number.binary.swift"}]}],[{line:" public func app(app: App, opts:",tokens:[{startIndex:0,type:"white.swift"},{startIndex:4,type:"keyword.swift"},{startIndex:10,type:"white.swift"},{startIndex:11,type:"keyword.swift"},{startIndex:15,type:"white.swift"},{startIndex:16,type:"identifier.swift"},{startIndex:19,type:"delimiter.parenthesis.swift"},{startIndex:20,type:"identifier.swift"},{startIndex:23,type:"operator.swift"},{startIndex:24,type:"white.swift"},{startIndex:25,type:"type.identifier.swift"},{startIndex:28,type:"operator.swift"},{startIndex:29,type:"white.swift"},{startIndex:30,type:"identifier.swift"},{startIndex:34,type:"operator.swift"}]}],[{line:" [NSObject: AnyObject]?) -> Bool {",tokens:[{startIndex:0,type:"white.swift"},{startIndex:8,type:"delimiter.square.swift"},{startIndex:9,type:"type.identifier.swift"},{startIndex:17,type:"operator.swift"},{startIndex:18,type:"white.swift"},{startIndex:19,type:"type.identifier.swift"},{startIndex:28,type:"delimiter.square.swift"},{startIndex:29,type:"operator.swift"},{startIndex:30,type:"delimiter.parenthesis.swift"},{startIndex:31,type:"white.swift"},{startIndex:32,type:"operator.swift"},{startIndex:34,type:"white.swift"},{startIndex:35,type:"type.identifier.swift"},{startIndex:39,type:"white.swift"},{startIndex:40,type:"delimiter.curly.swift"}]}],[{line:' var `String` = "String w/ \\"escape\\""',tokens:[{startIndex:0,type:"white.swift"},{startIndex:8,type:"keyword.swift"},{startIndex:11,type:"white.swift"},{startIndex:12,type:"operator.swift"},{startIndex:13,type:"identifier.swift"},{startIndex:19,type:"operator.swift"},{startIndex:20,type:"white.swift"},{startIndex:21,type:"operator.swift"},{startIndex:22,type:"white.swift"},{startIndex:23,type:"string.quote.swift"},{startIndex:24,type:"string.swift"},{startIndex:44,type:"string.quote.swift"}]}],[{line:' let message = "\\(y) times 2.5 is \\(Double(25) * 2.5)"',tokens:[{startIndex:0,type:"white.swift"},{startIndex:8,type:"keyword.swift"},{startIndex:11,type:"white.swift"},{startIndex:12,type:"identifier.swift"},{startIndex:19,type:"white.swift"},{startIndex:20,type:"operator.swift"},{startIndex:21,type:"white.swift"},{startIndex:22,type:"string.quote.swift"},{startIndex:23,type:"operator.swift"},{startIndex:25,type:"identifier.swift"},{startIndex:26,type:"operator.swift"},{startIndex:27,type:"string.swift"},{startIndex:41,type:"operator.swift"},{startIndex:43,type:"type.identifier.swift"},{startIndex:49,type:"operator.swift"},{startIndex:50,type:"number.swift"},{startIndex:52,type:"operator.swift"},{startIndex:53,type:""},{startIndex:54,type:"operator.swift"},{startIndex:55,type:""},{startIndex:56,type:"number.float.swift"},{startIndex:59,type:"operator.swift"},{startIndex:60,type:"string.quote.swift"}]}],[{line:'"""test"test',tokens:[{startIndex:0,type:"string.quote.swift"},{startIndex:3,type:"string.swift"}]},{line:' keepsgoing"""',tokens:[{startIndex:0,type:"string.swift"},{startIndex:11,type:"string.quote.swift"}]}],[{line:" let view = self.window!.contr as! UIView",tokens:[{startIndex:0,type:"white.swift"},{startIndex:8,type:"keyword.swift"},{startIndex:11,type:"white.swift"},{startIndex:12,type:"identifier.swift"},{startIndex:16,type:"white.swift"},{startIndex:17,type:"operator.swift"},{startIndex:18,type:"white.swift"},{startIndex:19,type:"keyword.swift"},{startIndex:23,type:"delimeter.swift"},{startIndex:24,type:"type.identifier.swift"},{startIndex:30,type:"operator.swift"},{startIndex:31,type:"delimeter.swift"},{startIndex:32,type:"type.identifier.swift"},{startIndex:37,type:"white.swift"},{startIndex:38,type:"keyword.swift"},{startIndex:40,type:"operator.swift"},{startIndex:41,type:"white.swift"},{startIndex:42,type:"type.identifier.swift"}]}]])}));