on-codemerge
Version:
A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product
2 lines (1 loc) • 1.05 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../types.cjs"),t={name:"swift",patterns:{[e.TokenType.Comment]:/^\/\/.*$|^\/\*[\s\S]*?\*\//,[e.TokenType.String]:/^"(?:[^"\\]|\\.)*"/,[e.TokenType.Number]:/^\b(?:0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,[e.TokenType.Function]:/^\b[a-zA-Z_]\w*(?=\s*\()/,[e.TokenType.Type]:/^\b(?:Int|Double|Float|String|Bool|Character|Any|AnyObject)\b/,[e.TokenType.Decorator]:/^@\w+/,[e.TokenType.Operator]:/^(?:->|===|!==|\?\?|\+\+|--|&&|\|\||[+\-*/%&|^<>!=]=?)/,[e.TokenType.Punctuation]:/^[{}[\]();,.]/},keywords:["as","break","case","catch","class","continue","default","defer","do","else","enum","extension","fallthrough","false","fileprivate","final","for","func","guard","if","import","in","init","inout","internal","is","let","nil","open","operator","private","protocol","public","repeat","rethrows","return","self","static","struct","super","switch","throw","throws","true","try","typealias","var","where","while"]};exports.swiftDefinition=t;