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
106 lines (105 loc) • 2.06 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 */
import { TokenType as e } from "../../../types.mjs";
const a = {
name: "csharp",
patterns: {
[]: /^\/\/.*$|^\/\*[\s\S]*?\*\//,
[]: /^@"(?:[^"]|"")*"|^"(?:\\.|[^"\\])*"/,
[]: /^\b(?:0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?[dDfFmM]?)\b/,
[]: /^\b[a-zA-Z_]\w*(?=\s*\()/,
[]: /^\b(?:bool|byte|sbyte|char|decimal|double|float|int|uint|long|ulong|short|ushort|object|string|void|dynamic|var)\b/,
[]: /^(?:\[(?:[^\[\]\\]|\\.)*\])/,
[]: /^(?:=>|\?\?=|\+\+|--|&&|\|\||[+\-*\/%&|^<>!=]=?)/,
[]: /^[{}[\]();,.]/
},
keywords: [
"abstract",
"as",
"base",
"break",
"case",
"catch",
"checked",
"class",
"const",
"continue",
"default",
"delegate",
"do",
"else",
"enum",
"event",
"explicit",
"extern",
"finally",
"fixed",
"for",
"foreach",
"goto",
"if",
"implicit",
"in",
"interface",
"internal",
"is",
"lock",
"namespace",
"new",
"null",
"operator",
"out",
"override",
"params",
"private",
"protected",
"public",
"readonly",
"ref",
"return",
"sealed",
"sizeof",
"stackalloc",
"static",
"struct",
"switch",
"this",
"throw",
"try",
"typeof",
"unchecked",
"unsafe",
"using",
"virtual",
"volatile",
"while",
"add",
"alias",
"ascending",
"async",
"await",
"by",
"descending",
"equals",
"from",
"get",
"global",
"group",
"into",
"join",
"let",
"nameof",
"orderby",
"partial",
"remove",
"select",
"set",
"value",
"var",
"when",
"where",
"yield"
]
};
export {
a as csharpDefinition
};