UNPKG

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

105 lines (104 loc) 1.82 kB
import { TokenType as e } from "../../../types.mjs"; const a = { name: "csharp", patterns: { [e.Comment]: /^\/\/.*$|^\/\*[\s\S]*?\*\//, [e.String]: /^@"(?:[^"]|"")*"|^"(?:\\.|[^"\\])*"/, [e.Number]: /^\b(?:0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?[dDfFmM]?)\b/, [e.Function]: /^\b[a-zA-Z_]\w*(?=\s*\()/, [e.Type]: /^\b(?:bool|byte|sbyte|char|decimal|double|float|int|uint|long|ulong|short|ushort|object|string|void|dynamic|var)\b/, [e.Decorator]: /^(?:\[(?:[^\[\]\\]|\\.)*\])/, [e.Operator]: /^(?:=>|\?\?=|\+\+|--|&&|\|\||[+\-*\/%&|^<>!=]=?)/, [e.Punctuation]: /^[{}[\]();,.]/ }, 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 };