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

49 lines (48 loc) 1.07 kB
export declare enum TokenType { Text = "text", Keyword = "keyword", String = "string", Number = "number", Key = "key", Comment = "comment", Operator = "operator", Function = "function", Atom = "atom", Variable = "variable", Type = "type", Interface = "interface", Punctuation = "punctuation", Tag = "tag", Attribute = "attribute", Selector = "selector", Property = "property", Value = "value", Unit = "unit", Color = "color", Decorator = "decorator", Symbol = "symbol", Command = "command", Parameter = "parameter", Lifetime = "lifetime", Heading = "heading", Bold = "bold", Italic = "italic", Link = "link", Code = "code", List = "list", Blockquote = "blockquote", HorizontalRule = "hr", Boolean = "boolean", Null = "null" } export interface Token { type: TokenType; value: string; } export interface LanguageDefinition { name: string; patterns: { [key in TokenType]?: RegExp; }; keywords: string[]; }