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.52 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../types.cjs"),t={name:"cpp",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(?:void|int|float|double|bool|char|unsigned|signed|short|long|auto|const|volatile|static|extern|struct|class|enum|union|template|typename|virtual|explicit|override|final)\b/,[e.TokenType.Operator]:/^(?:->|::|\+\+|--|&&|\|\||[+\-*/%&|^<>!=]=?)/,[e.TokenType.Punctuation]:/^[{}[\]();,.]/},keywords:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","bitand","bitor","break","case","catch","class","compl","concept","const","constexpr","const_cast","continue","co_await","co_return","co_yield","decltype","default","delete","do","dynamic_cast","else","enum","explicit","export","extern","false","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","private","protected","public","reflexpr","register","reinterpret_cast","requires","return","sizeof","static","static_assert","static_cast","struct","switch","synchronized","template","this","thread_local","throw","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"]};exports.cppDefinition=t;