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
3 lines (2 loc) • 1.5 kB
JavaScript
/*! on-codemerge v1.3.1 @author Pavel Kuzmin @license MIT @homepage https://s00d.github.io/on-codemerge/ @repository git+https://github.com/s00d/on-codemerge.git Copyright (c) 2026 Pavel Kuzmin - Built on 2026-07-02T13:39:17.947Z */
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../types.cjs"),n={name:"kotlin",patterns:{[e.TokenType.Comment]:/^\/\/.*$|^\/\*[\s\S]*?\*\//,[e.TokenType.String]:/^"(?:[^"\\]|\\.)*"|^'''[\s\S]*?'''/,[e.TokenType.Number]:/^\b(?:0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?[fFL]?)\b/,[e.TokenType.Function]:/^\b[a-zA-Z_]\w*(?=\s*\()/,[e.TokenType.Type]:/^\b(?:Byte|Short|Int|Long|Float|Double|Boolean|Char|String|Any|Unit|Nothing)\b/,[e.TokenType.Decorator]:/^@\w+/,[e.TokenType.Operator]:/^(?:->|::|\?\.|!!|\+\+|--|&&|\|\||[+\-*/%&|^<>!=]=?)/,[e.TokenType.Punctuation]:/^[{}[\]();,.]/},keywords:["abstract","actual","annotation","as","break","by","catch","class","companion","const","constructor","continue","crossinline","data","delegate","do","dynamic","else","enum","expect","external","false","field","final","finally","for","fun","get","if","import","in","infix","init","inline","inner","interface","internal","is","lateinit","noinline","null","object","open","operator","out","override","package","private","protected","public","reified","return","sealed","set","super","suspend","tailrec","this","throw","true","try","typealias","val","var","vararg","when","where","while"]};exports.kotlinDefinition=n;