diff --git a/tools/ui/node_modules/highlight.js/es/languages/qml.js b/tools/ui/node_modules/highlight.js/es/languages/qml.js new file mode 100644 index 0000000000000000000000000000000000000000..1b9fa82ecbf9bce57dd68c6586d7c69b1313b17b --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/qml.js @@ -0,0 +1,189 @@ +/* +Language: QML +Requires: javascript.js, xml.js +Author: John Foster +Description: Syntax highlighting for the Qt Quick QML scripting language, based mostly off + the JavaScript parser. +Website: https://doc.qt.io/qt-5/qmlapplications.html +Category: scripting +*/ + +function qml(hljs) { + const regex = hljs.regex; + const KEYWORDS = { + keyword: + 'in of on if for while finally var new function do return void else break catch ' + + 'instanceof with throw case default try this switch continue typeof delete ' + + 'let yield const export super debugger as async await import', + literal: + 'true false null undefined NaN Infinity', + built_in: + 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' + + 'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' + + 'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' + + 'TypeError URIError Number Math Date String RegExp Array Float32Array ' + + 'Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array ' + + 'Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require ' + + 'module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect ' + + 'Behavior bool color coordinate date double enumeration font geocircle georectangle ' + + 'geoshape int list matrix4x4 parent point quaternion real rect ' + + 'size string url variant vector2d vector3d vector4d ' + + 'Promise' + }; + + const QML_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9\\._]*'; + + // Isolate property statements. Ends at a :, =, ;, ,, a comment or end of line. + // Use property class. + const PROPERTY = { + className: 'keyword', + begin: '\\bproperty\\b', + starts: { + className: 'string', + end: '(:|=|;|,|//|/\\*|$)', + returnEnd: true + } + }; + + // Isolate signal statements. Ends at a ) a comment or end of line. + // Use property class. + const SIGNAL = { + className: 'keyword', + begin: '\\bsignal\\b', + starts: { + className: 'string', + end: '(\\(|:|=|;|,|//|/\\*|$)', + returnEnd: true + } + }; + + // id: is special in QML. When we see id: we want to mark the id: as attribute and + // emphasize the token following. + const ID_ID = { + className: 'attribute', + begin: '\\bid\\s*:', + starts: { + className: 'string', + end: QML_IDENT_RE, + returnEnd: false + } + }; + + // Find QML object attribute. An attribute is a QML identifier followed by :. + // Unfortunately it's hard to know where it ends, as it may contain scalars, + // objects, object definitions, or javascript. The true end is either when the parent + // ends or the next attribute is detected. + const QML_ATTRIBUTE = { + begin: QML_IDENT_RE + '\\s*:', + returnBegin: true, + contains: [ + { + className: 'attribute', + begin: QML_IDENT_RE, + end: '\\s*:', + excludeEnd: true, + relevance: 0 + } + ], + relevance: 0 + }; + + // Find QML object. A QML object is a QML identifier followed by { and ends at the matching }. + // All we really care about is finding IDENT followed by { and just mark up the IDENT and ignore the {. + const QML_OBJECT = { + begin: regex.concat(QML_IDENT_RE, /\s*\{/), + end: /\{/, + returnBegin: true, + relevance: 0, + contains: [ hljs.inherit(hljs.TITLE_MODE, { begin: QML_IDENT_RE }) ] + }; + + return { + name: 'QML', + aliases: [ 'qt' ], + case_insensitive: false, + keywords: KEYWORDS, + contains: [ + { + className: 'meta', + begin: /^\s*['"]use (strict|asm)['"]/ + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + { // template string + className: 'string', + begin: '`', + end: '`', + contains: [ + hljs.BACKSLASH_ESCAPE, + { + className: 'subst', + begin: '\\$\\{', + end: '\\}' + } + ] + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'number', + variants: [ + { begin: '\\b(0[bB][01]+)' }, + { begin: '\\b(0[oO][0-7]+)' }, + { begin: hljs.C_NUMBER_RE } + ], + relevance: 0 + }, + { // "value" container + begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*', + keywords: 'return throw case', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.REGEXP_MODE, + { // E4X / JSX + begin: /\s*[);\]]/, + relevance: 0, + subLanguage: 'xml' + } + ], + relevance: 0 + }, + SIGNAL, + PROPERTY, + { + className: 'function', + beginKeywords: 'function', + end: /\{/, + excludeEnd: true, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { begin: /[A-Za-z$_][0-9A-Za-z$_]*/ }), + { + className: 'params', + begin: /\(/, + end: /\)/, + excludeBegin: true, + excludeEnd: true, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + } + ], + illegal: /\[|%/ + }, + { + // hack: prevents detection of keywords after dots + begin: '\\.' + hljs.IDENT_RE, + relevance: 0 + }, + ID_ID, + QML_ATTRIBUTE, + QML_OBJECT + ], + illegal: /#/ + }; +} + +export { qml as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/qml.js.js b/tools/ui/node_modules/highlight.js/es/languages/qml.js.js new file mode 100644 index 0000000000000000000000000000000000000000..48c2425f3fe0342a986557c881c24f6a0ef82b45 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/qml.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/qml" instead of "highlight.js/lib/languages/qml.js"' + ); + } + } + emitWarning(); + import lang from './qml.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/r.js b/tools/ui/node_modules/highlight.js/es/languages/r.js new file mode 100644 index 0000000000000000000000000000000000000000..d4a84699cc3376232ce13591e221f6553254dbf6 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/r.js @@ -0,0 +1,257 @@ +/* +Language: R +Description: R is a free software environment for statistical computing and graphics. +Author: Joe Cheng +Contributors: Konrad Rudolph +Website: https://www.r-project.org +Category: common,scientific +*/ + +/** @type LanguageFn */ +function r(hljs) { + const regex = hljs.regex; + // Identifiers in R cannot start with `_`, but they can start with `.` if it + // is not immediately followed by a digit. + // R also supports quoted identifiers, which are near-arbitrary sequences + // delimited by backticks (`…`), which may contain escape sequences. These are + // handled in a separate mode. See `test/markup/r/names.txt` for examples. + // FIXME: Support Unicode identifiers. + const IDENT_RE = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/; + const NUMBER_TYPES_RE = regex.either( + // Special case: only hexadecimal binary powers can contain fractions + /0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/, + // Hexadecimal numbers without fraction and optional binary power + /0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/, + // Decimal numbers + /(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/ + ); + const OPERATORS_RE = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/; + const PUNCTUATION_RE = regex.either( + /[()]/, + /[{}]/, + /\[\[/, + /[[\]]/, + /\\/, + /,/ + ); + + return { + name: 'R', + + keywords: { + $pattern: IDENT_RE, + keyword: + 'function if in break next repeat else for while', + literal: + 'NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 ' + + 'NA_character_|10 NA_complex_|10', + built_in: + // Builtin constants + 'LETTERS letters month.abb month.name pi T F ' + // Primitive functions + // These are all the functions in `base` that are implemented as a + // `.Primitive`, minus those functions that are also keywords. + + 'abs acos acosh all any anyNA Arg as.call as.character ' + + 'as.complex as.double as.environment as.integer as.logical ' + + 'as.null.default as.numeric as.raw asin asinh atan atanh attr ' + + 'attributes baseenv browser c call ceiling class Conj cos cosh ' + + 'cospi cummax cummin cumprod cumsum digamma dim dimnames ' + + 'emptyenv exp expression floor forceAndCall gamma gc.time ' + + 'globalenv Im interactive invisible is.array is.atomic is.call ' + + 'is.character is.complex is.double is.environment is.expression ' + + 'is.finite is.function is.infinite is.integer is.language ' + + 'is.list is.logical is.matrix is.na is.name is.nan is.null ' + + 'is.numeric is.object is.pairlist is.raw is.recursive is.single ' + + 'is.symbol lazyLoadDBfetch length lgamma list log max min ' + + 'missing Mod names nargs nzchar oldClass on.exit pos.to.env ' + + 'proc.time prod quote range Re rep retracemem return round ' + + 'seq_along seq_len seq.int sign signif sin sinh sinpi sqrt ' + + 'standardGeneric substitute sum switch tan tanh tanpi tracemem ' + + 'trigamma trunc unclass untracemem UseMethod xtfrm', + }, + + contains: [ + // Roxygen comments + hljs.COMMENT( + /#'/, + /$/, + { contains: [ + { + // Handle `@examples` separately to cause all subsequent code + // until the next `@`-tag on its own line to be kept as-is, + // preventing highlighting. This code is example R code, so nested + // doctags shouldn’t be treated as such. See + // `test/markup/r/roxygen.txt` for an example. + scope: 'doctag', + match: /@examples/, + starts: { + end: regex.lookahead(regex.either( + // end if another doc comment + /\n^#'\s*(?=@[a-zA-Z]+)/, + // or a line with no comment + /\n^(?!#')/ + )), + endsParent: true + } + }, + { + // Handle `@param` to highlight the parameter name following + // after. + scope: 'doctag', + begin: '@param', + end: /$/, + contains: [ + { + scope: 'variable', + variants: [ + { match: IDENT_RE }, + { match: /`(?:\\.|[^`\\])+`/ } + ], + endsParent: true + } + ] + }, + { + scope: 'doctag', + match: /@[a-zA-Z]+/ + }, + { + scope: 'keyword', + match: /\\[a-zA-Z]+/ + } + ] } + ), + + hljs.HASH_COMMENT_MODE, + + { + scope: 'string', + contains: [ hljs.BACKSLASH_ESCAPE ], + variants: [ + hljs.END_SAME_AS_BEGIN({ + begin: /[rR]"(-*)\(/, + end: /\)(-*)"/ + }), + hljs.END_SAME_AS_BEGIN({ + begin: /[rR]"(-*)\{/, + end: /\}(-*)"/ + }), + hljs.END_SAME_AS_BEGIN({ + begin: /[rR]"(-*)\[/, + end: /\](-*)"/ + }), + hljs.END_SAME_AS_BEGIN({ + begin: /[rR]'(-*)\(/, + end: /\)(-*)'/ + }), + hljs.END_SAME_AS_BEGIN({ + begin: /[rR]'(-*)\{/, + end: /\}(-*)'/ + }), + hljs.END_SAME_AS_BEGIN({ + begin: /[rR]'(-*)\[/, + end: /\](-*)'/ + }), + { + begin: '"', + end: '"', + relevance: 0 + }, + { + begin: "'", + end: "'", + relevance: 0 + } + ], + }, + + // Matching numbers immediately following punctuation and operators is + // tricky since we need to look at the character ahead of a number to + // ensure the number is not part of an identifier, and we cannot use + // negative look-behind assertions. So instead we explicitly handle all + // possible combinations of (operator|punctuation), number. + // TODO: replace with negative look-behind when available + // { begin: /(? +Category: functional +*/ +function reasonml(hljs) { + const BUILT_IN_TYPES = [ + "array", + "bool", + "bytes", + "char", + "exn|5", + "float", + "int", + "int32", + "int64", + "list", + "lazy_t|5", + "nativeint|5", + "ref", + "string", + "unit", + ]; + return { + name: 'ReasonML', + aliases: [ 're' ], + keywords: { + $pattern: /[a-z_]\w*!?/, + keyword: [ + "and", + "as", + "asr", + "assert", + "begin", + "class", + "constraint", + "do", + "done", + "downto", + "else", + "end", + "esfun", + "exception", + "external", + "for", + "fun", + "function", + "functor", + "if", + "in", + "include", + "inherit", + "initializer", + "land", + "lazy", + "let", + "lor", + "lsl", + "lsr", + "lxor", + "mod", + "module", + "mutable", + "new", + "nonrec", + "object", + "of", + "open", + "or", + "pri", + "pub", + "rec", + "sig", + "struct", + "switch", + "then", + "to", + "try", + "type", + "val", + "virtual", + "when", + "while", + "with", + ], + built_in: BUILT_IN_TYPES, + literal: ["true", "false"], + }, + illegal: /(:-|:=|\$\{|\+=)/, + contains: [ + { + scope: 'literal', + match: /\[(\|\|)?\]|\(\)/, + relevance: 0 + }, + hljs.C_LINE_COMMENT_MODE, + hljs.COMMENT(/\/\*/, /\*\//, { illegal: /^(#,\/\/)/ }), + { /* type variable */ + scope: 'symbol', + match: /\'[A-Za-z_](?!\')[\w\']*/ + /* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */ + }, + { /* polymorphic variant */ + scope: 'type', + match: /`[A-Z][\w\']*/ + }, + { /* module or constructor */ + scope: 'type', + match: /\b[A-Z][\w\']*/, + relevance: 0 + }, + { /* don't color identifiers, but safely catch all identifiers with ' */ + match: /[a-z_]\w*\'[\w\']*/, + relevance: 0 + }, + { + scope: 'operator', + match: /\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/, + relevance: 0 + }, + hljs.inherit(hljs.APOS_STRING_MODE, { + scope: 'string', + relevance: 0 + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }), + { + scope: 'number', + variants: [ + { match: /\b0[xX][a-fA-F0-9_]+[Lln]?/ }, + { match: /\b0[oO][0-7_]+[Lln]?/ }, + { match: /\b0[bB][01_]+[Lln]?/ }, + { match: /\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/ }, + ], + relevance: 0 + }, + ] + }; +} + +export { reasonml as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/reasonml.js.js b/tools/ui/node_modules/highlight.js/es/languages/reasonml.js.js new file mode 100644 index 0000000000000000000000000000000000000000..3ea41f04ff456d4a1a4e6fe7b77d3bb7c13a5d58 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/reasonml.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/reasonml" instead of "highlight.js/lib/languages/reasonml.js"' + ); + } + } + emitWarning(); + import lang from './reasonml.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/rib.js b/tools/ui/node_modules/highlight.js/es/languages/rib.js new file mode 100644 index 0000000000000000000000000000000000000000..aa64b7853da2c96521541bce23d61a7fc59c0caa --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/rib.js @@ -0,0 +1,37 @@ +/* +Language: RenderMan RIB +Author: Konstantin Evdokimenko +Contributors: Shuen-Huei Guan +Website: https://renderman.pixar.com/resources/RenderMan_20/ribBinding.html +Category: graphics +*/ + +function rib(hljs) { + return { + name: 'RenderMan RIB', + keywords: + 'ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis ' + + 'Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone ' + + 'CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail ' + + 'DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format ' + + 'FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry ' + + 'Hider Hyperboloid Identity Illuminate Imager Interior LightSource ' + + 'MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte ' + + 'MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option ' + + 'Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples ' + + 'PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection ' + + 'Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ' + + 'ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere ' + + 'SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd ' + + 'TransformPoints Translate TrimCurve WorldBegin WorldEnd', + illegal: ' +Description: Syntax highlighting for Roboconf's DSL +Website: http://roboconf.net +Category: config +*/ + +function roboconf(hljs) { + const IDENTIFIER = '[a-zA-Z-_][^\\n{]+\\{'; + + const PROPERTY = { + className: 'attribute', + begin: /[a-zA-Z-_]+/, + end: /\s*:/, + excludeEnd: true, + starts: { + end: ';', + relevance: 0, + contains: [ + { + className: 'variable', + begin: /\.[a-zA-Z-_]+/ + }, + { + className: 'keyword', + begin: /\(optional\)/ + } + ] + } + }; + + return { + name: 'Roboconf', + aliases: [ + 'graph', + 'instances' + ], + case_insensitive: true, + keywords: 'import', + contains: [ + // Facet sections + { + begin: '^facet ' + IDENTIFIER, + end: /\}/, + keywords: 'facet', + contains: [ + PROPERTY, + hljs.HASH_COMMENT_MODE + ] + }, + + // Instance sections + { + begin: '^\\s*instance of ' + IDENTIFIER, + end: /\}/, + keywords: 'name count channels instance-data instance-state instance of', + illegal: /\S/, + contains: [ + 'self', + PROPERTY, + hljs.HASH_COMMENT_MODE + ] + }, + + // Component sections + { + begin: '^' + IDENTIFIER, + end: /\}/, + contains: [ + PROPERTY, + hljs.HASH_COMMENT_MODE + ] + }, + + // Comments + hljs.HASH_COMMENT_MODE + ] + }; +} + +export { roboconf as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/roboconf.js.js b/tools/ui/node_modules/highlight.js/es/languages/roboconf.js.js new file mode 100644 index 0000000000000000000000000000000000000000..2f76c8ada74e8dc8bce3c0ee9077d8267fdf5fb8 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/roboconf.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/roboconf" instead of "highlight.js/lib/languages/roboconf.js"' + ); + } + } + emitWarning(); + import lang from './roboconf.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/routeros.js b/tools/ui/node_modules/highlight.js/es/languages/routeros.js new file mode 100644 index 0000000000000000000000000000000000000000..64dcc3d34505dab8ca599053d558ab66ffd93d9c --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/routeros.js @@ -0,0 +1,164 @@ +/* +Language: MikroTik RouterOS script +Author: Ivan Dementev +Description: Scripting host provides a way to automate some router maintenance tasks by means of executing user-defined scripts bounded to some event occurrence +Website: https://wiki.mikrotik.com/wiki/Manual:Scripting +Category: scripting +*/ + +// Colors from RouterOS terminal: +// green - #0E9A00 +// teal - #0C9A9A +// purple - #99069A +// light-brown - #9A9900 + +function routeros(hljs) { + const STATEMENTS = 'foreach do while for if from to step else on-error and or not in'; + + // Global commands: Every global command should start with ":" token, otherwise it will be treated as variable. + const GLOBAL_COMMANDS = 'global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime'; + + // Common commands: Following commands available from most sub-menus: + const COMMON_COMMANDS = 'add remove enable disable set get print export edit find run debug error info warning'; + + const LITERALS = 'true false yes no nothing nil null'; + + const OBJECTS = 'traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw'; + + const VAR = { + className: 'variable', + variants: [ + { begin: /\$[\w\d#@][\w\d_]*/ }, + { begin: /\$\{(.*?)\}/ } + ] + }; + + const QUOTE_STRING = { + className: 'string', + begin: /"/, + end: /"/, + contains: [ + hljs.BACKSLASH_ESCAPE, + VAR, + { + className: 'variable', + begin: /\$\(/, + end: /\)/, + contains: [ hljs.BACKSLASH_ESCAPE ] + } + ] + }; + + const APOS_STRING = { + className: 'string', + begin: /'/, + end: /'/ + }; + + return { + name: 'MikroTik RouterOS script', + aliases: [ 'mikrotik' ], + case_insensitive: true, + keywords: { + $pattern: /:?[\w-]+/, + literal: LITERALS, + keyword: STATEMENTS + ' :' + STATEMENTS.split(' ').join(' :') + ' :' + GLOBAL_COMMANDS.split(' ').join(' :') + }, + contains: [ + { // illegal syntax + variants: [ + { // -- comment + begin: /\/\*/, + end: /\*\// + }, + { // Stan comment + begin: /\/\//, + end: /$/ + }, + { // HTML tags + begin: /<\//, + end: />/ + } + ], + illegal: /./ + }, + hljs.COMMENT('^#', '$'), + QUOTE_STRING, + APOS_STRING, + VAR, + // attribute=value + { + // > is to avoid matches with => in other grammars + begin: /[\w-]+=([^\s{}[\]()>]+)/, + relevance: 0, + returnBegin: true, + contains: [ + { + className: 'attribute', + begin: /[^=]+/ + }, + { + begin: /=/, + endsWithParent: true, + relevance: 0, + contains: [ + QUOTE_STRING, + APOS_STRING, + VAR, + { + className: 'literal', + begin: '\\b(' + LITERALS.split(' ').join('|') + ')\\b' + }, + { + // Do not format unclassified values. Needed to exclude highlighting of values as built_in. + begin: /("[^"]*"|[^\s{}[\]]+)/ } + /* + { + // IPv4 addresses and subnets + className: 'number', + variants: [ + {begin: IPADDR_wBITMASK+'(,'+IPADDR_wBITMASK+')*'}, //192.168.0.0/24,1.2.3.0/24 + {begin: IPADDR+'-'+IPADDR}, // 192.168.0.1-192.168.0.3 + {begin: IPADDR+'(,'+IPADDR+')*'}, // 192.168.0.1,192.168.0.34,192.168.24.1,192.168.0.1 + ] + }, + { + // MAC addresses and DHCP Client IDs + className: 'number', + begin: /\b(1:)?([0-9A-Fa-f]{1,2}[:-]){5}([0-9A-Fa-f]){1,2}\b/, + }, + */ + ] + } + ] + }, + { + // HEX values + className: 'number', + begin: /\*[0-9a-fA-F]+/ + }, + { + begin: '\\b(' + COMMON_COMMANDS.split(' ').join('|') + ')([\\s[(\\]|])', + returnBegin: true, + contains: [ + { + className: 'built_in', // 'function', + begin: /\w+/ + } + ] + }, + { + className: 'built_in', + variants: [ + { begin: '(\\.\\./|/|\\s)((' + OBJECTS.split(' ').join('|') + ');?\\s)+' }, + { + begin: /\.\./, + relevance: 0 + } + ] + } + ] + }; +} + +export { routeros as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/routeros.js.js b/tools/ui/node_modules/highlight.js/es/languages/routeros.js.js new file mode 100644 index 0000000000000000000000000000000000000000..4d6c368cb8f4d9ff1100e342d732975ff9d32d46 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/routeros.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/routeros" instead of "highlight.js/lib/languages/routeros.js"' + ); + } + } + emitWarning(); + import lang from './routeros.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/rsl.js b/tools/ui/node_modules/highlight.js/es/languages/rsl.js new file mode 100644 index 0000000000000000000000000000000000000000..c878fa7768a87f929ddbcfff910b387c25ab1679 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/rsl.js @@ -0,0 +1,149 @@ +/* +Language: RenderMan RSL +Author: Konstantin Evdokimenko +Contributors: Shuen-Huei Guan +Website: https://renderman.pixar.com/resources/RenderMan_20/shadingLanguage.html +Category: graphics +*/ + +function rsl(hljs) { + const BUILT_INS = [ + "abs", + "acos", + "ambient", + "area", + "asin", + "atan", + "atmosphere", + "attribute", + "calculatenormal", + "ceil", + "cellnoise", + "clamp", + "comp", + "concat", + "cos", + "degrees", + "depth", + "Deriv", + "diffuse", + "distance", + "Du", + "Dv", + "environment", + "exp", + "faceforward", + "filterstep", + "floor", + "format", + "fresnel", + "incident", + "length", + "lightsource", + "log", + "match", + "max", + "min", + "mod", + "noise", + "normalize", + "ntransform", + "opposite", + "option", + "phong", + "pnoise", + "pow", + "printf", + "ptlined", + "radians", + "random", + "reflect", + "refract", + "renderinfo", + "round", + "setcomp", + "setxcomp", + "setycomp", + "setzcomp", + "shadow", + "sign", + "sin", + "smoothstep", + "specular", + "specularbrdf", + "spline", + "sqrt", + "step", + "tan", + "texture", + "textureinfo", + "trace", + "transform", + "vtransform", + "xcomp", + "ycomp", + "zcomp" + ]; + + const TYPES = [ + "matrix", + "float", + "color", + "point", + "normal", + "vector" + ]; + + const KEYWORDS = [ + "while", + "for", + "if", + "do", + "return", + "else", + "break", + "extern", + "continue" + ]; + + const CLASS_DEFINITION = { + match: [ + /(surface|displacement|light|volume|imager)/, + /\s+/, + hljs.IDENT_RE, + ], + scope: { + 1: "keyword", + 3: "title.class", + } + }; + + return { + name: 'RenderMan RSL', + keywords: { + keyword: KEYWORDS, + built_in: BUILT_INS, + type: TYPES + }, + illegal: ' +Contributors: Peter Leonov , Vasily Polovnyov , Loren Segal , Pascal Hurni , Cedric Sohrauer +Category: common, scripting +*/ + +function ruby(hljs) { + const regex = hljs.regex; + const RUBY_METHOD_RE = '([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)'; + // TODO: move concepts like CAMEL_CASE into `modes.js` + const CLASS_NAME_RE = regex.either( + /\b([A-Z]+[a-z0-9]+)+/, + // ends in caps + /\b([A-Z]+[a-z0-9]+)+[A-Z]+/, + ) + ; + const CLASS_NAME_WITH_NAMESPACE_RE = regex.concat(CLASS_NAME_RE, /(::\w+)*/); + // very popular ruby built-ins that one might even assume + // are actual keywords (despite that not being the case) + const PSEUDO_KWS = [ + "include", + "extend", + "prepend", + "public", + "private", + "protected", + "raise", + "throw" + ]; + const RUBY_KEYWORDS = { + "variable.constant": [ + "__FILE__", + "__LINE__", + "__ENCODING__" + ], + "variable.language": [ + "self", + "super", + ], + keyword: [ + "alias", + "and", + "begin", + "BEGIN", + "break", + "case", + "class", + "defined", + "do", + "else", + "elsif", + "end", + "END", + "ensure", + "for", + "if", + "in", + "module", + "next", + "not", + "or", + "redo", + "require", + "rescue", + "retry", + "return", + "then", + "undef", + "unless", + "until", + "when", + "while", + "yield", + ...PSEUDO_KWS + ], + built_in: [ + "proc", + "lambda", + "attr_accessor", + "attr_reader", + "attr_writer", + "define_method", + "private_constant", + "module_function" + ], + literal: [ + "true", + "false", + "nil" + ] + }; + const YARDOCTAG = { + className: 'doctag', + begin: '@[A-Za-z]+' + }; + const IRB_OBJECT = { + begin: '#<', + end: '>' + }; + const COMMENT_MODES = [ + hljs.COMMENT( + '#', + '$', + { contains: [ YARDOCTAG ] } + ), + hljs.COMMENT( + '^=begin', + '^=end', + { + contains: [ YARDOCTAG ], + relevance: 10 + } + ), + hljs.COMMENT('^__END__', hljs.MATCH_NOTHING_RE) + ]; + const SUBST = { + className: 'subst', + begin: /#\{/, + end: /\}/, + keywords: RUBY_KEYWORDS + }; + const STRING = { + className: 'string', + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ], + variants: [ + { + begin: /'/, + end: /'/ + }, + { + begin: /"/, + end: /"/ + }, + { + begin: /`/, + end: /`/ + }, + { + begin: /%[qQwWx]?\(/, + end: /\)/ + }, + { + begin: /%[qQwWx]?\[/, + end: /\]/ + }, + { + begin: /%[qQwWx]?\{/, + end: /\}/ + }, + { + begin: /%[qQwWx]?/ + }, + { + begin: /%[qQwWx]?\//, + end: /\// + }, + { + begin: /%[qQwWx]?%/, + end: /%/ + }, + { + begin: /%[qQwWx]?-/, + end: /-/ + }, + { + begin: /%[qQwWx]?\|/, + end: /\|/ + }, + // in the following expressions, \B in the beginning suppresses recognition of ?-sequences + // where ? is the last character of a preceding identifier, as in: `func?4` + { begin: /\B\?(\\\d{1,3})/ }, + { begin: /\B\?(\\x[A-Fa-f0-9]{1,2})/ }, + { begin: /\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/ }, + { begin: /\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/ }, + { begin: /\B\?\\(c|C-)[\x20-\x7e]/ }, + { begin: /\B\?\\?\S/ }, + // heredocs + { + // this guard makes sure that we have an entire heredoc and not a false + // positive (auto-detect, etc.) + begin: regex.concat( + /<<[-~]?'?/, + regex.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/) + ), + contains: [ + hljs.END_SAME_AS_BEGIN({ + begin: /(\w+)/, + end: /(\w+)/, + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ] + }) + ] + } + ] + }; + + // Ruby syntax is underdocumented, but this grammar seems to be accurate + // as of version 2.7.2 (confirmed with (irb and `Ripper.sexp(...)`) + // https://docs.ruby-lang.org/en/2.7.0/doc/syntax/literals_rdoc.html#label-Numbers + const decimal = '[1-9](_?[0-9])*|0'; + const digits = '[0-9](_?[0-9])*'; + const NUMBER = { + className: 'number', + relevance: 0, + variants: [ + // decimal integer/float, optionally exponential or rational, optionally imaginary + { begin: `\\b(${decimal})(\\.(${digits}))?([eE][+-]?(${digits})|r)?i?\\b` }, + + // explicit decimal/binary/octal/hexadecimal integer, + // optionally rational and/or imaginary + { begin: "\\b0[dD][0-9](_?[0-9])*r?i?\\b" }, + { begin: "\\b0[bB][0-1](_?[0-1])*r?i?\\b" }, + { begin: "\\b0[oO][0-7](_?[0-7])*r?i?\\b" }, + { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b" }, + + // 0-prefixed implicit octal integer, optionally rational and/or imaginary + { begin: "\\b0(_?[0-7])+r?i?\\b" } + ] + }; + + const PARAMS = { + variants: [ + { + match: /\(\)/, + }, + { + className: 'params', + begin: /\(/, + end: /(?=\))/, + excludeBegin: true, + endsParent: true, + keywords: RUBY_KEYWORDS, + } + ] + }; + + const INCLUDE_EXTEND = { + match: [ + /(include|extend)\s+/, + CLASS_NAME_WITH_NAMESPACE_RE + ], + scope: { + 2: "title.class" + }, + keywords: RUBY_KEYWORDS + }; + + const CLASS_DEFINITION = { + variants: [ + { + match: [ + /class\s+/, + CLASS_NAME_WITH_NAMESPACE_RE, + /\s+<\s+/, + CLASS_NAME_WITH_NAMESPACE_RE + ] + }, + { + match: [ + /\b(class|module)\s+/, + CLASS_NAME_WITH_NAMESPACE_RE + ] + } + ], + scope: { + 2: "title.class", + 4: "title.class.inherited" + }, + keywords: RUBY_KEYWORDS + }; + + const UPPER_CASE_CONSTANT = { + relevance: 0, + match: /\b[A-Z][A-Z_0-9]+\b/, + className: "variable.constant" + }; + + const METHOD_DEFINITION = { + match: [ + /def/, /\s+/, + RUBY_METHOD_RE + ], + scope: { + 1: "keyword", + 3: "title.function" + }, + contains: [ + PARAMS + ] + }; + + const OBJECT_CREATION = { + relevance: 0, + match: [ + CLASS_NAME_WITH_NAMESPACE_RE, + /\.new[. (]/ + ], + scope: { + 1: "title.class" + } + }; + + // CamelCase + const CLASS_REFERENCE = { + relevance: 0, + match: CLASS_NAME_RE, + scope: "title.class" + }; + + const RUBY_DEFAULT_CONTAINS = [ + STRING, + CLASS_DEFINITION, + INCLUDE_EXTEND, + OBJECT_CREATION, + UPPER_CASE_CONSTANT, + CLASS_REFERENCE, + METHOD_DEFINITION, + { + // swallow namespace qualifiers before symbols + begin: hljs.IDENT_RE + '::' }, + { + className: 'symbol', + begin: hljs.UNDERSCORE_IDENT_RE + '(!|\\?)?:', + relevance: 0 + }, + { + className: 'symbol', + begin: ':(?!\\s)', + contains: [ + STRING, + { begin: RUBY_METHOD_RE } + ], + relevance: 0 + }, + NUMBER, + { + // negative-look forward attempts to prevent false matches like: + // @ident@ or $ident$ that might indicate this is not ruby at all + className: "variable", + begin: '(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])' + `(?![A-Za-z])(?![@$?'])` + }, + { + className: 'params', + begin: /\|(?!=)/, + end: /\|/, + excludeBegin: true, + excludeEnd: true, + relevance: 0, // this could be a lot of things (in other languages) other than params + keywords: RUBY_KEYWORDS + }, + { // regexp container + begin: '(' + hljs.RE_STARTERS_RE + '|unless)\\s*', + keywords: 'unless', + contains: [ + { + className: 'regexp', + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ], + illegal: /\n/, + variants: [ + { + begin: '/', + end: '/[a-z]*' + }, + { + begin: /%r\{/, + end: /\}[a-z]*/ + }, + { + begin: '%r\\(', + end: '\\)[a-z]*' + }, + { + begin: '%r!', + end: '![a-z]*' + }, + { + begin: '%r\\[', + end: '\\][a-z]*' + } + ] + } + ].concat(IRB_OBJECT, COMMENT_MODES), + relevance: 0 + } + ].concat(IRB_OBJECT, COMMENT_MODES); + + SUBST.contains = RUBY_DEFAULT_CONTAINS; + PARAMS.contains = RUBY_DEFAULT_CONTAINS; + + // >> + // ?> + const SIMPLE_PROMPT = "[>?]>"; + // irb(main):001:0> + const DEFAULT_PROMPT = "[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"; + const RVM_PROMPT = "(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"; + + const IRB_DEFAULT = [ + { + begin: /^\s*=>/, + starts: { + end: '$', + contains: RUBY_DEFAULT_CONTAINS + } + }, + { + className: 'meta.prompt', + begin: '^(' + SIMPLE_PROMPT + "|" + DEFAULT_PROMPT + '|' + RVM_PROMPT + ')(?=[ ])', + starts: { + end: '$', + keywords: RUBY_KEYWORDS, + contains: RUBY_DEFAULT_CONTAINS + } + } + ]; + + COMMENT_MODES.unshift(IRB_OBJECT); + + return { + name: 'Ruby', + aliases: [ + 'rb', + 'gemspec', + 'podspec', + 'thor', + 'irb' + ], + keywords: RUBY_KEYWORDS, + illegal: /\/\*/, + contains: [ hljs.SHEBANG({ binary: "ruby" }) ] + .concat(IRB_DEFAULT) + .concat(COMMENT_MODES) + .concat(RUBY_DEFAULT_CONTAINS) + }; +} + +export { ruby as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/ruby.js.js b/tools/ui/node_modules/highlight.js/es/languages/ruby.js.js new file mode 100644 index 0000000000000000000000000000000000000000..47562266d8c32d5d6fd1e09c93c43385f0e97264 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/ruby.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/ruby" instead of "highlight.js/lib/languages/ruby.js"' + ); + } + } + emitWarning(); + import lang from './ruby.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/ruleslanguage.js b/tools/ui/node_modules/highlight.js/es/languages/ruleslanguage.js new file mode 100644 index 0000000000000000000000000000000000000000..837d379f46e701f642f5aed0b9fe3131d1fe24ab --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/ruleslanguage.js @@ -0,0 +1,76 @@ +/* +Language: Oracle Rules Language +Author: Jason Jacobson +Description: The Oracle Utilities Rules Language is used to program the Oracle Utilities Applications acquired from LODESTAR Corporation. The products include Billing Component, LPSS, Pricing Component etc. through version 1.6.1. +Website: https://docs.oracle.com/cd/E17904_01/dev.1111/e10227/rlref.htm +Category: enterprise +*/ + +function ruleslanguage(hljs) { + return { + name: 'Oracle Rules Language', + keywords: { + keyword: + 'BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE ' + + 'INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 ' + + 'INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 ' + + 'INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 ' + + 'INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 ' + + 'INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 ' + + 'INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 ' + + 'INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 ' + + 'INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 ' + + 'INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 ' + + 'INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 ' + + 'INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 ' + + 'INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 ' + + 'INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 ' + + 'INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 ' + + 'MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER ' + + 'OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE ' + + 'NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH ' + + 'IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND ' + + 'UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ' + + 'ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE ' + + 'GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE ' + + 'SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING ' + + 'DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF ' + + 'MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY ' + + 'YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE ' + + 'COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR ' + + 'READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ' + + 'ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE ' + + 'EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE ' + + 'SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL ' + + 'COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN ' + + 'MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING ' + + 'FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM ' + + 'NUMDAYS READ_DATE STAGING', + built_in: + 'IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML ' + + 'DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT ' + + 'DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE ' + + 'DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT ' + + 'DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME' + }, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + { + className: 'literal', + variants: [ + { // looks like #-comment + begin: '#\\s+', + relevance: 0 + }, + { begin: '#[a-zA-Z .]+' } + ] + } + ] + }; +} + +export { ruleslanguage as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/ruleslanguage.js.js b/tools/ui/node_modules/highlight.js/es/languages/ruleslanguage.js.js new file mode 100644 index 0000000000000000000000000000000000000000..be9e72e9a2eec88a1ec35f75fcd2ea1ead5632d1 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/ruleslanguage.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/ruleslanguage" instead of "highlight.js/lib/languages/ruleslanguage.js"' + ); + } + } + emitWarning(); + import lang from './ruleslanguage.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/rust.js b/tools/ui/node_modules/highlight.js/es/languages/rust.js new file mode 100644 index 0000000000000000000000000000000000000000..6629887f3ca36c2f653d382f0e562e083ca036eb --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/rust.js @@ -0,0 +1,326 @@ +/* +Language: Rust +Author: Andrey Vlasovskikh +Contributors: Roman Shmatov , Kasper Andersen +Website: https://www.rust-lang.org +Category: common, system +*/ + +/** @type LanguageFn */ + +function rust(hljs) { + const regex = hljs.regex; + // ============================================ + // Added to support the r# keyword, which is a raw identifier in Rust. + const RAW_IDENTIFIER = /(r#)?/; + const UNDERSCORE_IDENT_RE = regex.concat(RAW_IDENTIFIER, hljs.UNDERSCORE_IDENT_RE); + const IDENT_RE = regex.concat(RAW_IDENTIFIER, hljs.IDENT_RE); + // ============================================ + const FUNCTION_INVOKE = { + className: "title.function.invoke", + relevance: 0, + begin: regex.concat( + /\b/, + /(?!let|for|while|if|else|match\b)/, + IDENT_RE, + regex.lookahead(/\s*\(/)) + }; + const NUMBER_SUFFIX = '([ui](8|16|32|64|128|size)|f(32|64))\?'; + const KEYWORDS = [ + "abstract", + "as", + "async", + "await", + "become", + "box", + "break", + "const", + "continue", + "crate", + "do", + "dyn", + "else", + "enum", + "extern", + "false", + "final", + "fn", + "for", + "if", + "impl", + "in", + "let", + "loop", + "macro", + "match", + "mod", + "move", + "mut", + "override", + "priv", + "pub", + "ref", + "return", + "self", + "Self", + "static", + "struct", + "super", + "trait", + "true", + "try", + "type", + "typeof", + "union", + "unsafe", + "unsized", + "use", + "virtual", + "where", + "while", + "yield" + ]; + const LITERALS = [ + "true", + "false", + "Some", + "None", + "Ok", + "Err" + ]; + const BUILTINS = [ + // functions + 'drop ', + // traits + "Copy", + "Send", + "Sized", + "Sync", + "Drop", + "Fn", + "FnMut", + "FnOnce", + "ToOwned", + "Clone", + "Debug", + "PartialEq", + "PartialOrd", + "Eq", + "Ord", + "AsRef", + "AsMut", + "Into", + "From", + "Default", + "Iterator", + "Extend", + "IntoIterator", + "DoubleEndedIterator", + "ExactSizeIterator", + "SliceConcatExt", + "ToString", + // macros + "assert!", + "assert_eq!", + "bitflags!", + "bytes!", + "cfg!", + "col!", + "concat!", + "concat_idents!", + "debug_assert!", + "debug_assert_eq!", + "env!", + "eprintln!", + "panic!", + "file!", + "format!", + "format_args!", + "include_bytes!", + "include_str!", + "line!", + "local_data_key!", + "module_path!", + "option_env!", + "print!", + "println!", + "select!", + "stringify!", + "try!", + "unimplemented!", + "unreachable!", + "vec!", + "write!", + "writeln!", + "macro_rules!", + "assert_ne!", + "debug_assert_ne!" + ]; + const TYPES = [ + "i8", + "i16", + "i32", + "i64", + "i128", + "isize", + "u8", + "u16", + "u32", + "u64", + "u128", + "usize", + "f32", + "f64", + "str", + "char", + "bool", + "Box", + "Option", + "Result", + "String", + "Vec" + ]; + return { + name: 'Rust', + aliases: [ 'rs' ], + keywords: { + $pattern: hljs.IDENT_RE + '!?', + type: TYPES, + keyword: KEYWORDS, + literal: LITERALS, + built_in: BUILTINS + }, + illegal: '' + }, + FUNCTION_INVOKE + ] + }; +} + +export { rust as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/rust.js.js b/tools/ui/node_modules/highlight.js/es/languages/rust.js.js new file mode 100644 index 0000000000000000000000000000000000000000..298f105bd67f20673feb81ae799823c7a3233365 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/rust.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/rust" instead of "highlight.js/lib/languages/rust.js"' + ); + } + } + emitWarning(); + import lang from './rust.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/sas.js b/tools/ui/node_modules/highlight.js/es/languages/sas.js new file mode 100644 index 0000000000000000000000000000000000000000..c866fa6399fa5eeecc103eab94ebfd258c77a2ac --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/sas.js @@ -0,0 +1,557 @@ +/* +Language: SAS +Author: Mauricio Caceres +Description: Syntax Highlighting for SAS +Category: scientific +*/ + +/** @type LanguageFn */ +function sas(hljs) { + const regex = hljs.regex; + // Data step and PROC SQL statements + const SAS_KEYWORDS = [ + "do", + "if", + "then", + "else", + "end", + "until", + "while", + "abort", + "array", + "attrib", + "by", + "call", + "cards", + "cards4", + "catname", + "continue", + "datalines", + "datalines4", + "delete", + "delim", + "delimiter", + "display", + "dm", + "drop", + "endsas", + "error", + "file", + "filename", + "footnote", + "format", + "goto", + "in", + "infile", + "informat", + "input", + "keep", + "label", + "leave", + "length", + "libname", + "link", + "list", + "lostcard", + "merge", + "missing", + "modify", + "options", + "output", + "out", + "page", + "put", + "redirect", + "remove", + "rename", + "replace", + "retain", + "return", + "select", + "set", + "skip", + "startsas", + "stop", + "title", + "update", + "waitsas", + "where", + "window", + "x|0", + "systask", + "add", + "and", + "alter", + "as", + "cascade", + "check", + "create", + "delete", + "describe", + "distinct", + "drop", + "foreign", + "from", + "group", + "having", + "index", + "insert", + "into", + "in", + "key", + "like", + "message", + "modify", + "msgtype", + "not", + "null", + "on", + "or", + "order", + "primary", + "references", + "reset", + "restrict", + "select", + "set", + "table", + "unique", + "update", + "validate", + "view", + "where" + ]; + + // Built-in SAS functions + const FUNCTIONS = [ + "abs", + "addr", + "airy", + "arcos", + "arsin", + "atan", + "attrc", + "attrn", + "band", + "betainv", + "blshift", + "bnot", + "bor", + "brshift", + "bxor", + "byte", + "cdf", + "ceil", + "cexist", + "cinv", + "close", + "cnonct", + "collate", + "compbl", + "compound", + "compress", + "cos", + "cosh", + "css", + "curobs", + "cv", + "daccdb", + "daccdbsl", + "daccsl", + "daccsyd", + "dacctab", + "dairy", + "date", + "datejul", + "datepart", + "datetime", + "day", + "dclose", + "depdb", + "depdbsl", + "depdbsl", + "depsl", + "depsl", + "depsyd", + "depsyd", + "deptab", + "deptab", + "dequote", + "dhms", + "dif", + "digamma", + "dim", + "dinfo", + "dnum", + "dopen", + "doptname", + "doptnum", + "dread", + "dropnote", + "dsname", + "erf", + "erfc", + "exist", + "exp", + "fappend", + "fclose", + "fcol", + "fdelete", + "fetch", + "fetchobs", + "fexist", + "fget", + "fileexist", + "filename", + "fileref", + "finfo", + "finv", + "fipname", + "fipnamel", + "fipstate", + "floor", + "fnonct", + "fnote", + "fopen", + "foptname", + "foptnum", + "fpoint", + "fpos", + "fput", + "fread", + "frewind", + "frlen", + "fsep", + "fuzz", + "fwrite", + "gaminv", + "gamma", + "getoption", + "getvarc", + "getvarn", + "hbound", + "hms", + "hosthelp", + "hour", + "ibessel", + "index", + "indexc", + "indexw", + "input", + "inputc", + "inputn", + "int", + "intck", + "intnx", + "intrr", + "irr", + "jbessel", + "juldate", + "kurtosis", + "lag", + "lbound", + "left", + "length", + "lgamma", + "libname", + "libref", + "log", + "log10", + "log2", + "logpdf", + "logpmf", + "logsdf", + "lowcase", + "max", + "mdy", + "mean", + "min", + "minute", + "mod", + "month", + "mopen", + "mort", + "n", + "netpv", + "nmiss", + "normal", + "note", + "npv", + "open", + "ordinal", + "pathname", + "pdf", + "peek", + "peekc", + "pmf", + "point", + "poisson", + "poke", + "probbeta", + "probbnml", + "probchi", + "probf", + "probgam", + "probhypr", + "probit", + "probnegb", + "probnorm", + "probt", + "put", + "putc", + "putn", + "qtr", + "quote", + "ranbin", + "rancau", + "ranexp", + "rangam", + "range", + "rank", + "rannor", + "ranpoi", + "rantbl", + "rantri", + "ranuni", + "repeat", + "resolve", + "reverse", + "rewind", + "right", + "round", + "saving", + "scan", + "sdf", + "second", + "sign", + "sin", + "sinh", + "skewness", + "soundex", + "spedis", + "sqrt", + "std", + "stderr", + "stfips", + "stname", + "stnamel", + "substr", + "sum", + "symget", + "sysget", + "sysmsg", + "sysprod", + "sysrc", + "system", + "tan", + "tanh", + "time", + "timepart", + "tinv", + "tnonct", + "today", + "translate", + "tranwrd", + "trigamma", + "trim", + "trimn", + "trunc", + "uniform", + "upcase", + "uss", + "var", + "varfmt", + "varinfmt", + "varlabel", + "varlen", + "varname", + "varnum", + "varray", + "varrayx", + "vartype", + "verify", + "vformat", + "vformatd", + "vformatdx", + "vformatn", + "vformatnx", + "vformatw", + "vformatwx", + "vformatx", + "vinarray", + "vinarrayx", + "vinformat", + "vinformatd", + "vinformatdx", + "vinformatn", + "vinformatnx", + "vinformatw", + "vinformatwx", + "vinformatx", + "vlabel", + "vlabelx", + "vlength", + "vlengthx", + "vname", + "vnamex", + "vtype", + "vtypex", + "weekday", + "year", + "yyq", + "zipfips", + "zipname", + "zipnamel", + "zipstate" + ]; + + // Built-in macro functions + const MACRO_FUNCTIONS = [ + "bquote", + "nrbquote", + "cmpres", + "qcmpres", + "compstor", + "datatyp", + "display", + "do", + "else", + "end", + "eval", + "global", + "goto", + "if", + "index", + "input", + "keydef", + "label", + "left", + "length", + "let", + "local", + "lowcase", + "macro", + "mend", + "nrbquote", + "nrquote", + "nrstr", + "put", + "qcmpres", + "qleft", + "qlowcase", + "qscan", + "qsubstr", + "qsysfunc", + "qtrim", + "quote", + "qupcase", + "scan", + "str", + "substr", + "superq", + "syscall", + "sysevalf", + "sysexec", + "sysfunc", + "sysget", + "syslput", + "sysprod", + "sysrc", + "sysrput", + "then", + "to", + "trim", + "unquote", + "until", + "upcase", + "verify", + "while", + "window" + ]; + + const LITERALS = [ + "null", + "missing", + "_all_", + "_automatic_", + "_character_", + "_infile_", + "_n_", + "_name_", + "_null_", + "_numeric_", + "_user_", + "_webout_" + ]; + + return { + name: 'SAS', + case_insensitive: true, + keywords: { + literal: LITERALS, + keyword: SAS_KEYWORDS + }, + contains: [ + { + // Distinct highlight for proc , data, run, quit + className: 'keyword', + begin: /^\s*(proc [\w\d_]+|data|run|quit)[\s;]/ + }, + { + // Macro variables + className: 'variable', + begin: /&[a-zA-Z_&][a-zA-Z0-9_]*\.?/ + }, + { + begin: [ + /^\s*/, + /datalines;|cards;/, + /(?:.*\n)+/, + /^\s*;\s*$/ + ], + className: { + 2: "keyword", + 3: "string" + } + }, + { + begin: [ + /%mend|%macro/, + /\s+/, + /[a-zA-Z_&][a-zA-Z0-9_]*/ + ], + className: { + 1: "built_in", + 3: "title.function" + } + }, + { // Built-in macro variables + className: 'built_in', + begin: '%' + regex.either(...MACRO_FUNCTIONS) + }, + { + // User-defined macro functions + className: 'title.function', + begin: /%[a-zA-Z_][a-zA-Z_0-9]*/ + }, + { + // TODO: this is most likely an incorrect classification + // built_in may need more nuance + // https://github.com/highlightjs/highlight.js/issues/2521 + className: 'meta', + begin: regex.either(...FUNCTIONS) + '(?=\\()' + }, + { + className: 'string', + variants: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE + ] + }, + hljs.COMMENT('\\*', ';'), + hljs.C_BLOCK_COMMENT_MODE + ] + }; +} + +export { sas as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/sas.js.js b/tools/ui/node_modules/highlight.js/es/languages/sas.js.js new file mode 100644 index 0000000000000000000000000000000000000000..04f9f6956b5fb793195a0eea4f444eed09e1c316 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/sas.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/sas" instead of "highlight.js/lib/languages/sas.js"' + ); + } + } + emitWarning(); + import lang from './sas.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/scala.js b/tools/ui/node_modules/highlight.js/es/languages/scala.js new file mode 100644 index 0000000000000000000000000000000000000000..34ce5563038e8cb47dc8755c31e33ed17258827a --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/scala.js @@ -0,0 +1,214 @@ +/* +Language: Scala +Category: functional +Author: Jan Berkel +Contributors: Erik Osheim +Website: https://www.scala-lang.org +*/ + +function scala(hljs) { + const regex = hljs.regex; + const ANNOTATION = { + className: 'meta', + begin: '@[A-Za-z]+' + }; + + // used in strings for escaping/interpolation/substitution + const SUBST = { + className: 'subst', + variants: [ + { begin: '\\$[A-Za-z0-9_]+' }, + { + begin: /\$\{/, + end: /\}/ + } + ] + }; + + const STRING = { + className: 'string', + variants: [ + { + begin: '"""', + end: '"""' + }, + { + begin: '"', + end: '"', + illegal: '\\n', + contains: [ hljs.BACKSLASH_ESCAPE ] + }, + { + begin: '[a-z]+"', + end: '"', + illegal: '\\n', + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ] + }, + { + className: 'string', + begin: '[a-z]+"""', + end: '"""', + contains: [ SUBST ], + relevance: 10 + } + ] + + }; + + const TYPE = { + className: 'type', + begin: '\\b[A-Z][A-Za-z0-9_]*', + relevance: 0 + }; + + const NAME = { + className: 'title', + begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/, + relevance: 0 + }; + + const CLASS = { + className: 'class', + beginKeywords: 'class object trait type', + end: /[:={\[\n;]/, + excludeEnd: true, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + beginKeywords: 'extends with', + relevance: 10 + }, + { + begin: /\[/, + end: /\]/, + excludeBegin: true, + excludeEnd: true, + relevance: 0, + contains: [ + TYPE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + ] + }, + { + className: 'params', + begin: /\(/, + end: /\)/, + excludeBegin: true, + excludeEnd: true, + relevance: 0, + contains: [ + TYPE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + ] + }, + NAME + ] + }; + + const METHOD = { + className: 'function', + beginKeywords: 'def', + end: regex.lookahead(/[:={\[(\n;]/), + contains: [ NAME ] + }; + + const EXTENSION = { + begin: [ + /^\s*/, // Is first token on the line + 'extension', + /\s+(?=[[(])/, // followed by at least one space and `[` or `(` + ], + beginScope: { 2: "keyword", } + }; + + const END = { + begin: [ + /^\s*/, // Is first token on the line + /end/, + /\s+/, + /(extension\b)?/, // `extension` is the only marker that follows an `end` that cannot be captured by another rule. + ], + beginScope: { + 2: "keyword", + 4: "keyword", + } + }; + + // TODO: use negative look-behind in future + // /(?', + /\s+/, + /using/, + /\s+/, + /\S+/ + ], + beginScope: { + 1: "comment", + 3: "keyword", + 5: "type" + }, + end: /$/, + contains: [ + DIRECTIVE_VALUE, + ] + }; + + return { + name: 'Scala', + keywords: { + literal: 'true false null', + keyword: 'type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent' + }, + contains: [ + USING_DIRECTIVE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + STRING, + TYPE, + METHOD, + CLASS, + hljs.C_NUMBER_MODE, + EXTENSION, + END, + ...INLINE_MODES, + USING_PARAM_CLAUSE, + ANNOTATION + ] + }; +} + +export { scala as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/scala.js.js b/tools/ui/node_modules/highlight.js/es/languages/scala.js.js new file mode 100644 index 0000000000000000000000000000000000000000..bb1cefc0bb5d37013cdc5a9319a1aa9faaf77a99 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/scala.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/scala" instead of "highlight.js/lib/languages/scala.js"' + ); + } + } + emitWarning(); + import lang from './scala.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/scheme.js b/tools/ui/node_modules/highlight.js/es/languages/scheme.js new file mode 100644 index 0000000000000000000000000000000000000000..1d6b34aca69e9a5d9aea60d1f14d64dc6467d6ee --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/scheme.js @@ -0,0 +1,196 @@ +/* +Language: Scheme +Description: Scheme is a programming language in the Lisp family. + (keywords based on http://community.schemewiki.org/?scheme-keywords) +Author: JP Verkamp +Contributors: Ivan Sagalaev +Origin: clojure.js +Website: http://community.schemewiki.org/?what-is-scheme +Category: lisp +*/ + +function scheme(hljs) { + const SCHEME_IDENT_RE = '[^\\(\\)\\[\\]\\{\\}",\'`;#|\\\\\\s]+'; + const SCHEME_SIMPLE_NUMBER_RE = '(-|\\+)?\\d+([./]\\d+)?'; + const SCHEME_COMPLEX_NUMBER_RE = SCHEME_SIMPLE_NUMBER_RE + '[+\\-]' + SCHEME_SIMPLE_NUMBER_RE + 'i'; + const KEYWORDS = { + $pattern: SCHEME_IDENT_RE, + built_in: + 'case-lambda call/cc class define-class exit-handler field import ' + + 'inherit init-field interface let*-values let-values let/ec mixin ' + + 'opt-lambda override protect provide public rename require ' + + 'require-for-syntax syntax syntax-case syntax-error unit/sig unless ' + + 'when with-syntax and begin call-with-current-continuation ' + + 'call-with-input-file call-with-output-file case cond define ' + + 'define-syntax delay do dynamic-wind else for-each if lambda let let* ' + + 'let-syntax letrec letrec-syntax map or syntax-rules \' * + , ,@ - ... / ' + + '; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan ' + + 'boolean? caar cadr call-with-input-file call-with-output-file ' + + 'call-with-values car cdddar cddddr cdr ceiling char->integer ' + + 'char-alphabetic? char-ci<=? char-ci=? char-ci>? ' + + 'char-downcase char-lower-case? char-numeric? char-ready? char-upcase ' + + 'char-upper-case? char-whitespace? char<=? char=? char>? ' + + 'char? close-input-port close-output-port complex? cons cos ' + + 'current-input-port current-output-port denominator display eof-object? ' + + 'eq? equal? eqv? eval even? exact->inexact exact? exp expt floor ' + + 'force gcd imag-part inexact->exact inexact? input-port? integer->char ' + + 'integer? interaction-environment lcm length list list->string ' + + 'list->vector list-ref list-tail list? load log magnitude make-polar ' + + 'make-rectangular make-string make-vector max member memq memv min ' + + 'modulo negative? newline not null-environment null? number->string ' + + 'number? numerator odd? open-input-file open-output-file output-port? ' + + 'pair? peek-char port? positive? procedure? quasiquote quote quotient ' + + 'rational? rationalize read read-char real-part real? remainder reverse ' + + 'round scheme-report-environment set! set-car! set-cdr! sin sqrt string ' + + 'string->list string->number string->symbol string-append string-ci<=? ' + + 'string-ci=? string-ci>? string-copy ' + + 'string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? ' + + 'tan transcript-off transcript-on truncate values vector ' + + 'vector->list vector-fill! vector-length vector-ref vector-set! ' + + 'with-input-from-file with-output-to-file write write-char zero?' + }; + + const LITERAL = { + className: 'literal', + begin: '(#t|#f|#\\\\' + SCHEME_IDENT_RE + '|#\\\\.)' + }; + + const NUMBER = { + className: 'number', + variants: [ + { + begin: SCHEME_SIMPLE_NUMBER_RE, + relevance: 0 + }, + { + begin: SCHEME_COMPLEX_NUMBER_RE, + relevance: 0 + }, + { begin: '#b[0-1]+(/[0-1]+)?' }, + { begin: '#o[0-7]+(/[0-7]+)?' }, + { begin: '#x[0-9a-f]+(/[0-9a-f]+)?' } + ] + }; + + const STRING = hljs.QUOTE_STRING_MODE; + + const COMMENT_MODES = [ + hljs.COMMENT( + ';', + '$', + { relevance: 0 } + ), + hljs.COMMENT('#\\|', '\\|#') + ]; + + const IDENT = { + begin: SCHEME_IDENT_RE, + relevance: 0 + }; + + const QUOTED_IDENT = { + className: 'symbol', + begin: '\'' + SCHEME_IDENT_RE + }; + + const BODY = { + endsWithParent: true, + relevance: 0 + }; + + const QUOTED_LIST = { + variants: [ + { begin: /'/ }, + { begin: '`' } + ], + contains: [ + { + begin: '\\(', + end: '\\)', + contains: [ + 'self', + LITERAL, + STRING, + NUMBER, + IDENT, + QUOTED_IDENT + ] + } + ] + }; + + const NAME = { + className: 'name', + relevance: 0, + begin: SCHEME_IDENT_RE, + keywords: KEYWORDS + }; + + const LAMBDA = { + begin: /lambda/, + endsWithParent: true, + returnBegin: true, + contains: [ + NAME, + { + endsParent: true, + variants: [ + { + begin: /\(/, + end: /\)/ + }, + { + begin: /\[/, + end: /\]/ + } + ], + contains: [ IDENT ] + } + ] + }; + + const LIST = { + variants: [ + { + begin: '\\(', + end: '\\)' + }, + { + begin: '\\[', + end: '\\]' + } + ], + contains: [ + LAMBDA, + NAME, + BODY + ] + }; + + BODY.contains = [ + LITERAL, + NUMBER, + STRING, + IDENT, + QUOTED_IDENT, + QUOTED_LIST, + LIST + ].concat(COMMENT_MODES); + + return { + name: 'Scheme', + aliases: ['scm'], + illegal: /\S/, + contains: [ + hljs.SHEBANG(), + NUMBER, + STRING, + QUOTED_IDENT, + QUOTED_LIST, + LIST + ].concat(COMMENT_MODES) + }; +} + +export { scheme as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/scheme.js.js b/tools/ui/node_modules/highlight.js/es/languages/scheme.js.js new file mode 100644 index 0000000000000000000000000000000000000000..98d340bd7281372ecbcb9388635003380f34d380 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/scheme.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/scheme" instead of "highlight.js/lib/languages/scheme.js"' + ); + } + } + emitWarning(); + import lang from './scheme.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/scilab.js b/tools/ui/node_modules/highlight.js/es/languages/scilab.js new file mode 100644 index 0000000000000000000000000000000000000000..2f5ee09ff200143ff995579a9509685207156da7 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/scilab.js @@ -0,0 +1,73 @@ +/* +Language: Scilab +Author: Sylvestre Ledru +Origin: matlab.js +Description: Scilab is a port from Matlab +Website: https://www.scilab.org +Category: scientific +*/ + +function scilab(hljs) { + const COMMON_CONTAINS = [ + hljs.C_NUMBER_MODE, + { + className: 'string', + begin: '\'|\"', + end: '\'|\"', + contains: [ + hljs.BACKSLASH_ESCAPE, + { begin: '\'\'' } + ] + } + ]; + + return { + name: 'Scilab', + aliases: [ 'sci' ], + keywords: { + $pattern: /%?\w+/, + keyword: 'abort break case clear catch continue do elseif else endfunction end for function ' + + 'global if pause return resume select try then while', + literal: + '%f %F %t %T %pi %eps %inf %nan %e %i %z %s', + built_in: // Scilab has more than 2000 functions. Just list the most commons + 'abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error ' + + 'exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty ' + + 'isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log ' + + 'max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real ' + + 'round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan ' + + 'type typename warning zeros matrix' + }, + illegal: '("|#|/\\*|\\s+/\\w+)', + contains: [ + { + className: 'function', + beginKeywords: 'function', + end: '$', + contains: [ + hljs.UNDERSCORE_TITLE_MODE, + { + className: 'params', + begin: '\\(', + end: '\\)' + } + ] + }, + // seems to be a guard against [ident]' or [ident]. + // perhaps to prevent attributes from flagging as keywords? + { + begin: '[a-zA-Z_][a-zA-Z_0-9]*[\\.\']+', + relevance: 0 + }, + { + begin: '\\[', + end: '\\][\\.\']*', + relevance: 0, + contains: COMMON_CONTAINS + }, + hljs.COMMENT('//', '$') + ].concat(COMMON_CONTAINS) + }; +} + +export { scilab as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/scilab.js.js b/tools/ui/node_modules/highlight.js/es/languages/scilab.js.js new file mode 100644 index 0000000000000000000000000000000000000000..f618d43f7516c9a99fac0587155e7c2259d813ee --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/scilab.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/scilab" instead of "highlight.js/lib/languages/scilab.js"' + ); + } + } + emitWarning(); + import lang from './scilab.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/scss.js b/tools/ui/node_modules/highlight.js/es/languages/scss.js new file mode 100644 index 0000000000000000000000000000000000000000..a379f39c53a1812f37407a803db0a397f9208086 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/scss.js @@ -0,0 +1,939 @@ +const MODES = (hljs) => { + return { + IMPORTANT: { + scope: 'meta', + begin: '!important' + }, + BLOCK_COMMENT: hljs.C_BLOCK_COMMENT_MODE, + HEXCOLOR: { + scope: 'number', + begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ + }, + FUNCTION_DISPATCH: { + className: "built_in", + begin: /[\w-]+(?=\()/ + }, + ATTRIBUTE_SELECTOR_MODE: { + scope: 'selector-attr', + begin: /\[/, + end: /\]/, + illegal: '$', + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE + ] + }, + CSS_NUMBER_MODE: { + scope: 'number', + begin: hljs.NUMBER_RE + '(' + + '%|em|ex|ch|rem' + + '|vw|vh|vmin|vmax' + + '|cm|mm|in|pt|pc|px' + + '|deg|grad|rad|turn' + + '|s|ms' + + '|Hz|kHz' + + '|dpi|dpcm|dppx' + + ')?', + relevance: 0 + }, + CSS_VARIABLE: { + className: "attr", + begin: /--[A-Za-z_][A-Za-z0-9_-]*/ + } + }; +}; + +const HTML_TAGS = [ + 'a', + 'abbr', + 'address', + 'article', + 'aside', + 'audio', + 'b', + 'blockquote', + 'body', + 'button', + 'canvas', + 'caption', + 'cite', + 'code', + 'dd', + 'del', + 'details', + 'dfn', + 'div', + 'dl', + 'dt', + 'em', + 'fieldset', + 'figcaption', + 'figure', + 'footer', + 'form', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'header', + 'hgroup', + 'html', + 'i', + 'iframe', + 'img', + 'input', + 'ins', + 'kbd', + 'label', + 'legend', + 'li', + 'main', + 'mark', + 'menu', + 'nav', + 'object', + 'ol', + 'optgroup', + 'option', + 'p', + 'picture', + 'q', + 'quote', + 'samp', + 'section', + 'select', + 'source', + 'span', + 'strong', + 'summary', + 'sup', + 'table', + 'tbody', + 'td', + 'textarea', + 'tfoot', + 'th', + 'thead', + 'time', + 'tr', + 'ul', + 'var', + 'video' +]; + +const SVG_TAGS = [ + 'defs', + 'g', + 'marker', + 'mask', + 'pattern', + 'svg', + 'switch', + 'symbol', + 'feBlend', + 'feColorMatrix', + 'feComponentTransfer', + 'feComposite', + 'feConvolveMatrix', + 'feDiffuseLighting', + 'feDisplacementMap', + 'feFlood', + 'feGaussianBlur', + 'feImage', + 'feMerge', + 'feMorphology', + 'feOffset', + 'feSpecularLighting', + 'feTile', + 'feTurbulence', + 'linearGradient', + 'radialGradient', + 'stop', + 'circle', + 'ellipse', + 'image', + 'line', + 'path', + 'polygon', + 'polyline', + 'rect', + 'text', + 'use', + 'textPath', + 'tspan', + 'foreignObject', + 'clipPath' +]; + +const TAGS = [ + ...HTML_TAGS, + ...SVG_TAGS, +]; + +// Sorting, then reversing makes sure longer attributes/elements like +// `font-weight` are matched fully instead of getting false positives on say `font` + +const MEDIA_FEATURES = [ + 'any-hover', + 'any-pointer', + 'aspect-ratio', + 'color', + 'color-gamut', + 'color-index', + 'device-aspect-ratio', + 'device-height', + 'device-width', + 'display-mode', + 'forced-colors', + 'grid', + 'height', + 'hover', + 'inverted-colors', + 'monochrome', + 'orientation', + 'overflow-block', + 'overflow-inline', + 'pointer', + 'prefers-color-scheme', + 'prefers-contrast', + 'prefers-reduced-motion', + 'prefers-reduced-transparency', + 'resolution', + 'scan', + 'scripting', + 'update', + 'width', + // TODO: find a better solution? + 'min-width', + 'max-width', + 'min-height', + 'max-height' +].sort().reverse(); + +// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes +const PSEUDO_CLASSES = [ + 'active', + 'any-link', + 'blank', + 'checked', + 'current', + 'default', + 'defined', + 'dir', // dir() + 'disabled', + 'drop', + 'empty', + 'enabled', + 'first', + 'first-child', + 'first-of-type', + 'fullscreen', + 'future', + 'focus', + 'focus-visible', + 'focus-within', + 'has', // has() + 'host', // host or host() + 'host-context', // host-context() + 'hover', + 'indeterminate', + 'in-range', + 'invalid', + 'is', // is() + 'lang', // lang() + 'last-child', + 'last-of-type', + 'left', + 'link', + 'local-link', + 'not', // not() + 'nth-child', // nth-child() + 'nth-col', // nth-col() + 'nth-last-child', // nth-last-child() + 'nth-last-col', // nth-last-col() + 'nth-last-of-type', //nth-last-of-type() + 'nth-of-type', //nth-of-type() + 'only-child', + 'only-of-type', + 'optional', + 'out-of-range', + 'past', + 'placeholder-shown', + 'read-only', + 'read-write', + 'required', + 'right', + 'root', + 'scope', + 'target', + 'target-within', + 'user-invalid', + 'valid', + 'visited', + 'where' // where() +].sort().reverse(); + +// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements +const PSEUDO_ELEMENTS = [ + 'after', + 'backdrop', + 'before', + 'cue', + 'cue-region', + 'first-letter', + 'first-line', + 'grammar-error', + 'marker', + 'part', + 'placeholder', + 'selection', + 'slotted', + 'spelling-error' +].sort().reverse(); + +const ATTRIBUTES = [ + 'accent-color', + 'align-content', + 'align-items', + 'align-self', + 'alignment-baseline', + 'all', + 'anchor-name', + 'animation', + 'animation-composition', + 'animation-delay', + 'animation-direction', + 'animation-duration', + 'animation-fill-mode', + 'animation-iteration-count', + 'animation-name', + 'animation-play-state', + 'animation-range', + 'animation-range-end', + 'animation-range-start', + 'animation-timeline', + 'animation-timing-function', + 'appearance', + 'aspect-ratio', + 'backdrop-filter', + 'backface-visibility', + 'background', + 'background-attachment', + 'background-blend-mode', + 'background-clip', + 'background-color', + 'background-image', + 'background-origin', + 'background-position', + 'background-position-x', + 'background-position-y', + 'background-repeat', + 'background-size', + 'baseline-shift', + 'block-size', + 'border', + 'border-block', + 'border-block-color', + 'border-block-end', + 'border-block-end-color', + 'border-block-end-style', + 'border-block-end-width', + 'border-block-start', + 'border-block-start-color', + 'border-block-start-style', + 'border-block-start-width', + 'border-block-style', + 'border-block-width', + 'border-bottom', + 'border-bottom-color', + 'border-bottom-left-radius', + 'border-bottom-right-radius', + 'border-bottom-style', + 'border-bottom-width', + 'border-collapse', + 'border-color', + 'border-end-end-radius', + 'border-end-start-radius', + 'border-image', + 'border-image-outset', + 'border-image-repeat', + 'border-image-slice', + 'border-image-source', + 'border-image-width', + 'border-inline', + 'border-inline-color', + 'border-inline-end', + 'border-inline-end-color', + 'border-inline-end-style', + 'border-inline-end-width', + 'border-inline-start', + 'border-inline-start-color', + 'border-inline-start-style', + 'border-inline-start-width', + 'border-inline-style', + 'border-inline-width', + 'border-left', + 'border-left-color', + 'border-left-style', + 'border-left-width', + 'border-radius', + 'border-right', + 'border-right-color', + 'border-right-style', + 'border-right-width', + 'border-spacing', + 'border-start-end-radius', + 'border-start-start-radius', + 'border-style', + 'border-top', + 'border-top-color', + 'border-top-left-radius', + 'border-top-right-radius', + 'border-top-style', + 'border-top-width', + 'border-width', + 'bottom', + 'box-align', + 'box-decoration-break', + 'box-direction', + 'box-flex', + 'box-flex-group', + 'box-lines', + 'box-ordinal-group', + 'box-orient', + 'box-pack', + 'box-shadow', + 'box-sizing', + 'break-after', + 'break-before', + 'break-inside', + 'caption-side', + 'caret-color', + 'clear', + 'clip', + 'clip-path', + 'clip-rule', + 'color', + 'color-interpolation', + 'color-interpolation-filters', + 'color-profile', + 'color-rendering', + 'color-scheme', + 'column-count', + 'column-fill', + 'column-gap', + 'column-rule', + 'column-rule-color', + 'column-rule-style', + 'column-rule-width', + 'column-span', + 'column-width', + 'columns', + 'contain', + 'contain-intrinsic-block-size', + 'contain-intrinsic-height', + 'contain-intrinsic-inline-size', + 'contain-intrinsic-size', + 'contain-intrinsic-width', + 'container', + 'container-name', + 'container-type', + 'content', + 'content-visibility', + 'counter-increment', + 'counter-reset', + 'counter-set', + 'cue', + 'cue-after', + 'cue-before', + 'cursor', + 'cx', + 'cy', + 'direction', + 'display', + 'dominant-baseline', + 'empty-cells', + 'enable-background', + 'field-sizing', + 'fill', + 'fill-opacity', + 'fill-rule', + 'filter', + 'flex', + 'flex-basis', + 'flex-direction', + 'flex-flow', + 'flex-grow', + 'flex-shrink', + 'flex-wrap', + 'float', + 'flood-color', + 'flood-opacity', + 'flow', + 'font', + 'font-display', + 'font-family', + 'font-feature-settings', + 'font-kerning', + 'font-language-override', + 'font-optical-sizing', + 'font-palette', + 'font-size', + 'font-size-adjust', + 'font-smooth', + 'font-smoothing', + 'font-stretch', + 'font-style', + 'font-synthesis', + 'font-synthesis-position', + 'font-synthesis-small-caps', + 'font-synthesis-style', + 'font-synthesis-weight', + 'font-variant', + 'font-variant-alternates', + 'font-variant-caps', + 'font-variant-east-asian', + 'font-variant-emoji', + 'font-variant-ligatures', + 'font-variant-numeric', + 'font-variant-position', + 'font-variation-settings', + 'font-weight', + 'forced-color-adjust', + 'gap', + 'glyph-orientation-horizontal', + 'glyph-orientation-vertical', + 'grid', + 'grid-area', + 'grid-auto-columns', + 'grid-auto-flow', + 'grid-auto-rows', + 'grid-column', + 'grid-column-end', + 'grid-column-start', + 'grid-gap', + 'grid-row', + 'grid-row-end', + 'grid-row-start', + 'grid-template', + 'grid-template-areas', + 'grid-template-columns', + 'grid-template-rows', + 'hanging-punctuation', + 'height', + 'hyphenate-character', + 'hyphenate-limit-chars', + 'hyphens', + 'icon', + 'image-orientation', + 'image-rendering', + 'image-resolution', + 'ime-mode', + 'initial-letter', + 'initial-letter-align', + 'inline-size', + 'inset', + 'inset-area', + 'inset-block', + 'inset-block-end', + 'inset-block-start', + 'inset-inline', + 'inset-inline-end', + 'inset-inline-start', + 'isolation', + 'justify-content', + 'justify-items', + 'justify-self', + 'kerning', + 'left', + 'letter-spacing', + 'lighting-color', + 'line-break', + 'line-height', + 'line-height-step', + 'list-style', + 'list-style-image', + 'list-style-position', + 'list-style-type', + 'margin', + 'margin-block', + 'margin-block-end', + 'margin-block-start', + 'margin-bottom', + 'margin-inline', + 'margin-inline-end', + 'margin-inline-start', + 'margin-left', + 'margin-right', + 'margin-top', + 'margin-trim', + 'marker', + 'marker-end', + 'marker-mid', + 'marker-start', + 'marks', + 'mask', + 'mask-border', + 'mask-border-mode', + 'mask-border-outset', + 'mask-border-repeat', + 'mask-border-slice', + 'mask-border-source', + 'mask-border-width', + 'mask-clip', + 'mask-composite', + 'mask-image', + 'mask-mode', + 'mask-origin', + 'mask-position', + 'mask-repeat', + 'mask-size', + 'mask-type', + 'masonry-auto-flow', + 'math-depth', + 'math-shift', + 'math-style', + 'max-block-size', + 'max-height', + 'max-inline-size', + 'max-width', + 'min-block-size', + 'min-height', + 'min-inline-size', + 'min-width', + 'mix-blend-mode', + 'nav-down', + 'nav-index', + 'nav-left', + 'nav-right', + 'nav-up', + 'none', + 'normal', + 'object-fit', + 'object-position', + 'offset', + 'offset-anchor', + 'offset-distance', + 'offset-path', + 'offset-position', + 'offset-rotate', + 'opacity', + 'order', + 'orphans', + 'outline', + 'outline-color', + 'outline-offset', + 'outline-style', + 'outline-width', + 'overflow', + 'overflow-anchor', + 'overflow-block', + 'overflow-clip-margin', + 'overflow-inline', + 'overflow-wrap', + 'overflow-x', + 'overflow-y', + 'overlay', + 'overscroll-behavior', + 'overscroll-behavior-block', + 'overscroll-behavior-inline', + 'overscroll-behavior-x', + 'overscroll-behavior-y', + 'padding', + 'padding-block', + 'padding-block-end', + 'padding-block-start', + 'padding-bottom', + 'padding-inline', + 'padding-inline-end', + 'padding-inline-start', + 'padding-left', + 'padding-right', + 'padding-top', + 'page', + 'page-break-after', + 'page-break-before', + 'page-break-inside', + 'paint-order', + 'pause', + 'pause-after', + 'pause-before', + 'perspective', + 'perspective-origin', + 'place-content', + 'place-items', + 'place-self', + 'pointer-events', + 'position', + 'position-anchor', + 'position-visibility', + 'print-color-adjust', + 'quotes', + 'r', + 'resize', + 'rest', + 'rest-after', + 'rest-before', + 'right', + 'rotate', + 'row-gap', + 'ruby-align', + 'ruby-position', + 'scale', + 'scroll-behavior', + 'scroll-margin', + 'scroll-margin-block', + 'scroll-margin-block-end', + 'scroll-margin-block-start', + 'scroll-margin-bottom', + 'scroll-margin-inline', + 'scroll-margin-inline-end', + 'scroll-margin-inline-start', + 'scroll-margin-left', + 'scroll-margin-right', + 'scroll-margin-top', + 'scroll-padding', + 'scroll-padding-block', + 'scroll-padding-block-end', + 'scroll-padding-block-start', + 'scroll-padding-bottom', + 'scroll-padding-inline', + 'scroll-padding-inline-end', + 'scroll-padding-inline-start', + 'scroll-padding-left', + 'scroll-padding-right', + 'scroll-padding-top', + 'scroll-snap-align', + 'scroll-snap-stop', + 'scroll-snap-type', + 'scroll-timeline', + 'scroll-timeline-axis', + 'scroll-timeline-name', + 'scrollbar-color', + 'scrollbar-gutter', + 'scrollbar-width', + 'shape-image-threshold', + 'shape-margin', + 'shape-outside', + 'shape-rendering', + 'speak', + 'speak-as', + 'src', // @font-face + 'stop-color', + 'stop-opacity', + 'stroke', + 'stroke-dasharray', + 'stroke-dashoffset', + 'stroke-linecap', + 'stroke-linejoin', + 'stroke-miterlimit', + 'stroke-opacity', + 'stroke-width', + 'tab-size', + 'table-layout', + 'text-align', + 'text-align-all', + 'text-align-last', + 'text-anchor', + 'text-combine-upright', + 'text-decoration', + 'text-decoration-color', + 'text-decoration-line', + 'text-decoration-skip', + 'text-decoration-skip-ink', + 'text-decoration-style', + 'text-decoration-thickness', + 'text-emphasis', + 'text-emphasis-color', + 'text-emphasis-position', + 'text-emphasis-style', + 'text-indent', + 'text-justify', + 'text-orientation', + 'text-overflow', + 'text-rendering', + 'text-shadow', + 'text-size-adjust', + 'text-transform', + 'text-underline-offset', + 'text-underline-position', + 'text-wrap', + 'text-wrap-mode', + 'text-wrap-style', + 'timeline-scope', + 'top', + 'touch-action', + 'transform', + 'transform-box', + 'transform-origin', + 'transform-style', + 'transition', + 'transition-behavior', + 'transition-delay', + 'transition-duration', + 'transition-property', + 'transition-timing-function', + 'translate', + 'unicode-bidi', + 'user-modify', + 'user-select', + 'vector-effect', + 'vertical-align', + 'view-timeline', + 'view-timeline-axis', + 'view-timeline-inset', + 'view-timeline-name', + 'view-transition-name', + 'visibility', + 'voice-balance', + 'voice-duration', + 'voice-family', + 'voice-pitch', + 'voice-range', + 'voice-rate', + 'voice-stress', + 'voice-volume', + 'white-space', + 'white-space-collapse', + 'widows', + 'width', + 'will-change', + 'word-break', + 'word-spacing', + 'word-wrap', + 'writing-mode', + 'x', + 'y', + 'z-index', + 'zoom' +].sort().reverse(); + +/* +Language: SCSS +Description: Scss is an extension of the syntax of CSS. +Author: Kurt Emch +Website: https://sass-lang.com +Category: common, css, web +*/ + + +/** @type LanguageFn */ +function scss(hljs) { + const modes = MODES(hljs); + const PSEUDO_ELEMENTS$1 = PSEUDO_ELEMENTS; + const PSEUDO_CLASSES$1 = PSEUDO_CLASSES; + + const AT_IDENTIFIER = '@[a-z-]+'; // @font-face + const AT_MODIFIERS = "and or not only"; + const IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*'; + const VARIABLE = { + className: 'variable', + begin: '(\\$' + IDENT_RE + ')\\b', + relevance: 0 + }; + + return { + name: 'SCSS', + case_insensitive: true, + illegal: '[=/|\']', + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + // to recognize keyframe 40% etc which are outside the scope of our + // attribute value mode + modes.CSS_NUMBER_MODE, + { + className: 'selector-id', + begin: '#[A-Za-z0-9_-]+', + relevance: 0 + }, + { + className: 'selector-class', + begin: '\\.[A-Za-z0-9_-]+', + relevance: 0 + }, + modes.ATTRIBUTE_SELECTOR_MODE, + { + className: 'selector-tag', + begin: '\\b(' + TAGS.join('|') + ')\\b', + // was there, before, but why? + relevance: 0 + }, + { + className: 'selector-pseudo', + begin: ':(' + PSEUDO_CLASSES$1.join('|') + ')' + }, + { + className: 'selector-pseudo', + begin: ':(:)?(' + PSEUDO_ELEMENTS$1.join('|') + ')' + }, + VARIABLE, + { // pseudo-selector params + begin: /\(/, + end: /\)/, + contains: [ modes.CSS_NUMBER_MODE ] + }, + modes.CSS_VARIABLE, + { + className: 'attribute', + begin: '\\b(' + ATTRIBUTES.join('|') + ')\\b' + }, + { begin: '\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b' }, + { + begin: /:/, + end: /[;}{]/, + relevance: 0, + contains: [ + modes.BLOCK_COMMENT, + VARIABLE, + modes.HEXCOLOR, + modes.CSS_NUMBER_MODE, + hljs.QUOTE_STRING_MODE, + hljs.APOS_STRING_MODE, + modes.IMPORTANT, + modes.FUNCTION_DISPATCH + ] + }, + // matching these here allows us to treat them more like regular CSS + // rules so everything between the {} gets regular rule highlighting, + // which is what we want for page and font-face + { + begin: '@(page|font-face)', + keywords: { + $pattern: AT_IDENTIFIER, + keyword: '@page @font-face' + } + }, + { + begin: '@', + end: '[{;]', + returnBegin: true, + keywords: { + $pattern: /[a-z-]+/, + keyword: AT_MODIFIERS, + attribute: MEDIA_FEATURES.join(" ") + }, + contains: [ + { + begin: AT_IDENTIFIER, + className: "keyword" + }, + { + begin: /[a-z-]+(?=:)/, + className: "attribute" + }, + VARIABLE, + hljs.QUOTE_STRING_MODE, + hljs.APOS_STRING_MODE, + modes.HEXCOLOR, + modes.CSS_NUMBER_MODE + ] + }, + modes.FUNCTION_DISPATCH + ] + }; +} + +export { scss as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/scss.js.js b/tools/ui/node_modules/highlight.js/es/languages/scss.js.js new file mode 100644 index 0000000000000000000000000000000000000000..b01bc25769ee765112066a0b84507d9521b0ba22 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/scss.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/scss" instead of "highlight.js/lib/languages/scss.js"' + ); + } + } + emitWarning(); + import lang from './scss.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/shell.js b/tools/ui/node_modules/highlight.js/es/languages/shell.js new file mode 100644 index 0000000000000000000000000000000000000000..de4831c4db3fd85c3324d167dd327cde01b0cdf3 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/shell.js @@ -0,0 +1,33 @@ +/* +Language: Shell Session +Requires: bash.js +Author: TSUYUSATO Kitsune +Category: common +Audit: 2020 +*/ + +/** @type LanguageFn */ +function shell(hljs) { + return { + name: 'Shell Session', + aliases: [ + 'console', + 'shellsession' + ], + contains: [ + { + className: 'meta.prompt', + // We cannot add \s (spaces) in the regular expression otherwise it will be too broad and produce unexpected result. + // For instance, in the following example, it would match "echo /path/to/home >" as a prompt: + // echo /path/to/home > t.exe + begin: /^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/, + starts: { + end: /[^\\](?=\s*$)/, + subLanguage: 'bash' + } + } + ] + }; +} + +export { shell as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/shell.js.js b/tools/ui/node_modules/highlight.js/es/languages/shell.js.js new file mode 100644 index 0000000000000000000000000000000000000000..40bc7e4781b23daeaf669312fac13e8ace771ff5 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/shell.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/shell" instead of "highlight.js/lib/languages/shell.js"' + ); + } + } + emitWarning(); + import lang from './shell.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/smali.js b/tools/ui/node_modules/highlight.js/es/languages/smali.js new file mode 100644 index 0000000000000000000000000000000000000000..db5357287126db8a45d43d9b2c6c6515b47de345 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/smali.js @@ -0,0 +1,126 @@ +/* +Language: Smali +Author: Dennis Titze +Description: Basic Smali highlighting +Website: https://github.com/JesusFreke/smali +Category: assembler +*/ + +function smali(hljs) { + const smali_instr_low_prio = [ + 'add', + 'and', + 'cmp', + 'cmpg', + 'cmpl', + 'const', + 'div', + 'double', + 'float', + 'goto', + 'if', + 'int', + 'long', + 'move', + 'mul', + 'neg', + 'new', + 'nop', + 'not', + 'or', + 'rem', + 'return', + 'shl', + 'shr', + 'sput', + 'sub', + 'throw', + 'ushr', + 'xor' + ]; + const smali_instr_high_prio = [ + 'aget', + 'aput', + 'array', + 'check', + 'execute', + 'fill', + 'filled', + 'goto/16', + 'goto/32', + 'iget', + 'instance', + 'invoke', + 'iput', + 'monitor', + 'packed', + 'sget', + 'sparse' + ]; + const smali_keywords = [ + 'transient', + 'constructor', + 'abstract', + 'final', + 'synthetic', + 'public', + 'private', + 'protected', + 'static', + 'bridge', + 'system' + ]; + return { + name: 'Smali', + contains: [ + { + className: 'string', + begin: '"', + end: '"', + relevance: 0 + }, + hljs.COMMENT( + '#', + '$', + { relevance: 0 } + ), + { + className: 'keyword', + variants: [ + { begin: '\\s*\\.end\\s[a-zA-Z0-9]*' }, + { + begin: '^[ ]*\\.[a-zA-Z]*', + relevance: 0 + }, + { + begin: '\\s:[a-zA-Z_0-9]*', + relevance: 0 + }, + { begin: '\\s(' + smali_keywords.join('|') + ')' } + ] + }, + { + className: 'built_in', + variants: [ + { begin: '\\s(' + smali_instr_low_prio.join('|') + ')\\s' }, + { + begin: '\\s(' + smali_instr_low_prio.join('|') + ')((-|/)[a-zA-Z0-9]+)+\\s', + relevance: 10 + }, + { + begin: '\\s(' + smali_instr_high_prio.join('|') + ')((-|/)[a-zA-Z0-9]+)*\\s', + relevance: 10 + } + ] + }, + { + className: 'class', + begin: 'L[^\(;:\n]*;', + relevance: 0 + }, + { begin: '[vp][0-9]+' } + ] + }; +} + +export { smali as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/smali.js.js b/tools/ui/node_modules/highlight.js/es/languages/smali.js.js new file mode 100644 index 0000000000000000000000000000000000000000..79784ddc76f6515334c2f9c00ae1e39dc0542c48 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/smali.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/smali" instead of "highlight.js/lib/languages/smali.js"' + ); + } + } + emitWarning(); + import lang from './smali.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/smalltalk.js b/tools/ui/node_modules/highlight.js/es/languages/smalltalk.js new file mode 100644 index 0000000000000000000000000000000000000000..0ff88c9240138991d41c8df9024df80c1b307327 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/smalltalk.js @@ -0,0 +1,69 @@ +/* +Language: Smalltalk +Description: Smalltalk is an object-oriented, dynamically typed reflective programming language. +Author: Vladimir Gubarkov +Website: https://en.wikipedia.org/wiki/Smalltalk +Category: system +*/ + +function smalltalk(hljs) { + const VAR_IDENT_RE = '[a-z][a-zA-Z0-9_]*'; + const CHAR = { + className: 'string', + begin: '\\$.{1}' + }; + const SYMBOL = { + className: 'symbol', + begin: '#' + hljs.UNDERSCORE_IDENT_RE + }; + return { + name: 'Smalltalk', + aliases: [ 'st' ], + keywords: [ + "self", + "super", + "nil", + "true", + "false", + "thisContext" + ], + contains: [ + hljs.COMMENT('"', '"'), + hljs.APOS_STRING_MODE, + { + className: 'type', + begin: '\\b[A-Z][A-Za-z0-9_]*', + relevance: 0 + }, + { + begin: VAR_IDENT_RE + ':', + relevance: 0 + }, + hljs.C_NUMBER_MODE, + SYMBOL, + CHAR, + { + // This looks more complicated than needed to avoid combinatorial + // explosion under V8. It effectively means `| var1 var2 ... |` with + // whitespace adjacent to `|` being optional. + begin: '\\|[ ]*' + VAR_IDENT_RE + '([ ]+' + VAR_IDENT_RE + ')*[ ]*\\|', + returnBegin: true, + end: /\|/, + illegal: /\S/, + contains: [ { begin: '(\\|[ ]*)?' + VAR_IDENT_RE } ] + }, + { + begin: '#\\(', + end: '\\)', + contains: [ + hljs.APOS_STRING_MODE, + CHAR, + hljs.C_NUMBER_MODE, + SYMBOL + ] + } + ] + }; +} + +export { smalltalk as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/smalltalk.js.js b/tools/ui/node_modules/highlight.js/es/languages/smalltalk.js.js new file mode 100644 index 0000000000000000000000000000000000000000..bed76b7d50ddf7d3d531ed1da8a12b0dc82dfc5c --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/smalltalk.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/smalltalk" instead of "highlight.js/lib/languages/smalltalk.js"' + ); + } + } + emitWarning(); + import lang from './smalltalk.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/sml.js b/tools/ui/node_modules/highlight.js/es/languages/sml.js new file mode 100644 index 0000000000000000000000000000000000000000..e526d0d06eb04e1da3f45cb62d706ebcb43b8944 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/sml.js @@ -0,0 +1,75 @@ +/* +Language: SML (Standard ML) +Author: Edwin Dalorzo +Description: SML language definition. +Website: https://www.smlnj.org +Origin: ocaml.js +Category: functional +*/ +function sml(hljs) { + return { + name: 'SML (Standard ML)', + aliases: [ 'ml' ], + keywords: { + $pattern: '[a-z_]\\w*!?', + keyword: + /* according to Definition of Standard ML 97 */ + 'abstype and andalso as case datatype do else end eqtype ' + + 'exception fn fun functor handle if in include infix infixr ' + + 'let local nonfix of op open orelse raise rec sharing sig ' + + 'signature struct structure then type val with withtype where while', + built_in: + /* built-in types according to basis library */ + 'array bool char exn int list option order real ref string substring vector unit word', + literal: + 'true false NONE SOME LESS EQUAL GREATER nil' + }, + illegal: /\/\/|>>/, + contains: [ + { + className: 'literal', + begin: /\[(\|\|)?\]|\(\)/, + relevance: 0 + }, + hljs.COMMENT( + '\\(\\*', + '\\*\\)', + { contains: [ 'self' ] } + ), + { /* type variable */ + className: 'symbol', + begin: '\'[A-Za-z_](?!\')[\\w\']*' + /* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */ + }, + { /* polymorphic variant */ + className: 'type', + begin: '`[A-Z][\\w\']*' + }, + { /* module or constructor */ + className: 'type', + begin: '\\b[A-Z][\\w\']*', + relevance: 0 + }, + { /* don't color identifiers, but safely catch all identifiers with ' */ + begin: '[a-z_]\\w*\'[\\w\']*' }, + hljs.inherit(hljs.APOS_STRING_MODE, { + className: 'string', + relevance: 0 + }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }), + { + className: 'number', + begin: + '\\b(0[xX][a-fA-F0-9_]+[Lln]?|' + + '0[oO][0-7_]+[Lln]?|' + + '0[bB][01_]+[Lln]?|' + + '[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)', + relevance: 0 + }, + { begin: /[-=]>/ // relevance booster + } + ] + }; +} + +export { sml as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/sml.js.js b/tools/ui/node_modules/highlight.js/es/languages/sml.js.js new file mode 100644 index 0000000000000000000000000000000000000000..2dbf3c9e9405317ff34e8dd75070410d6b012a9a --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/sml.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/sml" instead of "highlight.js/lib/languages/sml.js"' + ); + } + } + emitWarning(); + import lang from './sml.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/sqf.js b/tools/ui/node_modules/highlight.js/es/languages/sqf.js new file mode 100644 index 0000000000000000000000000000000000000000..b2d6aab37d87e1ff4851e1f23b6a9bc1a3f9626e --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/sqf.js @@ -0,0 +1,2662 @@ +/* +Language: SQF +Author: Søren Enevoldsen +Contributors: Marvin Saignat , Dedmen Miller , Leopard20 +Description: Scripting language for the Arma game series +Website: https://community.bistudio.com/wiki/SQF_syntax +Category: scripting +Last update: 07.01.2023, Arma 3 v2.11 +*/ + +/* +//////////////////////////////////////////////////////////////////////////////////////////// + * Author: Leopard20 + + * Description: + This script can be used to dump all commands to the clipboard. + Make sure you're using the Diag EXE to dump all of the commands. + + * How to use: + Simply replace the _KEYWORDS and _LITERAL arrays with the one from this sqf.js file. + Execute the script from the debug console. + All commands will be copied to the clipboard. +//////////////////////////////////////////////////////////////////////////////////////////// +_KEYWORDS = ['if']; //Array of all KEYWORDS +_LITERALS = ['west']; //Array of all LITERALS +_allCommands = createHashMap; +{ + _type = _x select [0,1]; + if (_type != "t") then { + _command_lowercase = ((_x select [2]) splitString " ")#(((["n", "u", "b"] find _type) - 1) max 0); + _command_uppercase = supportInfo ("i:" + _command_lowercase) # 0 # 2; + _allCommands set [_command_lowercase, _command_uppercase]; + }; +} forEach supportInfo ""; +_allCommands = _allCommands toArray false; +_allCommands sort true; //sort by lowercase +_allCommands = ((_allCommands apply {_x#1}) -_KEYWORDS)-_LITERALS; //remove KEYWORDS and LITERALS +copyToClipboard (str (_allCommands select {_x regexMatch "\w+"}) regexReplace ["""", "'"] regexReplace [",", ",\n"]); +*/ + +function sqf(hljs) { + // In SQF, a local variable starts with _ + const VARIABLE = { + className: 'variable', + begin: /\b_+[a-zA-Z]\w*/ + }; + + // In SQF, a function should fit myTag_fnc_myFunction pattern + // https://community.bistudio.com/wiki/Functions_Library_(Arma_3)#Adding_a_Function + const FUNCTION = { + className: 'title', + begin: /[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/ + }; + + // In SQF strings, quotes matching the start are escaped by adding a consecutive. + // Example of single escaped quotes: " "" " and ' '' '. + const STRINGS = { + className: 'string', + variants: [ + { + begin: '"', + end: '"', + contains: [ + { + begin: '""', + relevance: 0 + } + ] + }, + { + begin: '\'', + end: '\'', + contains: [ + { + begin: '\'\'', + relevance: 0 + } + ] + } + ] + }; + + const KEYWORDS = [ + 'break', + 'breakWith', + 'breakOut', + 'breakTo', + 'case', + 'catch', + 'continue', + 'continueWith', + 'default', + 'do', + 'else', + 'exit', + 'exitWith', + 'for', + 'forEach', + 'from', + 'if', + 'local', + 'private', + 'switch', + 'step', + 'then', + 'throw', + 'to', + 'try', + 'waitUntil', + 'while', + 'with' + ]; + + const LITERAL = [ + 'blufor', + 'civilian', + 'configNull', + 'controlNull', + 'displayNull', + 'diaryRecordNull', + 'east', + 'endl', + 'false', + 'grpNull', + 'independent', + 'lineBreak', + 'locationNull', + 'nil', + 'objNull', + 'opfor', + 'pi', + 'resistance', + 'scriptNull', + 'sideAmbientLife', + 'sideEmpty', + 'sideEnemy', + 'sideFriendly', + 'sideLogic', + 'sideUnknown', + 'taskNull', + 'teamMemberNull', + 'true', + 'west' + ]; + + const BUILT_IN = [ + 'abs', + 'accTime', + 'acos', + 'action', + 'actionIDs', + 'actionKeys', + 'actionKeysEx', + 'actionKeysImages', + 'actionKeysNames', + 'actionKeysNamesArray', + 'actionName', + 'actionParams', + 'activateAddons', + 'activatedAddons', + 'activateKey', + 'activeTitleEffectParams', + 'add3DENConnection', + 'add3DENEventHandler', + 'add3DENLayer', + 'addAction', + 'addBackpack', + 'addBackpackCargo', + 'addBackpackCargoGlobal', + 'addBackpackGlobal', + 'addBinocularItem', + 'addCamShake', + 'addCuratorAddons', + 'addCuratorCameraArea', + 'addCuratorEditableObjects', + 'addCuratorEditingArea', + 'addCuratorPoints', + 'addEditorObject', + 'addEventHandler', + 'addForce', + 'addForceGeneratorRTD', + 'addGoggles', + 'addGroupIcon', + 'addHandgunItem', + 'addHeadgear', + 'addItem', + 'addItemCargo', + 'addItemCargoGlobal', + 'addItemPool', + 'addItemToBackpack', + 'addItemToUniform', + 'addItemToVest', + 'addLiveStats', + 'addMagazine', + 'addMagazineAmmoCargo', + 'addMagazineCargo', + 'addMagazineCargoGlobal', + 'addMagazineGlobal', + 'addMagazinePool', + 'addMagazines', + 'addMagazineTurret', + 'addMenu', + 'addMenuItem', + 'addMissionEventHandler', + 'addMPEventHandler', + 'addMusicEventHandler', + 'addonFiles', + 'addOwnedMine', + 'addPlayerScores', + 'addPrimaryWeaponItem', + 'addPublicVariableEventHandler', + 'addRating', + 'addResources', + 'addScore', + 'addScoreSide', + 'addSecondaryWeaponItem', + 'addSwitchableUnit', + 'addTeamMember', + 'addToRemainsCollector', + 'addTorque', + 'addUniform', + 'addUserActionEventHandler', + 'addVehicle', + 'addVest', + 'addWaypoint', + 'addWeapon', + 'addWeaponCargo', + 'addWeaponCargoGlobal', + 'addWeaponGlobal', + 'addWeaponItem', + 'addWeaponPool', + 'addWeaponTurret', + 'addWeaponWithAttachmentsCargo', + 'addWeaponWithAttachmentsCargoGlobal', + 'admin', + 'agent', + 'agents', + 'AGLToASL', + 'aimedAtTarget', + 'aimPos', + 'airDensityCurveRTD', + 'airDensityRTD', + 'airplaneThrottle', + 'airportSide', + 'AISFinishHeal', + 'alive', + 'all3DENEntities', + 'allActiveTitleEffects', + 'allAddonsInfo', + 'allAirports', + 'allControls', + 'allCurators', + 'allCutLayers', + 'allDead', + 'allDeadMen', + 'allDiaryRecords', + 'allDiarySubjects', + 'allDisplays', + 'allEnv3DSoundSources', + 'allGroups', + 'allLODs', + 'allMapMarkers', + 'allMines', + 'allMissionObjects', + 'allObjects', + 'allow3DMode', + 'allowCrewInImmobile', + 'allowCuratorLogicIgnoreAreas', + 'allowDamage', + 'allowDammage', + 'allowedService', + 'allowFileOperations', + 'allowFleeing', + 'allowGetIn', + 'allowService', + 'allowSprint', + 'allPlayers', + 'allSimpleObjects', + 'allSites', + 'allTurrets', + 'allUnits', + 'allUnitsUAV', + 'allUsers', + 'allVariables', + 'ambientTemperature', + 'ammo', + 'ammoOnPylon', + 'and', + 'animate', + 'animateBay', + 'animateDoor', + 'animatePylon', + 'animateSource', + 'animationNames', + 'animationPhase', + 'animationSourcePhase', + 'animationState', + 'apertureParams', + 'append', + 'apply', + 'armoryPoints', + 'arrayIntersect', + 'asin', + 'ASLToAGL', + 'ASLToATL', + 'assert', + 'assignAsCargo', + 'assignAsCargoIndex', + 'assignAsCommander', + 'assignAsDriver', + 'assignAsGunner', + 'assignAsTurret', + 'assignCurator', + 'assignedCargo', + 'assignedCommander', + 'assignedDriver', + 'assignedGroup', + 'assignedGunner', + 'assignedItems', + 'assignedTarget', + 'assignedTeam', + 'assignedVehicle', + 'assignedVehicleRole', + 'assignedVehicles', + 'assignItem', + 'assignTeam', + 'assignToAirport', + 'atan', + 'atan2', + 'atg', + 'ATLToASL', + 'attachedObject', + 'attachedObjects', + 'attachedTo', + 'attachObject', + 'attachTo', + 'attackEnabled', + 'awake', + 'backpack', + 'backpackCargo', + 'backpackContainer', + 'backpackItems', + 'backpackMagazines', + 'backpackSpaceFor', + 'behaviour', + 'benchmark', + 'bezierInterpolation', + 'binocular', + 'binocularItems', + 'binocularMagazine', + 'boundingBox', + 'boundingBoxReal', + 'boundingCenter', + 'brakesDisabled', + 'briefingName', + 'buildingExit', + 'buildingPos', + 'buldozer_EnableRoadDiag', + 'buldozer_IsEnabledRoadDiag', + 'buldozer_LoadNewRoads', + 'buldozer_reloadOperMap', + 'buttonAction', + 'buttonSetAction', + 'cadetMode', + 'calculatePath', + 'calculatePlayerVisibilityByFriendly', + 'call', + 'callExtension', + 'camCommand', + 'camCommit', + 'camCommitPrepared', + 'camCommitted', + 'camConstuctionSetParams', + 'camCreate', + 'camDestroy', + 'cameraEffect', + 'cameraEffectEnableHUD', + 'cameraInterest', + 'cameraOn', + 'cameraView', + 'campaignConfigFile', + 'camPreload', + 'camPreloaded', + 'camPrepareBank', + 'camPrepareDir', + 'camPrepareDive', + 'camPrepareFocus', + 'camPrepareFov', + 'camPrepareFovRange', + 'camPreparePos', + 'camPrepareRelPos', + 'camPrepareTarget', + 'camSetBank', + 'camSetDir', + 'camSetDive', + 'camSetFocus', + 'camSetFov', + 'camSetFovRange', + 'camSetPos', + 'camSetRelPos', + 'camSetTarget', + 'camTarget', + 'camUseNVG', + 'canAdd', + 'canAddItemToBackpack', + 'canAddItemToUniform', + 'canAddItemToVest', + 'cancelSimpleTaskDestination', + 'canDeployWeapon', + 'canFire', + 'canMove', + 'canSlingLoad', + 'canStand', + 'canSuspend', + 'canTriggerDynamicSimulation', + 'canUnloadInCombat', + 'canVehicleCargo', + 'captive', + 'captiveNum', + 'cbChecked', + 'cbSetChecked', + 'ceil', + 'channelEnabled', + 'cheatsEnabled', + 'checkAIFeature', + 'checkVisibility', + 'className', + 'clear3DENAttribute', + 'clear3DENInventory', + 'clearAllItemsFromBackpack', + 'clearBackpackCargo', + 'clearBackpackCargoGlobal', + 'clearForcesRTD', + 'clearGroupIcons', + 'clearItemCargo', + 'clearItemCargoGlobal', + 'clearItemPool', + 'clearMagazineCargo', + 'clearMagazineCargoGlobal', + 'clearMagazinePool', + 'clearOverlay', + 'clearRadio', + 'clearWeaponCargo', + 'clearWeaponCargoGlobal', + 'clearWeaponPool', + 'clientOwner', + 'closeDialog', + 'closeDisplay', + 'closeOverlay', + 'collapseObjectTree', + 'collect3DENHistory', + 'collectiveRTD', + 'collisionDisabledWith', + 'combatBehaviour', + 'combatMode', + 'commandArtilleryFire', + 'commandChat', + 'commander', + 'commandFire', + 'commandFollow', + 'commandFSM', + 'commandGetOut', + 'commandingMenu', + 'commandMove', + 'commandRadio', + 'commandStop', + 'commandSuppressiveFire', + 'commandTarget', + 'commandWatch', + 'comment', + 'commitOverlay', + 'compatibleItems', + 'compatibleMagazines', + 'compile', + 'compileFinal', + 'compileScript', + 'completedFSM', + 'composeText', + 'configClasses', + 'configFile', + 'configHierarchy', + 'configName', + 'configOf', + 'configProperties', + 'configSourceAddonList', + 'configSourceMod', + 'configSourceModList', + 'confirmSensorTarget', + 'connectTerminalToUAV', + 'connectToServer', + 'controlsGroupCtrl', + 'conversationDisabled', + 'copyFromClipboard', + 'copyToClipboard', + 'copyWaypoints', + 'cos', + 'count', + 'countEnemy', + 'countFriendly', + 'countSide', + 'countType', + 'countUnknown', + 'create3DENComposition', + 'create3DENEntity', + 'createAgent', + 'createCenter', + 'createDialog', + 'createDiaryLink', + 'createDiaryRecord', + 'createDiarySubject', + 'createDisplay', + 'createGearDialog', + 'createGroup', + 'createGuardedPoint', + 'createHashMap', + 'createHashMapFromArray', + 'createLocation', + 'createMarker', + 'createMarkerLocal', + 'createMenu', + 'createMine', + 'createMissionDisplay', + 'createMPCampaignDisplay', + 'createSimpleObject', + 'createSimpleTask', + 'createSite', + 'createSoundSource', + 'createTask', + 'createTeam', + 'createTrigger', + 'createUnit', + 'createVehicle', + 'createVehicleCrew', + 'createVehicleLocal', + 'crew', + 'ctAddHeader', + 'ctAddRow', + 'ctClear', + 'ctCurSel', + 'ctData', + 'ctFindHeaderRows', + 'ctFindRowHeader', + 'ctHeaderControls', + 'ctHeaderCount', + 'ctRemoveHeaders', + 'ctRemoveRows', + 'ctrlActivate', + 'ctrlAddEventHandler', + 'ctrlAngle', + 'ctrlAnimateModel', + 'ctrlAnimationPhaseModel', + 'ctrlAt', + 'ctrlAutoScrollDelay', + 'ctrlAutoScrollRewind', + 'ctrlAutoScrollSpeed', + 'ctrlBackgroundColor', + 'ctrlChecked', + 'ctrlClassName', + 'ctrlCommit', + 'ctrlCommitted', + 'ctrlCreate', + 'ctrlDelete', + 'ctrlEnable', + 'ctrlEnabled', + 'ctrlFade', + 'ctrlFontHeight', + 'ctrlForegroundColor', + 'ctrlHTMLLoaded', + 'ctrlIDC', + 'ctrlIDD', + 'ctrlMapAnimAdd', + 'ctrlMapAnimClear', + 'ctrlMapAnimCommit', + 'ctrlMapAnimDone', + 'ctrlMapCursor', + 'ctrlMapMouseOver', + 'ctrlMapPosition', + 'ctrlMapScale', + 'ctrlMapScreenToWorld', + 'ctrlMapSetPosition', + 'ctrlMapWorldToScreen', + 'ctrlModel', + 'ctrlModelDirAndUp', + 'ctrlModelScale', + 'ctrlMousePosition', + 'ctrlParent', + 'ctrlParentControlsGroup', + 'ctrlPosition', + 'ctrlRemoveAllEventHandlers', + 'ctrlRemoveEventHandler', + 'ctrlScale', + 'ctrlScrollValues', + 'ctrlSetActiveColor', + 'ctrlSetAngle', + 'ctrlSetAutoScrollDelay', + 'ctrlSetAutoScrollRewind', + 'ctrlSetAutoScrollSpeed', + 'ctrlSetBackgroundColor', + 'ctrlSetChecked', + 'ctrlSetDisabledColor', + 'ctrlSetEventHandler', + 'ctrlSetFade', + 'ctrlSetFocus', + 'ctrlSetFont', + 'ctrlSetFontH1', + 'ctrlSetFontH1B', + 'ctrlSetFontH2', + 'ctrlSetFontH2B', + 'ctrlSetFontH3', + 'ctrlSetFontH3B', + 'ctrlSetFontH4', + 'ctrlSetFontH4B', + 'ctrlSetFontH5', + 'ctrlSetFontH5B', + 'ctrlSetFontH6', + 'ctrlSetFontH6B', + 'ctrlSetFontHeight', + 'ctrlSetFontHeightH1', + 'ctrlSetFontHeightH2', + 'ctrlSetFontHeightH3', + 'ctrlSetFontHeightH4', + 'ctrlSetFontHeightH5', + 'ctrlSetFontHeightH6', + 'ctrlSetFontHeightSecondary', + 'ctrlSetFontP', + 'ctrlSetFontPB', + 'ctrlSetFontSecondary', + 'ctrlSetForegroundColor', + 'ctrlSetModel', + 'ctrlSetModelDirAndUp', + 'ctrlSetModelScale', + 'ctrlSetMousePosition', + 'ctrlSetPixelPrecision', + 'ctrlSetPosition', + 'ctrlSetPositionH', + 'ctrlSetPositionW', + 'ctrlSetPositionX', + 'ctrlSetPositionY', + 'ctrlSetScale', + 'ctrlSetScrollValues', + 'ctrlSetShadow', + 'ctrlSetStructuredText', + 'ctrlSetText', + 'ctrlSetTextColor', + 'ctrlSetTextColorSecondary', + 'ctrlSetTextSecondary', + 'ctrlSetTextSelection', + 'ctrlSetTooltip', + 'ctrlSetTooltipColorBox', + 'ctrlSetTooltipColorShade', + 'ctrlSetTooltipColorText', + 'ctrlSetTooltipMaxWidth', + 'ctrlSetURL', + 'ctrlSetURLOverlayMode', + 'ctrlShadow', + 'ctrlShow', + 'ctrlShown', + 'ctrlStyle', + 'ctrlText', + 'ctrlTextColor', + 'ctrlTextHeight', + 'ctrlTextSecondary', + 'ctrlTextSelection', + 'ctrlTextWidth', + 'ctrlTooltip', + 'ctrlType', + 'ctrlURL', + 'ctrlURLOverlayMode', + 'ctrlVisible', + 'ctRowControls', + 'ctRowCount', + 'ctSetCurSel', + 'ctSetData', + 'ctSetHeaderTemplate', + 'ctSetRowTemplate', + 'ctSetValue', + 'ctValue', + 'curatorAddons', + 'curatorCamera', + 'curatorCameraArea', + 'curatorCameraAreaCeiling', + 'curatorCoef', + 'curatorEditableObjects', + 'curatorEditingArea', + 'curatorEditingAreaType', + 'curatorMouseOver', + 'curatorPoints', + 'curatorRegisteredObjects', + 'curatorSelected', + 'curatorWaypointCost', + 'current3DENOperation', + 'currentChannel', + 'currentCommand', + 'currentMagazine', + 'currentMagazineDetail', + 'currentMagazineDetailTurret', + 'currentMagazineTurret', + 'currentMuzzle', + 'currentNamespace', + 'currentPilot', + 'currentTask', + 'currentTasks', + 'currentThrowable', + 'currentVisionMode', + 'currentWaypoint', + 'currentWeapon', + 'currentWeaponMode', + 'currentWeaponTurret', + 'currentZeroing', + 'cursorObject', + 'cursorTarget', + 'customChat', + 'customRadio', + 'customWaypointPosition', + 'cutFadeOut', + 'cutObj', + 'cutRsc', + 'cutText', + 'damage', + 'date', + 'dateToNumber', + 'dayTime', + 'deActivateKey', + 'debriefingText', + 'debugFSM', + 'debugLog', + 'decayGraphValues', + 'deg', + 'delete3DENEntities', + 'deleteAt', + 'deleteCenter', + 'deleteCollection', + 'deleteEditorObject', + 'deleteGroup', + 'deleteGroupWhenEmpty', + 'deleteIdentity', + 'deleteLocation', + 'deleteMarker', + 'deleteMarkerLocal', + 'deleteRange', + 'deleteResources', + 'deleteSite', + 'deleteStatus', + 'deleteTeam', + 'deleteVehicle', + 'deleteVehicleCrew', + 'deleteWaypoint', + 'detach', + 'detectedMines', + 'diag_activeMissionFSMs', + 'diag_activeScripts', + 'diag_activeSQFScripts', + 'diag_activeSQSScripts', + 'diag_allMissionEventHandlers', + 'diag_captureFrame', + 'diag_captureFrameToFile', + 'diag_captureSlowFrame', + 'diag_codePerformance', + 'diag_deltaTime', + 'diag_drawmode', + 'diag_dumpCalltraceToLog', + 'diag_dumpScriptAssembly', + 'diag_dumpTerrainSynth', + 'diag_dynamicSimulationEnd', + 'diag_enable', + 'diag_enabled', + 'diag_exportConfig', + 'diag_exportTerrainSVG', + 'diag_fps', + 'diag_fpsmin', + 'diag_frameno', + 'diag_getTerrainSegmentOffset', + 'diag_lightNewLoad', + 'diag_list', + 'diag_localized', + 'diag_log', + 'diag_logSlowFrame', + 'diag_mergeConfigFile', + 'diag_recordTurretLimits', + 'diag_resetFSM', + 'diag_resetshapes', + 'diag_scope', + 'diag_setLightNew', + 'diag_stacktrace', + 'diag_tickTime', + 'diag_toggle', + 'dialog', + 'diarySubjectExists', + 'didJIP', + 'didJIPOwner', + 'difficulty', + 'difficultyEnabled', + 'difficultyEnabledRTD', + 'difficultyOption', + 'direction', + 'directionStabilizationEnabled', + 'directSay', + 'disableAI', + 'disableBrakes', + 'disableCollisionWith', + 'disableConversation', + 'disableDebriefingStats', + 'disableMapIndicators', + 'disableNVGEquipment', + 'disableRemoteSensors', + 'disableSerialization', + 'disableTIEquipment', + 'disableUAVConnectability', + 'disableUserInput', + 'displayAddEventHandler', + 'displayChild', + 'displayCtrl', + 'displayParent', + 'displayRemoveAllEventHandlers', + 'displayRemoveEventHandler', + 'displaySetEventHandler', + 'displayUniqueName', + 'displayUpdate', + 'dissolveTeam', + 'distance', + 'distance2D', + 'distanceSqr', + 'distributionRegion', + 'do3DENAction', + 'doArtilleryFire', + 'doFire', + 'doFollow', + 'doFSM', + 'doGetOut', + 'doMove', + 'doorPhase', + 'doStop', + 'doSuppressiveFire', + 'doTarget', + 'doWatch', + 'drawArrow', + 'drawEllipse', + 'drawIcon', + 'drawIcon3D', + 'drawLaser', + 'drawLine', + 'drawLine3D', + 'drawLink', + 'drawLocation', + 'drawPolygon', + 'drawRectangle', + 'drawTriangle', + 'driver', + 'drop', + 'dynamicSimulationDistance', + 'dynamicSimulationDistanceCoef', + 'dynamicSimulationEnabled', + 'dynamicSimulationSystemEnabled', + 'echo', + 'edit3DENMissionAttributes', + 'editObject', + 'editorSetEventHandler', + 'effectiveCommander', + 'elevatePeriscope', + 'emptyPositions', + 'enableAI', + 'enableAIFeature', + 'enableAimPrecision', + 'enableAttack', + 'enableAudioFeature', + 'enableAutoStartUpRTD', + 'enableAutoTrimRTD', + 'enableCamShake', + 'enableCaustics', + 'enableChannel', + 'enableCollisionWith', + 'enableCopilot', + 'enableDebriefingStats', + 'enableDiagLegend', + 'enableDirectionStabilization', + 'enableDynamicSimulation', + 'enableDynamicSimulationSystem', + 'enableEndDialog', + 'enableEngineArtillery', + 'enableEnvironment', + 'enableFatigue', + 'enableGunLights', + 'enableInfoPanelComponent', + 'enableIRLasers', + 'enableMimics', + 'enablePersonTurret', + 'enableRadio', + 'enableReload', + 'enableRopeAttach', + 'enableSatNormalOnDetail', + 'enableSaving', + 'enableSentences', + 'enableSimulation', + 'enableSimulationGlobal', + 'enableStamina', + 'enableStressDamage', + 'enableTeamSwitch', + 'enableTraffic', + 'enableUAVConnectability', + 'enableUAVWaypoints', + 'enableVehicleCargo', + 'enableVehicleSensor', + 'enableWeaponDisassembly', + 'endLoadingScreen', + 'endMission', + 'engineOn', + 'enginesIsOnRTD', + 'enginesPowerRTD', + 'enginesRpmRTD', + 'enginesTorqueRTD', + 'entities', + 'environmentEnabled', + 'environmentVolume', + 'equipmentDisabled', + 'estimatedEndServerTime', + 'estimatedTimeLeft', + 'evalObjectArgument', + 'everyBackpack', + 'everyContainer', + 'exec', + 'execEditorScript', + 'execFSM', + 'execVM', + 'exp', + 'expectedDestination', + 'exportJIPMessages', + 'eyeDirection', + 'eyePos', + 'face', + 'faction', + 'fadeEnvironment', + 'fadeMusic', + 'fadeRadio', + 'fadeSound', + 'fadeSpeech', + 'failMission', + 'fileExists', + 'fillWeaponsFromPool', + 'find', + 'findAny', + 'findCover', + 'findDisplay', + 'findEditorObject', + 'findEmptyPosition', + 'findEmptyPositionReady', + 'findIf', + 'findNearestEnemy', + 'finishMissionInit', + 'finite', + 'fire', + 'fireAtTarget', + 'firstBackpack', + 'flag', + 'flagAnimationPhase', + 'flagOwner', + 'flagSide', + 'flagTexture', + 'flatten', + 'fleeing', + 'floor', + 'flyInHeight', + 'flyInHeightASL', + 'focusedCtrl', + 'fog', + 'fogForecast', + 'fogParams', + 'forceAddUniform', + 'forceAtPositionRTD', + 'forceCadetDifficulty', + 'forcedMap', + 'forceEnd', + 'forceFlagTexture', + 'forceFollowRoad', + 'forceGeneratorRTD', + 'forceMap', + 'forceRespawn', + 'forceSpeed', + 'forceUnicode', + 'forceWalk', + 'forceWeaponFire', + 'forceWeatherChange', + 'forEachMember', + 'forEachMemberAgent', + 'forEachMemberTeam', + 'forgetTarget', + 'format', + 'formation', + 'formationDirection', + 'formationLeader', + 'formationMembers', + 'formationPosition', + 'formationTask', + 'formatText', + 'formLeader', + 'freeExtension', + 'freeLook', + 'fromEditor', + 'fuel', + 'fullCrew', + 'gearIDCAmmoCount', + 'gearSlotAmmoCount', + 'gearSlotData', + 'gestureState', + 'get', + 'get3DENActionState', + 'get3DENAttribute', + 'get3DENCamera', + 'get3DENConnections', + 'get3DENEntity', + 'get3DENEntityID', + 'get3DENGrid', + 'get3DENIconsVisible', + 'get3DENLayerEntities', + 'get3DENLinesVisible', + 'get3DENMissionAttribute', + 'get3DENMouseOver', + 'get3DENSelected', + 'getAimingCoef', + 'getAllEnv3DSoundControllers', + 'getAllEnvSoundControllers', + 'getAllHitPointsDamage', + 'getAllOwnedMines', + 'getAllPylonsInfo', + 'getAllSoundControllers', + 'getAllUnitTraits', + 'getAmmoCargo', + 'getAnimAimPrecision', + 'getAnimSpeedCoef', + 'getArray', + 'getArtilleryAmmo', + 'getArtilleryComputerSettings', + 'getArtilleryETA', + 'getAssetDLCInfo', + 'getAssignedCuratorLogic', + 'getAssignedCuratorUnit', + 'getAttackTarget', + 'getAudioOptionVolumes', + 'getBackpackCargo', + 'getBleedingRemaining', + 'getBurningValue', + 'getCalculatePlayerVisibilityByFriendly', + 'getCameraViewDirection', + 'getCargoIndex', + 'getCenterOfMass', + 'getClientState', + 'getClientStateNumber', + 'getCompatiblePylonMagazines', + 'getConnectedUAV', + 'getConnectedUAVUnit', + 'getContainerMaxLoad', + 'getCorpse', + 'getCruiseControl', + 'getCursorObjectParams', + 'getCustomAimCoef', + 'getCustomSoundController', + 'getCustomSoundControllerCount', + 'getDammage', + 'getDebriefingText', + 'getDescription', + 'getDir', + 'getDirVisual', + 'getDiverState', + 'getDLCAssetsUsage', + 'getDLCAssetsUsageByName', + 'getDLCs', + 'getDLCUsageTime', + 'getEditorCamera', + 'getEditorMode', + 'getEditorObjectScope', + 'getElevationOffset', + 'getEngineTargetRPMRTD', + 'getEnv3DSoundController', + 'getEnvSoundController', + 'getEventHandlerInfo', + 'getFatigue', + 'getFieldManualStartPage', + 'getForcedFlagTexture', + 'getForcedSpeed', + 'getFriend', + 'getFSMVariable', + 'getFuelCargo', + 'getGraphValues', + 'getGroupIcon', + 'getGroupIconParams', + 'getGroupIcons', + 'getHideFrom', + 'getHit', + 'getHitIndex', + 'getHitPointDamage', + 'getItemCargo', + 'getLighting', + 'getLightingAt', + 'getLoadedModsInfo', + 'getMagazineCargo', + 'getMarkerColor', + 'getMarkerPos', + 'getMarkerSize', + 'getMarkerType', + 'getMass', + 'getMissionConfig', + 'getMissionConfigValue', + 'getMissionDLCs', + 'getMissionLayerEntities', + 'getMissionLayers', + 'getMissionPath', + 'getModelInfo', + 'getMousePosition', + 'getMusicPlayedTime', + 'getNumber', + 'getObjectArgument', + 'getObjectChildren', + 'getObjectDLC', + 'getObjectFOV', + 'getObjectID', + 'getObjectMaterials', + 'getObjectProxy', + 'getObjectScale', + 'getObjectTextures', + 'getObjectType', + 'getObjectViewDistance', + 'getOpticsMode', + 'getOrDefault', + 'getOrDefaultCall', + 'getOxygenRemaining', + 'getPersonUsedDLCs', + 'getPilotCameraDirection', + 'getPilotCameraPosition', + 'getPilotCameraRotation', + 'getPilotCameraTarget', + 'getPiPViewDistance', + 'getPlateNumber', + 'getPlayerChannel', + 'getPlayerID', + 'getPlayerScores', + 'getPlayerUID', + 'getPlayerVoNVolume', + 'getPos', + 'getPosASL', + 'getPosASLVisual', + 'getPosASLW', + 'getPosATL', + 'getPosATLVisual', + 'getPosVisual', + 'getPosWorld', + 'getPosWorldVisual', + 'getPylonMagazines', + 'getRelDir', + 'getRelPos', + 'getRemoteSensorsDisabled', + 'getRepairCargo', + 'getResolution', + 'getRoadInfo', + 'getRotorBrakeRTD', + 'getSensorTargets', + 'getSensorThreats', + 'getShadowDistance', + 'getShotParents', + 'getSlingLoad', + 'getSoundController', + 'getSoundControllerResult', + 'getSpeed', + 'getStamina', + 'getStatValue', + 'getSteamFriendsServers', + 'getSubtitleOptions', + 'getSuppression', + 'getTerrainGrid', + 'getTerrainHeight', + 'getTerrainHeightASL', + 'getTerrainInfo', + 'getText', + 'getTextRaw', + 'getTextureInfo', + 'getTextWidth', + 'getTiParameters', + 'getTotalDLCUsageTime', + 'getTrimOffsetRTD', + 'getTurretLimits', + 'getTurretOpticsMode', + 'getUnitFreefallInfo', + 'getUnitLoadout', + 'getUnitTrait', + 'getUnloadInCombat', + 'getUserInfo', + 'getUserMFDText', + 'getUserMFDValue', + 'getVariable', + 'getVehicleCargo', + 'getVehicleTiPars', + 'getWeaponCargo', + 'getWeaponSway', + 'getWingsOrientationRTD', + 'getWingsPositionRTD', + 'getWPPos', + 'glanceAt', + 'globalChat', + 'globalRadio', + 'goggles', + 'goto', + 'group', + 'groupChat', + 'groupFromNetId', + 'groupIconSelectable', + 'groupIconsVisible', + 'groupID', + 'groupOwner', + 'groupRadio', + 'groups', + 'groupSelectedUnits', + 'groupSelectUnit', + 'gunner', + 'gusts', + 'halt', + 'handgunItems', + 'handgunMagazine', + 'handgunWeapon', + 'handsHit', + 'hashValue', + 'hasInterface', + 'hasPilotCamera', + 'hasWeapon', + 'hcAllGroups', + 'hcGroupParams', + 'hcLeader', + 'hcRemoveAllGroups', + 'hcRemoveGroup', + 'hcSelected', + 'hcSelectGroup', + 'hcSetGroup', + 'hcShowBar', + 'hcShownBar', + 'headgear', + 'hideBody', + 'hideObject', + 'hideObjectGlobal', + 'hideSelection', + 'hint', + 'hintC', + 'hintCadet', + 'hintSilent', + 'hmd', + 'hostMission', + 'htmlLoad', + 'HUDMovementLevels', + 'humidity', + 'image', + 'importAllGroups', + 'importance', + 'in', + 'inArea', + 'inAreaArray', + 'incapacitatedState', + 'inflame', + 'inflamed', + 'infoPanel', + 'infoPanelComponentEnabled', + 'infoPanelComponents', + 'infoPanels', + 'inGameUISetEventHandler', + 'inheritsFrom', + 'initAmbientLife', + 'inPolygon', + 'inputAction', + 'inputController', + 'inputMouse', + 'inRangeOfArtillery', + 'insert', + 'insertEditorObject', + 'intersect', + 'is3DEN', + 'is3DENMultiplayer', + 'is3DENPreview', + 'isAbleToBreathe', + 'isActionMenuVisible', + 'isAgent', + 'isAimPrecisionEnabled', + 'isAllowedCrewInImmobile', + 'isArray', + 'isAutoHoverOn', + 'isAutonomous', + 'isAutoStartUpEnabledRTD', + 'isAutotest', + 'isAutoTrimOnRTD', + 'isAwake', + 'isBleeding', + 'isBurning', + 'isClass', + 'isCollisionLightOn', + 'isCopilotEnabled', + 'isDamageAllowed', + 'isDedicated', + 'isDLCAvailable', + 'isEngineOn', + 'isEqualRef', + 'isEqualTo', + 'isEqualType', + 'isEqualTypeAll', + 'isEqualTypeAny', + 'isEqualTypeArray', + 'isEqualTypeParams', + 'isFilePatchingEnabled', + 'isFinal', + 'isFlashlightOn', + 'isFlatEmpty', + 'isForcedWalk', + 'isFormationLeader', + 'isGameFocused', + 'isGamePaused', + 'isGroupDeletedWhenEmpty', + 'isHidden', + 'isInRemainsCollector', + 'isInstructorFigureEnabled', + 'isIRLaserOn', + 'isKeyActive', + 'isKindOf', + 'isLaserOn', + 'isLightOn', + 'isLocalized', + 'isManualFire', + 'isMarkedForCollection', + 'isMissionProfileNamespaceLoaded', + 'isMultiplayer', + 'isMultiplayerSolo', + 'isNil', + 'isNotEqualRef', + 'isNotEqualTo', + 'isNull', + 'isNumber', + 'isObjectHidden', + 'isObjectRTD', + 'isOnRoad', + 'isPiPEnabled', + 'isPlayer', + 'isRealTime', + 'isRemoteExecuted', + 'isRemoteExecutedJIP', + 'isSaving', + 'isSensorTargetConfirmed', + 'isServer', + 'isShowing3DIcons', + 'isSimpleObject', + 'isSprintAllowed', + 'isStaminaEnabled', + 'isSteamMission', + 'isSteamOverlayEnabled', + 'isStreamFriendlyUIEnabled', + 'isStressDamageEnabled', + 'isText', + 'isTouchingGround', + 'isTurnedOut', + 'isTutHintsEnabled', + 'isUAVConnectable', + 'isUAVConnected', + 'isUIContext', + 'isUniformAllowed', + 'isVehicleCargo', + 'isVehicleRadarOn', + 'isVehicleSensorEnabled', + 'isWalking', + 'isWeaponDeployed', + 'isWeaponRested', + 'itemCargo', + 'items', + 'itemsWithMagazines', + 'join', + 'joinAs', + 'joinAsSilent', + 'joinSilent', + 'joinString', + 'kbAddDatabase', + 'kbAddDatabaseTargets', + 'kbAddTopic', + 'kbHasTopic', + 'kbReact', + 'kbRemoveTopic', + 'kbTell', + 'kbWasSaid', + 'keyImage', + 'keyName', + 'keys', + 'knowsAbout', + 'land', + 'landAt', + 'landResult', + 'language', + 'laserTarget', + 'lbAdd', + 'lbClear', + 'lbColor', + 'lbColorRight', + 'lbCurSel', + 'lbData', + 'lbDelete', + 'lbIsSelected', + 'lbPicture', + 'lbPictureRight', + 'lbSelection', + 'lbSetColor', + 'lbSetColorRight', + 'lbSetCurSel', + 'lbSetData', + 'lbSetPicture', + 'lbSetPictureColor', + 'lbSetPictureColorDisabled', + 'lbSetPictureColorSelected', + 'lbSetPictureRight', + 'lbSetPictureRightColor', + 'lbSetPictureRightColorDisabled', + 'lbSetPictureRightColorSelected', + 'lbSetSelectColor', + 'lbSetSelectColorRight', + 'lbSetSelected', + 'lbSetText', + 'lbSetTextRight', + 'lbSetTooltip', + 'lbSetValue', + 'lbSize', + 'lbSort', + 'lbSortBy', + 'lbSortByValue', + 'lbText', + 'lbTextRight', + 'lbTooltip', + 'lbValue', + 'leader', + 'leaderboardDeInit', + 'leaderboardGetRows', + 'leaderboardInit', + 'leaderboardRequestRowsFriends', + 'leaderboardRequestRowsGlobal', + 'leaderboardRequestRowsGlobalAroundUser', + 'leaderboardsRequestUploadScore', + 'leaderboardsRequestUploadScoreKeepBest', + 'leaderboardState', + 'leaveVehicle', + 'libraryCredits', + 'libraryDisclaimers', + 'lifeState', + 'lightAttachObject', + 'lightDetachObject', + 'lightIsOn', + 'lightnings', + 'limitSpeed', + 'linearConversion', + 'lineIntersects', + 'lineIntersectsObjs', + 'lineIntersectsSurfaces', + 'lineIntersectsWith', + 'linkItem', + 'list', + 'listObjects', + 'listRemoteTargets', + 'listVehicleSensors', + 'ln', + 'lnbAddArray', + 'lnbAddColumn', + 'lnbAddRow', + 'lnbClear', + 'lnbColor', + 'lnbColorRight', + 'lnbCurSelRow', + 'lnbData', + 'lnbDeleteColumn', + 'lnbDeleteRow', + 'lnbGetColumnsPosition', + 'lnbPicture', + 'lnbPictureRight', + 'lnbSetColor', + 'lnbSetColorRight', + 'lnbSetColumnsPos', + 'lnbSetCurSelRow', + 'lnbSetData', + 'lnbSetPicture', + 'lnbSetPictureColor', + 'lnbSetPictureColorRight', + 'lnbSetPictureColorSelected', + 'lnbSetPictureColorSelectedRight', + 'lnbSetPictureRight', + 'lnbSetText', + 'lnbSetTextRight', + 'lnbSetTooltip', + 'lnbSetValue', + 'lnbSize', + 'lnbSort', + 'lnbSortBy', + 'lnbSortByValue', + 'lnbText', + 'lnbTextRight', + 'lnbValue', + 'load', + 'loadAbs', + 'loadBackpack', + 'loadConfig', + 'loadFile', + 'loadGame', + 'loadIdentity', + 'loadMagazine', + 'loadOverlay', + 'loadStatus', + 'loadUniform', + 'loadVest', + 'localize', + 'localNamespace', + 'locationPosition', + 'lock', + 'lockCameraTo', + 'lockCargo', + 'lockDriver', + 'locked', + 'lockedCameraTo', + 'lockedCargo', + 'lockedDriver', + 'lockedInventory', + 'lockedTurret', + 'lockIdentity', + 'lockInventory', + 'lockTurret', + 'lockWp', + 'log', + 'logEntities', + 'logNetwork', + 'logNetworkTerminate', + 'lookAt', + 'lookAtPos', + 'magazineCargo', + 'magazines', + 'magazinesAllTurrets', + 'magazinesAmmo', + 'magazinesAmmoCargo', + 'magazinesAmmoFull', + 'magazinesDetail', + 'magazinesDetailBackpack', + 'magazinesDetailUniform', + 'magazinesDetailVest', + 'magazinesTurret', + 'magazineTurretAmmo', + 'mapAnimAdd', + 'mapAnimClear', + 'mapAnimCommit', + 'mapAnimDone', + 'mapCenterOnCamera', + 'mapGridPosition', + 'markAsFinishedOnSteam', + 'markerAlpha', + 'markerBrush', + 'markerChannel', + 'markerColor', + 'markerDir', + 'markerPolyline', + 'markerPos', + 'markerShadow', + 'markerShape', + 'markerSize', + 'markerText', + 'markerType', + 'matrixMultiply', + 'matrixTranspose', + 'max', + 'maxLoad', + 'members', + 'menuAction', + 'menuAdd', + 'menuChecked', + 'menuClear', + 'menuCollapse', + 'menuData', + 'menuDelete', + 'menuEnable', + 'menuEnabled', + 'menuExpand', + 'menuHover', + 'menuPicture', + 'menuSetAction', + 'menuSetCheck', + 'menuSetData', + 'menuSetPicture', + 'menuSetShortcut', + 'menuSetText', + 'menuSetURL', + 'menuSetValue', + 'menuShortcut', + 'menuShortcutText', + 'menuSize', + 'menuSort', + 'menuText', + 'menuURL', + 'menuValue', + 'merge', + 'min', + 'mineActive', + 'mineDetectedBy', + 'missileTarget', + 'missileTargetPos', + 'missionConfigFile', + 'missionDifficulty', + 'missionEnd', + 'missionName', + 'missionNameSource', + 'missionNamespace', + 'missionProfileNamespace', + 'missionStart', + 'missionVersion', + 'mod', + 'modelToWorld', + 'modelToWorldVisual', + 'modelToWorldVisualWorld', + 'modelToWorldWorld', + 'modParams', + 'moonIntensity', + 'moonPhase', + 'morale', + 'move', + 'move3DENCamera', + 'moveInAny', + 'moveInCargo', + 'moveInCommander', + 'moveInDriver', + 'moveInGunner', + 'moveInTurret', + 'moveObjectToEnd', + 'moveOut', + 'moveTime', + 'moveTo', + 'moveToCompleted', + 'moveToFailed', + 'musicVolume', + 'name', + 'namedProperties', + 'nameSound', + 'nearEntities', + 'nearestBuilding', + 'nearestLocation', + 'nearestLocations', + 'nearestLocationWithDubbing', + 'nearestMines', + 'nearestObject', + 'nearestObjects', + 'nearestTerrainObjects', + 'nearObjects', + 'nearObjectsReady', + 'nearRoads', + 'nearSupplies', + 'nearTargets', + 'needReload', + 'needService', + 'netId', + 'netObjNull', + 'newOverlay', + 'nextMenuItemIndex', + 'nextWeatherChange', + 'nMenuItems', + 'not', + 'numberOfEnginesRTD', + 'numberToDate', + 'objectCurators', + 'objectFromNetId', + 'objectParent', + 'objStatus', + 'onBriefingGroup', + 'onBriefingNotes', + 'onBriefingPlan', + 'onBriefingTeamSwitch', + 'onCommandModeChanged', + 'onDoubleClick', + 'onEachFrame', + 'onGroupIconClick', + 'onGroupIconOverEnter', + 'onGroupIconOverLeave', + 'onHCGroupSelectionChanged', + 'onMapSingleClick', + 'onPlayerConnected', + 'onPlayerDisconnected', + 'onPreloadFinished', + 'onPreloadStarted', + 'onShowNewObject', + 'onTeamSwitch', + 'openCuratorInterface', + 'openDLCPage', + 'openGPS', + 'openMap', + 'openSteamApp', + 'openYoutubeVideo', + 'or', + 'orderGetIn', + 'overcast', + 'overcastForecast', + 'owner', + 'param', + 'params', + 'parseNumber', + 'parseSimpleArray', + 'parseText', + 'parsingNamespace', + 'particlesQuality', + 'periscopeElevation', + 'pickWeaponPool', + 'pitch', + 'pixelGrid', + 'pixelGridBase', + 'pixelGridNoUIScale', + 'pixelH', + 'pixelW', + 'playableSlotsNumber', + 'playableUnits', + 'playAction', + 'playActionNow', + 'player', + 'playerRespawnTime', + 'playerSide', + 'playersNumber', + 'playGesture', + 'playMission', + 'playMove', + 'playMoveNow', + 'playMusic', + 'playScriptedMission', + 'playSound', + 'playSound3D', + 'playSoundUI', + 'pose', + 'position', + 'positionCameraToWorld', + 'posScreenToWorld', + 'posWorldToScreen', + 'ppEffectAdjust', + 'ppEffectCommit', + 'ppEffectCommitted', + 'ppEffectCreate', + 'ppEffectDestroy', + 'ppEffectEnable', + 'ppEffectEnabled', + 'ppEffectForceInNVG', + 'precision', + 'preloadCamera', + 'preloadObject', + 'preloadSound', + 'preloadTitleObj', + 'preloadTitleRsc', + 'preprocessFile', + 'preprocessFileLineNumbers', + 'primaryWeapon', + 'primaryWeaponItems', + 'primaryWeaponMagazine', + 'priority', + 'processDiaryLink', + 'productVersion', + 'profileName', + 'profileNamespace', + 'profileNameSteam', + 'progressLoadingScreen', + 'progressPosition', + 'progressSetPosition', + 'publicVariable', + 'publicVariableClient', + 'publicVariableServer', + 'pushBack', + 'pushBackUnique', + 'putWeaponPool', + 'queryItemsPool', + 'queryMagazinePool', + 'queryWeaponPool', + 'rad', + 'radioChannelAdd', + 'radioChannelCreate', + 'radioChannelInfo', + 'radioChannelRemove', + 'radioChannelSetCallSign', + 'radioChannelSetLabel', + 'radioEnabled', + 'radioVolume', + 'rain', + 'rainbow', + 'rainParams', + 'random', + 'rank', + 'rankId', + 'rating', + 'rectangular', + 'regexFind', + 'regexMatch', + 'regexReplace', + 'registeredTasks', + 'registerTask', + 'reload', + 'reloadEnabled', + 'remoteControl', + 'remoteExec', + 'remoteExecCall', + 'remoteExecutedOwner', + 'remove3DENConnection', + 'remove3DENEventHandler', + 'remove3DENLayer', + 'removeAction', + 'removeAll3DENEventHandlers', + 'removeAllActions', + 'removeAllAssignedItems', + 'removeAllBinocularItems', + 'removeAllContainers', + 'removeAllCuratorAddons', + 'removeAllCuratorCameraAreas', + 'removeAllCuratorEditingAreas', + 'removeAllEventHandlers', + 'removeAllHandgunItems', + 'removeAllItems', + 'removeAllItemsWithMagazines', + 'removeAllMissionEventHandlers', + 'removeAllMPEventHandlers', + 'removeAllMusicEventHandlers', + 'removeAllOwnedMines', + 'removeAllPrimaryWeaponItems', + 'removeAllSecondaryWeaponItems', + 'removeAllUserActionEventHandlers', + 'removeAllWeapons', + 'removeBackpack', + 'removeBackpackGlobal', + 'removeBinocularItem', + 'removeCuratorAddons', + 'removeCuratorCameraArea', + 'removeCuratorEditableObjects', + 'removeCuratorEditingArea', + 'removeDiaryRecord', + 'removeDiarySubject', + 'removeDrawIcon', + 'removeDrawLinks', + 'removeEventHandler', + 'removeFromRemainsCollector', + 'removeGoggles', + 'removeGroupIcon', + 'removeHandgunItem', + 'removeHeadgear', + 'removeItem', + 'removeItemFromBackpack', + 'removeItemFromUniform', + 'removeItemFromVest', + 'removeItems', + 'removeMagazine', + 'removeMagazineGlobal', + 'removeMagazines', + 'removeMagazinesTurret', + 'removeMagazineTurret', + 'removeMenuItem', + 'removeMissionEventHandler', + 'removeMPEventHandler', + 'removeMusicEventHandler', + 'removeOwnedMine', + 'removePrimaryWeaponItem', + 'removeSecondaryWeaponItem', + 'removeSimpleTask', + 'removeSwitchableUnit', + 'removeTeamMember', + 'removeUniform', + 'removeUserActionEventHandler', + 'removeVest', + 'removeWeapon', + 'removeWeaponAttachmentCargo', + 'removeWeaponCargo', + 'removeWeaponGlobal', + 'removeWeaponTurret', + 'reportRemoteTarget', + 'requiredVersion', + 'resetCamShake', + 'resetSubgroupDirection', + 'resize', + 'resources', + 'respawnVehicle', + 'restartEditorCamera', + 'reveal', + 'revealMine', + 'reverse', + 'reversedMouseY', + 'roadAt', + 'roadsConnectedTo', + 'roleDescription', + 'ropeAttachedObjects', + 'ropeAttachedTo', + 'ropeAttachEnabled', + 'ropeAttachTo', + 'ropeCreate', + 'ropeCut', + 'ropeDestroy', + 'ropeDetach', + 'ropeEndPosition', + 'ropeLength', + 'ropes', + 'ropesAttachedTo', + 'ropeSegments', + 'ropeUnwind', + 'ropeUnwound', + 'rotorsForcesRTD', + 'rotorsRpmRTD', + 'round', + 'runInitScript', + 'safeZoneH', + 'safeZoneW', + 'safeZoneWAbs', + 'safeZoneX', + 'safeZoneXAbs', + 'safeZoneY', + 'save3DENInventory', + 'saveGame', + 'saveIdentity', + 'saveJoysticks', + 'saveMissionProfileNamespace', + 'saveOverlay', + 'saveProfileNamespace', + 'saveStatus', + 'saveVar', + 'savingEnabled', + 'say', + 'say2D', + 'say3D', + 'scopeName', + 'score', + 'scoreSide', + 'screenshot', + 'screenToWorld', + 'scriptDone', + 'scriptName', + 'scudState', + 'secondaryWeapon', + 'secondaryWeaponItems', + 'secondaryWeaponMagazine', + 'select', + 'selectBestPlaces', + 'selectDiarySubject', + 'selectedEditorObjects', + 'selectEditorObject', + 'selectionNames', + 'selectionPosition', + 'selectionVectorDirAndUp', + 'selectLeader', + 'selectMax', + 'selectMin', + 'selectNoPlayer', + 'selectPlayer', + 'selectRandom', + 'selectRandomWeighted', + 'selectWeapon', + 'selectWeaponTurret', + 'sendAUMessage', + 'sendSimpleCommand', + 'sendTask', + 'sendTaskResult', + 'sendUDPMessage', + 'sentencesEnabled', + 'serverCommand', + 'serverCommandAvailable', + 'serverCommandExecutable', + 'serverName', + 'serverNamespace', + 'serverTime', + 'set', + 'set3DENAttribute', + 'set3DENAttributes', + 'set3DENGrid', + 'set3DENIconsVisible', + 'set3DENLayer', + 'set3DENLinesVisible', + 'set3DENLogicType', + 'set3DENMissionAttribute', + 'set3DENMissionAttributes', + 'set3DENModelsVisible', + 'set3DENObjectType', + 'set3DENSelected', + 'setAccTime', + 'setActualCollectiveRTD', + 'setAirplaneThrottle', + 'setAirportSide', + 'setAmmo', + 'setAmmoCargo', + 'setAmmoOnPylon', + 'setAnimSpeedCoef', + 'setAperture', + 'setApertureNew', + 'setArmoryPoints', + 'setAttributes', + 'setAutonomous', + 'setBehaviour', + 'setBehaviourStrong', + 'setBleedingRemaining', + 'setBrakesRTD', + 'setCameraInterest', + 'setCamShakeDefParams', + 'setCamShakeParams', + 'setCamUseTi', + 'setCaptive', + 'setCenterOfMass', + 'setCollisionLight', + 'setCombatBehaviour', + 'setCombatMode', + 'setCompassOscillation', + 'setConvoySeparation', + 'setCruiseControl', + 'setCuratorCameraAreaCeiling', + 'setCuratorCoef', + 'setCuratorEditingAreaType', + 'setCuratorWaypointCost', + 'setCurrentChannel', + 'setCurrentTask', + 'setCurrentWaypoint', + 'setCustomAimCoef', + 'SetCustomMissionData', + 'setCustomSoundController', + 'setCustomWeightRTD', + 'setDamage', + 'setDammage', + 'setDate', + 'setDebriefingText', + 'setDefaultCamera', + 'setDestination', + 'setDetailMapBlendPars', + 'setDiaryRecordText', + 'setDiarySubjectPicture', + 'setDir', + 'setDirection', + 'setDrawIcon', + 'setDriveOnPath', + 'setDropInterval', + 'setDynamicSimulationDistance', + 'setDynamicSimulationDistanceCoef', + 'setEditorMode', + 'setEditorObjectScope', + 'setEffectCondition', + 'setEffectiveCommander', + 'setEngineRpmRTD', + 'setFace', + 'setFaceanimation', + 'setFatigue', + 'setFeatureType', + 'setFlagAnimationPhase', + 'setFlagOwner', + 'setFlagSide', + 'setFlagTexture', + 'setFog', + 'setForceGeneratorRTD', + 'setFormation', + 'setFormationTask', + 'setFormDir', + 'setFriend', + 'setFromEditor', + 'setFSMVariable', + 'setFuel', + 'setFuelCargo', + 'setGroupIcon', + 'setGroupIconParams', + 'setGroupIconsSelectable', + 'setGroupIconsVisible', + 'setGroupid', + 'setGroupIdGlobal', + 'setGroupOwner', + 'setGusts', + 'setHideBehind', + 'setHit', + 'setHitIndex', + 'setHitPointDamage', + 'setHorizonParallaxCoef', + 'setHUDMovementLevels', + 'setHumidity', + 'setIdentity', + 'setImportance', + 'setInfoPanel', + 'setLeader', + 'setLightAmbient', + 'setLightAttenuation', + 'setLightBrightness', + 'setLightColor', + 'setLightConePars', + 'setLightDayLight', + 'setLightFlareMaxDistance', + 'setLightFlareSize', + 'setLightIntensity', + 'setLightIR', + 'setLightnings', + 'setLightUseFlare', + 'setLightVolumeShape', + 'setLocalWindParams', + 'setMagazineTurretAmmo', + 'setMarkerAlpha', + 'setMarkerAlphaLocal', + 'setMarkerBrush', + 'setMarkerBrushLocal', + 'setMarkerColor', + 'setMarkerColorLocal', + 'setMarkerDir', + 'setMarkerDirLocal', + 'setMarkerPolyline', + 'setMarkerPolylineLocal', + 'setMarkerPos', + 'setMarkerPosLocal', + 'setMarkerShadow', + 'setMarkerShadowLocal', + 'setMarkerShape', + 'setMarkerShapeLocal', + 'setMarkerSize', + 'setMarkerSizeLocal', + 'setMarkerText', + 'setMarkerTextLocal', + 'setMarkerType', + 'setMarkerTypeLocal', + 'setMass', + 'setMaxLoad', + 'setMimic', + 'setMissileTarget', + 'setMissileTargetPos', + 'setMousePosition', + 'setMusicEffect', + 'setMusicEventHandler', + 'setName', + 'setNameSound', + 'setObjectArguments', + 'setObjectMaterial', + 'setObjectMaterialGlobal', + 'setObjectProxy', + 'setObjectScale', + 'setObjectTexture', + 'setObjectTextureGlobal', + 'setObjectViewDistance', + 'setOpticsMode', + 'setOvercast', + 'setOwner', + 'setOxygenRemaining', + 'setParticleCircle', + 'setParticleClass', + 'setParticleFire', + 'setParticleParams', + 'setParticleRandom', + 'setPilotCameraDirection', + 'setPilotCameraRotation', + 'setPilotCameraTarget', + 'setPilotLight', + 'setPiPEffect', + 'setPiPViewDistance', + 'setPitch', + 'setPlateNumber', + 'setPlayable', + 'setPlayerRespawnTime', + 'setPlayerVoNVolume', + 'setPos', + 'setPosASL', + 'setPosASL2', + 'setPosASLW', + 'setPosATL', + 'setPosition', + 'setPosWorld', + 'setPylonLoadout', + 'setPylonsPriority', + 'setRadioMsg', + 'setRain', + 'setRainbow', + 'setRandomLip', + 'setRank', + 'setRectangular', + 'setRepairCargo', + 'setRotorBrakeRTD', + 'setShadowDistance', + 'setShotParents', + 'setSide', + 'setSimpleTaskAlwaysVisible', + 'setSimpleTaskCustomData', + 'setSimpleTaskDescription', + 'setSimpleTaskDestination', + 'setSimpleTaskTarget', + 'setSimpleTaskType', + 'setSimulWeatherLayers', + 'setSize', + 'setSkill', + 'setSlingLoad', + 'setSoundEffect', + 'setSpeaker', + 'setSpeech', + 'setSpeedMode', + 'setStamina', + 'setStaminaScheme', + 'setStatValue', + 'setSuppression', + 'setSystemOfUnits', + 'setTargetAge', + 'setTaskMarkerOffset', + 'setTaskResult', + 'setTaskState', + 'setTerrainGrid', + 'setTerrainHeight', + 'setText', + 'setTimeMultiplier', + 'setTiParameter', + 'setTitleEffect', + 'setTowParent', + 'setTrafficDensity', + 'setTrafficDistance', + 'setTrafficGap', + 'setTrafficSpeed', + 'setTriggerActivation', + 'setTriggerArea', + 'setTriggerInterval', + 'setTriggerStatements', + 'setTriggerText', + 'setTriggerTimeout', + 'setTriggerType', + 'setTurretLimits', + 'setTurretOpticsMode', + 'setType', + 'setUnconscious', + 'setUnitAbility', + 'setUnitCombatMode', + 'setUnitFreefallHeight', + 'setUnitLoadout', + 'setUnitPos', + 'setUnitPosWeak', + 'setUnitRank', + 'setUnitRecoilCoefficient', + 'setUnitTrait', + 'setUnloadInCombat', + 'setUserActionText', + 'setUserMFDText', + 'setUserMFDValue', + 'setVariable', + 'setVectorDir', + 'setVectorDirAndUp', + 'setVectorUp', + 'setVehicleAmmo', + 'setVehicleAmmoDef', + 'setVehicleArmor', + 'setVehicleCargo', + 'setVehicleId', + 'setVehicleLock', + 'setVehiclePosition', + 'setVehicleRadar', + 'setVehicleReceiveRemoteTargets', + 'setVehicleReportOwnPosition', + 'setVehicleReportRemoteTargets', + 'setVehicleTiPars', + 'setVehicleVarName', + 'setVelocity', + 'setVelocityModelSpace', + 'setVelocityTransformation', + 'setViewDistance', + 'setVisibleIfTreeCollapsed', + 'setWantedRPMRTD', + 'setWaves', + 'setWaypointBehaviour', + 'setWaypointCombatMode', + 'setWaypointCompletionRadius', + 'setWaypointDescription', + 'setWaypointForceBehaviour', + 'setWaypointFormation', + 'setWaypointHousePosition', + 'setWaypointLoiterAltitude', + 'setWaypointLoiterRadius', + 'setWaypointLoiterType', + 'setWaypointName', + 'setWaypointPosition', + 'setWaypointScript', + 'setWaypointSpeed', + 'setWaypointStatements', + 'setWaypointTimeout', + 'setWaypointType', + 'setWaypointVisible', + 'setWeaponReloadingTime', + 'setWeaponZeroing', + 'setWind', + 'setWindDir', + 'setWindForce', + 'setWindStr', + 'setWingForceScaleRTD', + 'setWPPos', + 'show3DIcons', + 'showChat', + 'showCinemaBorder', + 'showCommandingMenu', + 'showCompass', + 'showCuratorCompass', + 'showGps', + 'showHUD', + 'showLegend', + 'showMap', + 'shownArtilleryComputer', + 'shownChat', + 'shownCompass', + 'shownCuratorCompass', + 'showNewEditorObject', + 'shownGps', + 'shownHUD', + 'shownMap', + 'shownPad', + 'shownRadio', + 'shownScoretable', + 'shownSubtitles', + 'shownUAVFeed', + 'shownWarrant', + 'shownWatch', + 'showPad', + 'showRadio', + 'showScoretable', + 'showSubtitles', + 'showUAVFeed', + 'showWarrant', + 'showWatch', + 'showWaypoint', + 'showWaypoints', + 'side', + 'sideChat', + 'sideRadio', + 'simpleTasks', + 'simulationEnabled', + 'simulCloudDensity', + 'simulCloudOcclusion', + 'simulInClouds', + 'simulWeatherSync', + 'sin', + 'size', + 'sizeOf', + 'skill', + 'skillFinal', + 'skipTime', + 'sleep', + 'sliderPosition', + 'sliderRange', + 'sliderSetPosition', + 'sliderSetRange', + 'sliderSetSpeed', + 'sliderSpeed', + 'slingLoadAssistantShown', + 'soldierMagazines', + 'someAmmo', + 'sort', + 'soundVolume', + 'spawn', + 'speaker', + 'speechVolume', + 'speed', + 'speedMode', + 'splitString', + 'sqrt', + 'squadParams', + 'stance', + 'startLoadingScreen', + 'stop', + 'stopEngineRTD', + 'stopped', + 'str', + 'sunOrMoon', + 'supportInfo', + 'suppressFor', + 'surfaceIsWater', + 'surfaceNormal', + 'surfaceTexture', + 'surfaceType', + 'swimInDepth', + 'switchableUnits', + 'switchAction', + 'switchCamera', + 'switchGesture', + 'switchLight', + 'switchMove', + 'synchronizedObjects', + 'synchronizedTriggers', + 'synchronizedWaypoints', + 'synchronizeObjectsAdd', + 'synchronizeObjectsRemove', + 'synchronizeTrigger', + 'synchronizeWaypoint', + 'systemChat', + 'systemOfUnits', + 'systemTime', + 'systemTimeUTC', + 'tan', + 'targetKnowledge', + 'targets', + 'targetsAggregate', + 'targetsQuery', + 'taskAlwaysVisible', + 'taskChildren', + 'taskCompleted', + 'taskCustomData', + 'taskDescription', + 'taskDestination', + 'taskHint', + 'taskMarkerOffset', + 'taskName', + 'taskParent', + 'taskResult', + 'taskState', + 'taskType', + 'teamMember', + 'teamName', + 'teams', + 'teamSwitch', + 'teamSwitchEnabled', + 'teamType', + 'terminate', + 'terrainIntersect', + 'terrainIntersectASL', + 'terrainIntersectAtASL', + 'text', + 'textLog', + 'textLogFormat', + 'tg', + 'time', + 'timeMultiplier', + 'titleCut', + 'titleFadeOut', + 'titleObj', + 'titleRsc', + 'titleText', + 'toArray', + 'toFixed', + 'toLower', + 'toLowerANSI', + 'toString', + 'toUpper', + 'toUpperANSI', + 'triggerActivated', + 'triggerActivation', + 'triggerAmmo', + 'triggerArea', + 'triggerAttachedVehicle', + 'triggerAttachObject', + 'triggerAttachVehicle', + 'triggerDynamicSimulation', + 'triggerInterval', + 'triggerStatements', + 'triggerText', + 'triggerTimeout', + 'triggerTimeoutCurrent', + 'triggerType', + 'trim', + 'turretLocal', + 'turretOwner', + 'turretUnit', + 'tvAdd', + 'tvClear', + 'tvCollapse', + 'tvCollapseAll', + 'tvCount', + 'tvCurSel', + 'tvData', + 'tvDelete', + 'tvExpand', + 'tvExpandAll', + 'tvIsSelected', + 'tvPicture', + 'tvPictureRight', + 'tvSelection', + 'tvSetColor', + 'tvSetCurSel', + 'tvSetData', + 'tvSetPicture', + 'tvSetPictureColor', + 'tvSetPictureColorDisabled', + 'tvSetPictureColorSelected', + 'tvSetPictureRight', + 'tvSetPictureRightColor', + 'tvSetPictureRightColorDisabled', + 'tvSetPictureRightColorSelected', + 'tvSetSelectColor', + 'tvSetSelected', + 'tvSetText', + 'tvSetTooltip', + 'tvSetValue', + 'tvSort', + 'tvSortAll', + 'tvSortByValue', + 'tvSortByValueAll', + 'tvText', + 'tvTooltip', + 'tvValue', + 'type', + 'typeName', + 'typeOf', + 'UAVControl', + 'uiNamespace', + 'uiSleep', + 'unassignCurator', + 'unassignItem', + 'unassignTeam', + 'unassignVehicle', + 'underwater', + 'uniform', + 'uniformContainer', + 'uniformItems', + 'uniformMagazines', + 'uniqueUnitItems', + 'unitAddons', + 'unitAimPosition', + 'unitAimPositionVisual', + 'unitBackpack', + 'unitCombatMode', + 'unitIsUAV', + 'unitPos', + 'unitReady', + 'unitRecoilCoefficient', + 'units', + 'unitsBelowHeight', + 'unitTurret', + 'unlinkItem', + 'unlockAchievement', + 'unregisterTask', + 'updateDrawIcon', + 'updateMenuItem', + 'updateObjectTree', + 'useAIOperMapObstructionTest', + 'useAISteeringComponent', + 'useAudioTimeForMoves', + 'userInputDisabled', + 'values', + 'vectorAdd', + 'vectorCos', + 'vectorCrossProduct', + 'vectorDiff', + 'vectorDir', + 'vectorDirVisual', + 'vectorDistance', + 'vectorDistanceSqr', + 'vectorDotProduct', + 'vectorFromTo', + 'vectorLinearConversion', + 'vectorMagnitude', + 'vectorMagnitudeSqr', + 'vectorModelToWorld', + 'vectorModelToWorldVisual', + 'vectorMultiply', + 'vectorNormalized', + 'vectorUp', + 'vectorUpVisual', + 'vectorWorldToModel', + 'vectorWorldToModelVisual', + 'vehicle', + 'vehicleCargoEnabled', + 'vehicleChat', + 'vehicleMoveInfo', + 'vehicleRadio', + 'vehicleReceiveRemoteTargets', + 'vehicleReportOwnPosition', + 'vehicleReportRemoteTargets', + 'vehicles', + 'vehicleVarName', + 'velocity', + 'velocityModelSpace', + 'verifySignature', + 'vest', + 'vestContainer', + 'vestItems', + 'vestMagazines', + 'viewDistance', + 'visibleCompass', + 'visibleGps', + 'visibleMap', + 'visiblePosition', + 'visiblePositionASL', + 'visibleScoretable', + 'visibleWatch', + 'waves', + 'waypointAttachedObject', + 'waypointAttachedVehicle', + 'waypointAttachObject', + 'waypointAttachVehicle', + 'waypointBehaviour', + 'waypointCombatMode', + 'waypointCompletionRadius', + 'waypointDescription', + 'waypointForceBehaviour', + 'waypointFormation', + 'waypointHousePosition', + 'waypointLoiterAltitude', + 'waypointLoiterRadius', + 'waypointLoiterType', + 'waypointName', + 'waypointPosition', + 'waypoints', + 'waypointScript', + 'waypointsEnabledUAV', + 'waypointShow', + 'waypointSpeed', + 'waypointStatements', + 'waypointTimeout', + 'waypointTimeoutCurrent', + 'waypointType', + 'waypointVisible', + 'weaponAccessories', + 'weaponAccessoriesCargo', + 'weaponCargo', + 'weaponDirection', + 'weaponInertia', + 'weaponLowered', + 'weaponReloadingTime', + 'weapons', + 'weaponsInfo', + 'weaponsItems', + 'weaponsItemsCargo', + 'weaponState', + 'weaponsTurret', + 'weightRTD', + 'WFSideText', + 'wind', + 'windDir', + 'windRTD', + 'windStr', + 'wingsForcesRTD', + 'worldName', + 'worldSize', + 'worldToModel', + 'worldToModelVisual', + 'worldToScreen' + ]; + + // list of keywords from: + // https://community.bistudio.com/wiki/PreProcessor_Commands + const PREPROCESSOR = { + className: 'meta', + begin: /#\s*[a-z]+\b/, + end: /$/, + keywords: 'define undef ifdef ifndef else endif include if', + contains: [ + { + begin: /\\\n/, + relevance: 0 + }, + hljs.inherit(STRINGS, { className: 'string' }), + { + begin: /<[^\n>]*>/, + end: /$/, + illegal: '\\n' + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }; + + return { + name: 'SQF', + case_insensitive: true, + keywords: { + keyword: KEYWORDS, + built_in: BUILT_IN, + literal: LITERAL + }, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.NUMBER_MODE, + VARIABLE, + FUNCTION, + STRINGS, + PREPROCESSOR + ], + illegal: [ + //$ is only valid when used with Hex numbers (e.g. $FF) + /\$[^a-fA-F0-9]/, + /\w\$/, + /\?/, //There's no ? in SQF + /@/, //There's no @ in SQF + // Brute-force-fixing the build error. See https://github.com/highlightjs/highlight.js/pull/3193#issuecomment-843088729 + / \| /, + // . is only used in numbers + /[a-zA-Z_]\./, + /\:\=/, + /\[\:/ + ] + }; +} + +export { sqf as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/sqf.js.js b/tools/ui/node_modules/highlight.js/es/languages/sqf.js.js new file mode 100644 index 0000000000000000000000000000000000000000..46da754defed32e747669bed1f5aa40fbfe847fd --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/sqf.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/sqf" instead of "highlight.js/lib/languages/sqf.js"' + ); + } + } + emitWarning(); + import lang from './sqf.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/sql.js b/tools/ui/node_modules/highlight.js/es/languages/sql.js new file mode 100644 index 0000000000000000000000000000000000000000..f38d8393bb905b6d0c0e026631da05d97f8055f5 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/sql.js @@ -0,0 +1,693 @@ +/* + Language: SQL + Website: https://en.wikipedia.org/wiki/SQL + Category: common, database + */ + +/* + +Goals: + +SQL is intended to highlight basic/common SQL keywords and expressions + +- If pretty much every single SQL server includes supports, then it's a canidate. +- It is NOT intended to include tons of vendor specific keywords (Oracle, MySQL, + PostgreSQL) although the list of data types is purposely a bit more expansive. +- For more specific SQL grammars please see: + - PostgreSQL and PL/pgSQL - core + - T-SQL - https://github.com/highlightjs/highlightjs-tsql + - sql_more (core) + + */ + +function sql(hljs) { + const regex = hljs.regex; + const COMMENT_MODE = hljs.COMMENT('--', '$'); + const STRING = { + scope: 'string', + variants: [ + { + begin: /'/, + end: /'/, + contains: [ { match: /''/ } ] + } + ] + }; + const QUOTED_IDENTIFIER = { + begin: /"/, + end: /"/, + contains: [ { match: /""/ } ] + }; + + const LITERALS = [ + "true", + "false", + // Not sure it's correct to call NULL literal, and clauses like IS [NOT] NULL look strange that way. + // "null", + "unknown" + ]; + + const MULTI_WORD_TYPES = [ + "double precision", + "large object", + "with timezone", + "without timezone" + ]; + + const TYPES = [ + 'bigint', + 'binary', + 'blob', + 'boolean', + 'char', + 'character', + 'clob', + 'date', + 'dec', + 'decfloat', + 'decimal', + 'float', + 'int', + 'integer', + 'interval', + 'nchar', + 'nclob', + 'national', + 'numeric', + 'real', + 'row', + 'smallint', + 'time', + 'timestamp', + 'varchar', + 'varying', // modifier (character varying) + 'varbinary' + ]; + + const NON_RESERVED_WORDS = [ + "add", + "asc", + "collation", + "desc", + "final", + "first", + "last", + "view" + ]; + + // https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html#reserved-word + const RESERVED_WORDS = [ + "abs", + "acos", + "all", + "allocate", + "alter", + "and", + "any", + "are", + "array", + "array_agg", + "array_max_cardinality", + "as", + "asensitive", + "asin", + "asymmetric", + "at", + "atan", + "atomic", + "authorization", + "avg", + "begin", + "begin_frame", + "begin_partition", + "between", + "bigint", + "binary", + "blob", + "boolean", + "both", + "by", + "call", + "called", + "cardinality", + "cascaded", + "case", + "cast", + "ceil", + "ceiling", + "char", + "char_length", + "character", + "character_length", + "check", + "classifier", + "clob", + "close", + "coalesce", + "collate", + "collect", + "column", + "commit", + "condition", + "connect", + "constraint", + "contains", + "convert", + "copy", + "corr", + "corresponding", + "cos", + "cosh", + "count", + "covar_pop", + "covar_samp", + "create", + "cross", + "cube", + "cume_dist", + "current", + "current_catalog", + "current_date", + "current_default_transform_group", + "current_path", + "current_role", + "current_row", + "current_schema", + "current_time", + "current_timestamp", + "current_path", + "current_role", + "current_transform_group_for_type", + "current_user", + "cursor", + "cycle", + "date", + "day", + "deallocate", + "dec", + "decimal", + "decfloat", + "declare", + "default", + "define", + "delete", + "dense_rank", + "deref", + "describe", + "deterministic", + "disconnect", + "distinct", + "double", + "drop", + "dynamic", + "each", + "element", + "else", + "empty", + "end", + "end_frame", + "end_partition", + "end-exec", + "equals", + "escape", + "every", + "except", + "exec", + "execute", + "exists", + "exp", + "external", + "extract", + "false", + "fetch", + "filter", + "first_value", + "float", + "floor", + "for", + "foreign", + "frame_row", + "free", + "from", + "full", + "function", + "fusion", + "get", + "global", + "grant", + "group", + "grouping", + "groups", + "having", + "hold", + "hour", + "identity", + "in", + "indicator", + "initial", + "inner", + "inout", + "insensitive", + "insert", + "int", + "integer", + "intersect", + "intersection", + "interval", + "into", + "is", + "join", + "json_array", + "json_arrayagg", + "json_exists", + "json_object", + "json_objectagg", + "json_query", + "json_table", + "json_table_primitive", + "json_value", + "lag", + "language", + "large", + "last_value", + "lateral", + "lead", + "leading", + "left", + "like", + "like_regex", + "listagg", + "ln", + "local", + "localtime", + "localtimestamp", + "log", + "log10", + "lower", + "match", + "match_number", + "match_recognize", + "matches", + "max", + "member", + "merge", + "method", + "min", + "minute", + "mod", + "modifies", + "module", + "month", + "multiset", + "national", + "natural", + "nchar", + "nclob", + "new", + "no", + "none", + "normalize", + "not", + "nth_value", + "ntile", + "null", + "nullif", + "numeric", + "octet_length", + "occurrences_regex", + "of", + "offset", + "old", + "omit", + "on", + "one", + "only", + "open", + "or", + "order", + "out", + "outer", + "over", + "overlaps", + "overlay", + "parameter", + "partition", + "pattern", + "per", + "percent", + "percent_rank", + "percentile_cont", + "percentile_disc", + "period", + "portion", + "position", + "position_regex", + "power", + "precedes", + "precision", + "prepare", + "primary", + "procedure", + "ptf", + "range", + "rank", + "reads", + "real", + "recursive", + "ref", + "references", + "referencing", + "regr_avgx", + "regr_avgy", + "regr_count", + "regr_intercept", + "regr_r2", + "regr_slope", + "regr_sxx", + "regr_sxy", + "regr_syy", + "release", + "result", + "return", + "returns", + "revoke", + "right", + "rollback", + "rollup", + "row", + "row_number", + "rows", + "running", + "savepoint", + "scope", + "scroll", + "search", + "second", + "seek", + "select", + "sensitive", + "session_user", + "set", + "show", + "similar", + "sin", + "sinh", + "skip", + "smallint", + "some", + "specific", + "specifictype", + "sql", + "sqlexception", + "sqlstate", + "sqlwarning", + "sqrt", + "start", + "static", + "stddev_pop", + "stddev_samp", + "submultiset", + "subset", + "substring", + "substring_regex", + "succeeds", + "sum", + "symmetric", + "system", + "system_time", + "system_user", + "table", + "tablesample", + "tan", + "tanh", + "then", + "time", + "timestamp", + "timezone_hour", + "timezone_minute", + "to", + "trailing", + "translate", + "translate_regex", + "translation", + "treat", + "trigger", + "trim", + "trim_array", + "true", + "truncate", + "uescape", + "union", + "unique", + "unknown", + "unnest", + "update", + "upper", + "user", + "using", + "value", + "values", + "value_of", + "var_pop", + "var_samp", + "varbinary", + "varchar", + "varying", + "versioning", + "when", + "whenever", + "where", + "width_bucket", + "window", + "with", + "within", + "without", + "year", + ]; + + // these are reserved words we have identified to be functions + // and should only be highlighted in a dispatch-like context + // ie, array_agg(...), etc. + const RESERVED_FUNCTIONS = [ + "abs", + "acos", + "array_agg", + "asin", + "atan", + "avg", + "cast", + "ceil", + "ceiling", + "coalesce", + "corr", + "cos", + "cosh", + "count", + "covar_pop", + "covar_samp", + "cume_dist", + "dense_rank", + "deref", + "element", + "exp", + "extract", + "first_value", + "floor", + "json_array", + "json_arrayagg", + "json_exists", + "json_object", + "json_objectagg", + "json_query", + "json_table", + "json_table_primitive", + "json_value", + "lag", + "last_value", + "lead", + "listagg", + "ln", + "log", + "log10", + "lower", + "max", + "min", + "mod", + "nth_value", + "ntile", + "nullif", + "percent_rank", + "percentile_cont", + "percentile_disc", + "position", + "position_regex", + "power", + "rank", + "regr_avgx", + "regr_avgy", + "regr_count", + "regr_intercept", + "regr_r2", + "regr_slope", + "regr_sxx", + "regr_sxy", + "regr_syy", + "row_number", + "sin", + "sinh", + "sqrt", + "stddev_pop", + "stddev_samp", + "substring", + "substring_regex", + "sum", + "tan", + "tanh", + "translate", + "translate_regex", + "treat", + "trim", + "trim_array", + "unnest", + "upper", + "value_of", + "var_pop", + "var_samp", + "width_bucket", + ]; + + // these functions can + const POSSIBLE_WITHOUT_PARENS = [ + "current_catalog", + "current_date", + "current_default_transform_group", + "current_path", + "current_role", + "current_schema", + "current_transform_group_for_type", + "current_user", + "session_user", + "system_time", + "system_user", + "current_time", + "localtime", + "current_timestamp", + "localtimestamp" + ]; + + // those exist to boost relevance making these very + // "SQL like" keyword combos worth +1 extra relevance + const COMBOS = [ + "create table", + "insert into", + "primary key", + "foreign key", + "not null", + "alter table", + "add constraint", + "grouping sets", + "on overflow", + "character set", + "respect nulls", + "ignore nulls", + "nulls first", + "nulls last", + "depth first", + "breadth first" + ]; + + const FUNCTIONS = RESERVED_FUNCTIONS; + + const KEYWORDS = [ + ...RESERVED_WORDS, + ...NON_RESERVED_WORDS + ].filter((keyword) => { + return !RESERVED_FUNCTIONS.includes(keyword); + }); + + const VARIABLE = { + scope: "variable", + match: /@[a-z0-9][a-z0-9_]*/, + }; + + const OPERATOR = { + scope: "operator", + match: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/, + relevance: 0, + }; + + const FUNCTION_CALL = { + match: regex.concat(/\b/, regex.either(...FUNCTIONS), /\s*\(/), + relevance: 0, + keywords: { built_in: FUNCTIONS } + }; + + // turns a multi-word keyword combo into a regex that doesn't + // care about extra whitespace etc. + // input: "START QUERY" + // output: /\bSTART\s+QUERY\b/ + function kws_to_regex(list) { + return regex.concat( + /\b/, + regex.either(...list.map((kw) => { + return kw.replace(/\s+/, "\\s+") + })), + /\b/ + ) + } + + const MULTI_WORD_KEYWORDS = { + scope: "keyword", + match: kws_to_regex(COMBOS), + relevance: 0, + }; + + // keywords with less than 3 letters are reduced in relevancy + function reduceRelevancy(list, { + exceptions, when + } = {}) { + const qualifyFn = when; + exceptions = exceptions || []; + return list.map((item) => { + if (item.match(/\|\d+$/) || exceptions.includes(item)) { + return item; + } else if (qualifyFn(item)) { + return `${item}|0`; + } else { + return item; + } + }); + } + + return { + name: 'SQL', + case_insensitive: true, + // does not include {} or HTML tags ` x.length < 3 }), + literal: LITERALS, + type: TYPES, + built_in: POSSIBLE_WITHOUT_PARENS + }, + contains: [ + { + scope: "type", + match: kws_to_regex(MULTI_WORD_TYPES) + }, + MULTI_WORD_KEYWORDS, + FUNCTION_CALL, + VARIABLE, + STRING, + QUOTED_IDENTIFIER, + hljs.C_NUMBER_MODE, + hljs.C_BLOCK_COMMENT_MODE, + COMMENT_MODE, + OPERATOR + ] + }; +} + +export { sql as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/sql.js.js b/tools/ui/node_modules/highlight.js/es/languages/sql.js.js new file mode 100644 index 0000000000000000000000000000000000000000..4ca696404150bb3ecdd849051644cfdc604471c1 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/sql.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/sql" instead of "highlight.js/lib/languages/sql.js"' + ); + } + } + emitWarning(); + import lang from './sql.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/stan.js b/tools/ui/node_modules/highlight.js/es/languages/stan.js new file mode 100644 index 0000000000000000000000000000000000000000..e04d411882ac85a1f29adcda29718e1c01e3895d --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/stan.js @@ -0,0 +1,521 @@ +/* +Language: Stan +Description: The Stan probabilistic programming language +Author: Sean Pinkney +Website: http://mc-stan.org/ +Category: scientific +*/ + +function stan(hljs) { + const regex = hljs.regex; + // variable names cannot conflict with block identifiers + const BLOCKS = [ + 'functions', + 'model', + 'data', + 'parameters', + 'quantities', + 'transformed', + 'generated' + ]; + + const STATEMENTS = [ + 'for', + 'in', + 'if', + 'else', + 'while', + 'break', + 'continue', + 'return' + ]; + + const TYPES = [ + 'array', + 'tuple', + 'complex', + 'int', + 'real', + 'vector', + 'complex_vector', + 'ordered', + 'positive_ordered', + 'simplex', + 'unit_vector', + 'row_vector', + 'complex_row_vector', + 'matrix', + 'complex_matrix', + 'cholesky_factor_corr|10', + 'cholesky_factor_cov|10', + 'corr_matrix|10', + 'cov_matrix|10', + 'void' + ]; + + // to get the functions list + // clone the [stan-docs repo](https://github.com/stan-dev/docs) + // then cd into it and run this bash script https://gist.github.com/joshgoebel/dcd33f82d4059a907c986049893843cf + // + // the output files are + // distributions_quoted.txt + // functions_quoted.txt + + const FUNCTIONS = [ + 'abs', + 'acos', + 'acosh', + 'add_diag', + 'algebra_solver', + 'algebra_solver_newton', + 'append_array', + 'append_col', + 'append_row', + 'asin', + 'asinh', + 'atan', + 'atan2', + 'atanh', + 'bessel_first_kind', + 'bessel_second_kind', + 'binary_log_loss', + 'block', + 'cbrt', + 'ceil', + 'chol2inv', + 'cholesky_decompose', + 'choose', + 'col', + 'cols', + 'columns_dot_product', + 'columns_dot_self', + 'complex_schur_decompose', + 'complex_schur_decompose_t', + 'complex_schur_decompose_u', + 'conj', + 'cos', + 'cosh', + 'cov_exp_quad', + 'crossprod', + 'csr_extract', + 'csr_extract_u', + 'csr_extract_v', + 'csr_extract_w', + 'csr_matrix_times_vector', + 'csr_to_dense_matrix', + 'cumulative_sum', + 'dae', + 'dae_tol', + 'determinant', + 'diag_matrix', + 'diagonal', + 'diag_post_multiply', + 'diag_pre_multiply', + 'digamma', + 'dims', + 'distance', + 'dot_product', + 'dot_self', + 'eigendecompose', + 'eigendecompose_sym', + 'eigenvalues', + 'eigenvalues_sym', + 'eigenvectors', + 'eigenvectors_sym', + 'erf', + 'erfc', + 'exp', + 'exp2', + 'expm1', + 'falling_factorial', + 'fdim', + 'fft', + 'fft2', + 'floor', + 'fma', + 'fmax', + 'fmin', + 'fmod', + 'gamma_p', + 'gamma_q', + 'generalized_inverse', + 'get_imag', + 'get_real', + 'head', + 'hmm_hidden_state_prob', + 'hmm_marginal', + 'hypot', + 'identity_matrix', + 'inc_beta', + 'integrate_1d', + 'integrate_ode', + 'integrate_ode_adams', + 'integrate_ode_bdf', + 'integrate_ode_rk45', + 'int_step', + 'inv', + 'inv_cloglog', + 'inv_erfc', + 'inverse', + 'inverse_spd', + 'inv_fft', + 'inv_fft2', + 'inv_inc_beta', + 'inv_logit', + 'inv_Phi', + 'inv_sqrt', + 'inv_square', + 'is_inf', + 'is_nan', + 'lambert_w0', + 'lambert_wm1', + 'lbeta', + 'lchoose', + 'ldexp', + 'lgamma', + 'linspaced_array', + 'linspaced_int_array', + 'linspaced_row_vector', + 'linspaced_vector', + 'lmgamma', + 'lmultiply', + 'log', + 'log1m', + 'log1m_exp', + 'log1m_inv_logit', + 'log1p', + 'log1p_exp', + 'log_determinant', + 'log_diff_exp', + 'log_falling_factorial', + 'log_inv_logit', + 'log_inv_logit_diff', + 'logit', + 'log_mix', + 'log_modified_bessel_first_kind', + 'log_rising_factorial', + 'log_softmax', + 'log_sum_exp', + 'machine_precision', + 'map_rect', + 'matrix_exp', + 'matrix_exp_multiply', + 'matrix_power', + 'max', + 'mdivide_left_spd', + 'mdivide_left_tri_low', + 'mdivide_right_spd', + 'mdivide_right_tri_low', + 'mean', + 'min', + 'modified_bessel_first_kind', + 'modified_bessel_second_kind', + 'multiply_lower_tri_self_transpose', + 'negative_infinity', + 'norm', + 'norm1', + 'norm2', + 'not_a_number', + 'num_elements', + 'ode_adams', + 'ode_adams_tol', + 'ode_adjoint_tol_ctl', + 'ode_bdf', + 'ode_bdf_tol', + 'ode_ckrk', + 'ode_ckrk_tol', + 'ode_rk45', + 'ode_rk45_tol', + 'one_hot_array', + 'one_hot_int_array', + 'one_hot_row_vector', + 'one_hot_vector', + 'ones_array', + 'ones_int_array', + 'ones_row_vector', + 'ones_vector', + 'owens_t', + 'Phi', + 'Phi_approx', + 'polar', + 'positive_infinity', + 'pow', + 'print', + 'prod', + 'proj', + 'qr', + 'qr_Q', + 'qr_R', + 'qr_thin', + 'qr_thin_Q', + 'qr_thin_R', + 'quad_form', + 'quad_form_diag', + 'quad_form_sym', + 'quantile', + 'rank', + 'reduce_sum', + 'reject', + 'rep_array', + 'rep_matrix', + 'rep_row_vector', + 'rep_vector', + 'reverse', + 'rising_factorial', + 'round', + 'row', + 'rows', + 'rows_dot_product', + 'rows_dot_self', + 'scale_matrix_exp_multiply', + 'sd', + 'segment', + 'sin', + 'singular_values', + 'sinh', + 'size', + 'softmax', + 'sort_asc', + 'sort_desc', + 'sort_indices_asc', + 'sort_indices_desc', + 'sqrt', + 'square', + 'squared_distance', + 'step', + 'sub_col', + 'sub_row', + 'sum', + 'svd', + 'svd_U', + 'svd_V', + 'symmetrize_from_lower_tri', + 'tail', + 'tan', + 'tanh', + 'target', + 'tcrossprod', + 'tgamma', + 'to_array_1d', + 'to_array_2d', + 'to_complex', + 'to_int', + 'to_matrix', + 'to_row_vector', + 'to_vector', + 'trace', + 'trace_gen_quad_form', + 'trace_quad_form', + 'trigamma', + 'trunc', + 'uniform_simplex', + 'variance', + 'zeros_array', + 'zeros_int_array', + 'zeros_row_vector' + ]; + + const DISTRIBUTIONS = [ + 'bernoulli', + 'bernoulli_logit', + 'bernoulli_logit_glm', + 'beta', + 'beta_binomial', + 'beta_proportion', + 'binomial', + 'binomial_logit', + 'categorical', + 'categorical_logit', + 'categorical_logit_glm', + 'cauchy', + 'chi_square', + 'dirichlet', + 'discrete_range', + 'double_exponential', + 'exp_mod_normal', + 'exponential', + 'frechet', + 'gamma', + 'gaussian_dlm_obs', + 'gumbel', + 'hmm_latent', + 'hypergeometric', + 'inv_chi_square', + 'inv_gamma', + 'inv_wishart', + 'inv_wishart_cholesky', + 'lkj_corr', + 'lkj_corr_cholesky', + 'logistic', + 'loglogistic', + 'lognormal', + 'multi_gp', + 'multi_gp_cholesky', + 'multinomial', + 'multinomial_logit', + 'multi_normal', + 'multi_normal_cholesky', + 'multi_normal_prec', + 'multi_student_cholesky_t', + 'multi_student_t', + 'multi_student_t_cholesky', + 'neg_binomial', + 'neg_binomial_2', + 'neg_binomial_2_log', + 'neg_binomial_2_log_glm', + 'normal', + 'normal_id_glm', + 'ordered_logistic', + 'ordered_logistic_glm', + 'ordered_probit', + 'pareto', + 'pareto_type_2', + 'poisson', + 'poisson_log', + 'poisson_log_glm', + 'rayleigh', + 'scaled_inv_chi_square', + 'skew_double_exponential', + 'skew_normal', + 'std_normal', + 'std_normal_log', + 'student_t', + 'uniform', + 'von_mises', + 'weibull', + 'wiener', + 'wishart', + 'wishart_cholesky' + ]; + + const BLOCK_COMMENT = hljs.COMMENT( + /\/\*/, + /\*\//, + { + relevance: 0, + contains: [ + { + scope: 'doctag', + match: /@(return|param)/ + } + ] + } + ); + + const INCLUDE = { + scope: 'meta', + begin: /#include\b/, + end: /$/, + contains: [ + { + match: /[a-z][a-z-._]+/, + scope: 'string' + }, + hljs.C_LINE_COMMENT_MODE + ] + }; + + const RANGE_CONSTRAINTS = [ + "lower", + "upper", + "offset", + "multiplier" + ]; + + return { + name: 'Stan', + aliases: [ 'stanfuncs' ], + keywords: { + $pattern: hljs.IDENT_RE, + title: BLOCKS, + type: TYPES, + keyword: STATEMENTS, + built_in: FUNCTIONS + }, + contains: [ + hljs.C_LINE_COMMENT_MODE, + INCLUDE, + hljs.HASH_COMMENT_MODE, + BLOCK_COMMENT, + { + scope: 'built_in', + match: /\s(pi|e|sqrt2|log2|log10)(?=\()/, + relevance: 0 + }, + { + match: regex.concat(/[<,]\s*/, regex.either(...RANGE_CONSTRAINTS), /\s*=/), + keywords: RANGE_CONSTRAINTS + }, + { + scope: 'keyword', + match: /\btarget(?=\s*\+=)/, + }, + { + // highlights the 'T' in T[,] for only Stan language distributrions + match: [ + /~\s*/, + regex.either(...DISTRIBUTIONS), + /(?:\(\))/, + /\s*T(?=\s*\[)/ + ], + scope: { + 2: "built_in", + 4: "keyword" + } + }, + { + // highlights distributions that end with special endings + scope: 'built_in', + keywords: DISTRIBUTIONS, + begin: regex.concat(/\w*/, regex.either(...DISTRIBUTIONS), /(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/) + }, + { + // highlights distributions after ~ + begin: [ + /~/, + /\s*/, + regex.concat(regex.either(...DISTRIBUTIONS), /(?=\s*[\(.*\)])/) + ], + scope: { 3: "built_in" } + }, + { + // highlights user defined distributions after ~ + begin: [ + /~/, + /\s*\w+(?=\s*[\(.*\)])/, + '(?!.*/\b(' + regex.either(...DISTRIBUTIONS) + ')\b)' + ], + scope: { 2: "title.function" } + }, + { + // highlights user defined distributions with special endings + scope: 'title.function', + begin: /\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/ + }, + { + scope: 'number', + match: regex.concat( + // Comes from @RunDevelopment accessed 11/29/2021 at + // https://github.com/PrismJS/prism/blob/c53ad2e65b7193ab4f03a1797506a54bbb33d5a2/components/prism-stan.js#L56 + + // start of big noncapture group which + // 1. gets numbers that are by themselves + // 2. numbers that are separated by _ + // 3. numbers that are separted by . + /(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/, + // grabs scientific notation + // grabs complex numbers with i + /(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/ + ), + relevance: 0 + }, + { + scope: 'string', + begin: /"/, + end: /"/ + } + ] + }; +} + +export { stan as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/stan.js.js b/tools/ui/node_modules/highlight.js/es/languages/stan.js.js new file mode 100644 index 0000000000000000000000000000000000000000..eba6eca486be1e02a33d1f01880ae70177322cff --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/stan.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/stan" instead of "highlight.js/lib/languages/stan.js"' + ); + } + } + emitWarning(); + import lang from './stan.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/stata.js b/tools/ui/node_modules/highlight.js/es/languages/stata.js new file mode 100644 index 0000000000000000000000000000000000000000..1bf06b34e79315b5c3b20a0863cee30bbf17d9da --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/stata.js @@ -0,0 +1,53 @@ +/* +Language: Stata +Author: Brian Quistorff +Contributors: Drew McDonald +Description: Stata is a general-purpose statistical software package created in 1985 by StataCorp. +Website: https://en.wikipedia.org/wiki/Stata +Category: scientific +*/ + +/* + This is a fork and modification of Drew McDonald's file (https://github.com/drewmcdonald/stata-highlighting). I have also included a list of builtin commands from https://bugs.kde.org/show_bug.cgi?id=135646. +*/ + +function stata(hljs) { + return { + name: 'Stata', + aliases: [ + 'do', + 'ado' + ], + case_insensitive: true, + keywords: 'if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5', + contains: [ + { + className: 'symbol', + begin: /`[a-zA-Z0-9_]+'/ + }, + { + className: 'variable', + begin: /\$\{?[a-zA-Z0-9_]+\}?/, + relevance: 0 + }, + { + className: 'string', + variants: [ + { begin: '`"[^\r\n]*?"\'' }, + { begin: '"[^\r\n"]*"' } + ] + }, + + { + className: 'built_in', + variants: [ { begin: '\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()' } ] + }, + + hljs.COMMENT('^[ \t]*\\*.*$', false), + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ] + }; +} + +export { stata as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/stata.js.js b/tools/ui/node_modules/highlight.js/es/languages/stata.js.js new file mode 100644 index 0000000000000000000000000000000000000000..6feb11065101046a57b2037a41fd891d2f437ef6 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/stata.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/stata" instead of "highlight.js/lib/languages/stata.js"' + ); + } + } + emitWarning(); + import lang from './stata.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/step21.js b/tools/ui/node_modules/highlight.js/es/languages/step21.js new file mode 100644 index 0000000000000000000000000000000000000000..ace2e938c7f4bcbab37d3e4af551ba7c670e1eaa --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/step21.js @@ -0,0 +1,67 @@ +/* +Language: STEP Part 21 +Contributors: Adam Joseph Cook +Description: Syntax highlighter for STEP Part 21 files (ISO 10303-21). +Website: https://en.wikipedia.org/wiki/ISO_10303-21 +Category: syntax +*/ + +function step21(hljs) { + const STEP21_IDENT_RE = '[A-Z_][A-Z0-9_.]*'; + const STEP21_KEYWORDS = { + $pattern: STEP21_IDENT_RE, + keyword: [ + "HEADER", + "ENDSEC", + "DATA" + ] + }; + const STEP21_START = { + className: 'meta', + begin: 'ISO-10303-21;', + relevance: 10 + }; + const STEP21_CLOSE = { + className: 'meta', + begin: 'END-ISO-10303-21;', + relevance: 10 + }; + + return { + name: 'STEP Part 21', + aliases: [ + 'p21', + 'step', + 'stp' + ], + case_insensitive: true, // STEP 21 is case insensitive in theory, in practice all non-comments are capitalized. + keywords: STEP21_KEYWORDS, + contains: [ + STEP21_START, + STEP21_CLOSE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + hljs.COMMENT('/\\*\\*!', '\\*/'), + hljs.C_NUMBER_MODE, + hljs.inherit(hljs.APOS_STRING_MODE, { illegal: null }), + hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }), + { + className: 'string', + begin: "'", + end: "'" + }, + { + className: 'symbol', + variants: [ + { + begin: '#', + end: '\\d+', + illegal: '\\W' + } + ] + } + ] + }; +} + +export { step21 as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/step21.js.js b/tools/ui/node_modules/highlight.js/es/languages/step21.js.js new file mode 100644 index 0000000000000000000000000000000000000000..c6cd327696282e038862c9491798aea6c1b7c2aa --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/step21.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/step21" instead of "highlight.js/lib/languages/step21.js"' + ); + } + } + emitWarning(); + import lang from './step21.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/stylus.js b/tools/ui/node_modules/highlight.js/es/languages/stylus.js new file mode 100644 index 0000000000000000000000000000000000000000..bd3f7999b6f3d9799255e53a780594c959ff2ba1 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/stylus.js @@ -0,0 +1,999 @@ +const MODES = (hljs) => { + return { + IMPORTANT: { + scope: 'meta', + begin: '!important' + }, + BLOCK_COMMENT: hljs.C_BLOCK_COMMENT_MODE, + HEXCOLOR: { + scope: 'number', + begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ + }, + FUNCTION_DISPATCH: { + className: "built_in", + begin: /[\w-]+(?=\()/ + }, + ATTRIBUTE_SELECTOR_MODE: { + scope: 'selector-attr', + begin: /\[/, + end: /\]/, + illegal: '$', + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE + ] + }, + CSS_NUMBER_MODE: { + scope: 'number', + begin: hljs.NUMBER_RE + '(' + + '%|em|ex|ch|rem' + + '|vw|vh|vmin|vmax' + + '|cm|mm|in|pt|pc|px' + + '|deg|grad|rad|turn' + + '|s|ms' + + '|Hz|kHz' + + '|dpi|dpcm|dppx' + + ')?', + relevance: 0 + }, + CSS_VARIABLE: { + className: "attr", + begin: /--[A-Za-z_][A-Za-z0-9_-]*/ + } + }; +}; + +const HTML_TAGS = [ + 'a', + 'abbr', + 'address', + 'article', + 'aside', + 'audio', + 'b', + 'blockquote', + 'body', + 'button', + 'canvas', + 'caption', + 'cite', + 'code', + 'dd', + 'del', + 'details', + 'dfn', + 'div', + 'dl', + 'dt', + 'em', + 'fieldset', + 'figcaption', + 'figure', + 'footer', + 'form', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'header', + 'hgroup', + 'html', + 'i', + 'iframe', + 'img', + 'input', + 'ins', + 'kbd', + 'label', + 'legend', + 'li', + 'main', + 'mark', + 'menu', + 'nav', + 'object', + 'ol', + 'optgroup', + 'option', + 'p', + 'picture', + 'q', + 'quote', + 'samp', + 'section', + 'select', + 'source', + 'span', + 'strong', + 'summary', + 'sup', + 'table', + 'tbody', + 'td', + 'textarea', + 'tfoot', + 'th', + 'thead', + 'time', + 'tr', + 'ul', + 'var', + 'video' +]; + +const SVG_TAGS = [ + 'defs', + 'g', + 'marker', + 'mask', + 'pattern', + 'svg', + 'switch', + 'symbol', + 'feBlend', + 'feColorMatrix', + 'feComponentTransfer', + 'feComposite', + 'feConvolveMatrix', + 'feDiffuseLighting', + 'feDisplacementMap', + 'feFlood', + 'feGaussianBlur', + 'feImage', + 'feMerge', + 'feMorphology', + 'feOffset', + 'feSpecularLighting', + 'feTile', + 'feTurbulence', + 'linearGradient', + 'radialGradient', + 'stop', + 'circle', + 'ellipse', + 'image', + 'line', + 'path', + 'polygon', + 'polyline', + 'rect', + 'text', + 'use', + 'textPath', + 'tspan', + 'foreignObject', + 'clipPath' +]; + +const TAGS = [ + ...HTML_TAGS, + ...SVG_TAGS, +]; + +// Sorting, then reversing makes sure longer attributes/elements like +// `font-weight` are matched fully instead of getting false positives on say `font` + +const MEDIA_FEATURES = [ + 'any-hover', + 'any-pointer', + 'aspect-ratio', + 'color', + 'color-gamut', + 'color-index', + 'device-aspect-ratio', + 'device-height', + 'device-width', + 'display-mode', + 'forced-colors', + 'grid', + 'height', + 'hover', + 'inverted-colors', + 'monochrome', + 'orientation', + 'overflow-block', + 'overflow-inline', + 'pointer', + 'prefers-color-scheme', + 'prefers-contrast', + 'prefers-reduced-motion', + 'prefers-reduced-transparency', + 'resolution', + 'scan', + 'scripting', + 'update', + 'width', + // TODO: find a better solution? + 'min-width', + 'max-width', + 'min-height', + 'max-height' +].sort().reverse(); + +// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes +const PSEUDO_CLASSES = [ + 'active', + 'any-link', + 'blank', + 'checked', + 'current', + 'default', + 'defined', + 'dir', // dir() + 'disabled', + 'drop', + 'empty', + 'enabled', + 'first', + 'first-child', + 'first-of-type', + 'fullscreen', + 'future', + 'focus', + 'focus-visible', + 'focus-within', + 'has', // has() + 'host', // host or host() + 'host-context', // host-context() + 'hover', + 'indeterminate', + 'in-range', + 'invalid', + 'is', // is() + 'lang', // lang() + 'last-child', + 'last-of-type', + 'left', + 'link', + 'local-link', + 'not', // not() + 'nth-child', // nth-child() + 'nth-col', // nth-col() + 'nth-last-child', // nth-last-child() + 'nth-last-col', // nth-last-col() + 'nth-last-of-type', //nth-last-of-type() + 'nth-of-type', //nth-of-type() + 'only-child', + 'only-of-type', + 'optional', + 'out-of-range', + 'past', + 'placeholder-shown', + 'read-only', + 'read-write', + 'required', + 'right', + 'root', + 'scope', + 'target', + 'target-within', + 'user-invalid', + 'valid', + 'visited', + 'where' // where() +].sort().reverse(); + +// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements +const PSEUDO_ELEMENTS = [ + 'after', + 'backdrop', + 'before', + 'cue', + 'cue-region', + 'first-letter', + 'first-line', + 'grammar-error', + 'marker', + 'part', + 'placeholder', + 'selection', + 'slotted', + 'spelling-error' +].sort().reverse(); + +const ATTRIBUTES = [ + 'accent-color', + 'align-content', + 'align-items', + 'align-self', + 'alignment-baseline', + 'all', + 'anchor-name', + 'animation', + 'animation-composition', + 'animation-delay', + 'animation-direction', + 'animation-duration', + 'animation-fill-mode', + 'animation-iteration-count', + 'animation-name', + 'animation-play-state', + 'animation-range', + 'animation-range-end', + 'animation-range-start', + 'animation-timeline', + 'animation-timing-function', + 'appearance', + 'aspect-ratio', + 'backdrop-filter', + 'backface-visibility', + 'background', + 'background-attachment', + 'background-blend-mode', + 'background-clip', + 'background-color', + 'background-image', + 'background-origin', + 'background-position', + 'background-position-x', + 'background-position-y', + 'background-repeat', + 'background-size', + 'baseline-shift', + 'block-size', + 'border', + 'border-block', + 'border-block-color', + 'border-block-end', + 'border-block-end-color', + 'border-block-end-style', + 'border-block-end-width', + 'border-block-start', + 'border-block-start-color', + 'border-block-start-style', + 'border-block-start-width', + 'border-block-style', + 'border-block-width', + 'border-bottom', + 'border-bottom-color', + 'border-bottom-left-radius', + 'border-bottom-right-radius', + 'border-bottom-style', + 'border-bottom-width', + 'border-collapse', + 'border-color', + 'border-end-end-radius', + 'border-end-start-radius', + 'border-image', + 'border-image-outset', + 'border-image-repeat', + 'border-image-slice', + 'border-image-source', + 'border-image-width', + 'border-inline', + 'border-inline-color', + 'border-inline-end', + 'border-inline-end-color', + 'border-inline-end-style', + 'border-inline-end-width', + 'border-inline-start', + 'border-inline-start-color', + 'border-inline-start-style', + 'border-inline-start-width', + 'border-inline-style', + 'border-inline-width', + 'border-left', + 'border-left-color', + 'border-left-style', + 'border-left-width', + 'border-radius', + 'border-right', + 'border-right-color', + 'border-right-style', + 'border-right-width', + 'border-spacing', + 'border-start-end-radius', + 'border-start-start-radius', + 'border-style', + 'border-top', + 'border-top-color', + 'border-top-left-radius', + 'border-top-right-radius', + 'border-top-style', + 'border-top-width', + 'border-width', + 'bottom', + 'box-align', + 'box-decoration-break', + 'box-direction', + 'box-flex', + 'box-flex-group', + 'box-lines', + 'box-ordinal-group', + 'box-orient', + 'box-pack', + 'box-shadow', + 'box-sizing', + 'break-after', + 'break-before', + 'break-inside', + 'caption-side', + 'caret-color', + 'clear', + 'clip', + 'clip-path', + 'clip-rule', + 'color', + 'color-interpolation', + 'color-interpolation-filters', + 'color-profile', + 'color-rendering', + 'color-scheme', + 'column-count', + 'column-fill', + 'column-gap', + 'column-rule', + 'column-rule-color', + 'column-rule-style', + 'column-rule-width', + 'column-span', + 'column-width', + 'columns', + 'contain', + 'contain-intrinsic-block-size', + 'contain-intrinsic-height', + 'contain-intrinsic-inline-size', + 'contain-intrinsic-size', + 'contain-intrinsic-width', + 'container', + 'container-name', + 'container-type', + 'content', + 'content-visibility', + 'counter-increment', + 'counter-reset', + 'counter-set', + 'cue', + 'cue-after', + 'cue-before', + 'cursor', + 'cx', + 'cy', + 'direction', + 'display', + 'dominant-baseline', + 'empty-cells', + 'enable-background', + 'field-sizing', + 'fill', + 'fill-opacity', + 'fill-rule', + 'filter', + 'flex', + 'flex-basis', + 'flex-direction', + 'flex-flow', + 'flex-grow', + 'flex-shrink', + 'flex-wrap', + 'float', + 'flood-color', + 'flood-opacity', + 'flow', + 'font', + 'font-display', + 'font-family', + 'font-feature-settings', + 'font-kerning', + 'font-language-override', + 'font-optical-sizing', + 'font-palette', + 'font-size', + 'font-size-adjust', + 'font-smooth', + 'font-smoothing', + 'font-stretch', + 'font-style', + 'font-synthesis', + 'font-synthesis-position', + 'font-synthesis-small-caps', + 'font-synthesis-style', + 'font-synthesis-weight', + 'font-variant', + 'font-variant-alternates', + 'font-variant-caps', + 'font-variant-east-asian', + 'font-variant-emoji', + 'font-variant-ligatures', + 'font-variant-numeric', + 'font-variant-position', + 'font-variation-settings', + 'font-weight', + 'forced-color-adjust', + 'gap', + 'glyph-orientation-horizontal', + 'glyph-orientation-vertical', + 'grid', + 'grid-area', + 'grid-auto-columns', + 'grid-auto-flow', + 'grid-auto-rows', + 'grid-column', + 'grid-column-end', + 'grid-column-start', + 'grid-gap', + 'grid-row', + 'grid-row-end', + 'grid-row-start', + 'grid-template', + 'grid-template-areas', + 'grid-template-columns', + 'grid-template-rows', + 'hanging-punctuation', + 'height', + 'hyphenate-character', + 'hyphenate-limit-chars', + 'hyphens', + 'icon', + 'image-orientation', + 'image-rendering', + 'image-resolution', + 'ime-mode', + 'initial-letter', + 'initial-letter-align', + 'inline-size', + 'inset', + 'inset-area', + 'inset-block', + 'inset-block-end', + 'inset-block-start', + 'inset-inline', + 'inset-inline-end', + 'inset-inline-start', + 'isolation', + 'justify-content', + 'justify-items', + 'justify-self', + 'kerning', + 'left', + 'letter-spacing', + 'lighting-color', + 'line-break', + 'line-height', + 'line-height-step', + 'list-style', + 'list-style-image', + 'list-style-position', + 'list-style-type', + 'margin', + 'margin-block', + 'margin-block-end', + 'margin-block-start', + 'margin-bottom', + 'margin-inline', + 'margin-inline-end', + 'margin-inline-start', + 'margin-left', + 'margin-right', + 'margin-top', + 'margin-trim', + 'marker', + 'marker-end', + 'marker-mid', + 'marker-start', + 'marks', + 'mask', + 'mask-border', + 'mask-border-mode', + 'mask-border-outset', + 'mask-border-repeat', + 'mask-border-slice', + 'mask-border-source', + 'mask-border-width', + 'mask-clip', + 'mask-composite', + 'mask-image', + 'mask-mode', + 'mask-origin', + 'mask-position', + 'mask-repeat', + 'mask-size', + 'mask-type', + 'masonry-auto-flow', + 'math-depth', + 'math-shift', + 'math-style', + 'max-block-size', + 'max-height', + 'max-inline-size', + 'max-width', + 'min-block-size', + 'min-height', + 'min-inline-size', + 'min-width', + 'mix-blend-mode', + 'nav-down', + 'nav-index', + 'nav-left', + 'nav-right', + 'nav-up', + 'none', + 'normal', + 'object-fit', + 'object-position', + 'offset', + 'offset-anchor', + 'offset-distance', + 'offset-path', + 'offset-position', + 'offset-rotate', + 'opacity', + 'order', + 'orphans', + 'outline', + 'outline-color', + 'outline-offset', + 'outline-style', + 'outline-width', + 'overflow', + 'overflow-anchor', + 'overflow-block', + 'overflow-clip-margin', + 'overflow-inline', + 'overflow-wrap', + 'overflow-x', + 'overflow-y', + 'overlay', + 'overscroll-behavior', + 'overscroll-behavior-block', + 'overscroll-behavior-inline', + 'overscroll-behavior-x', + 'overscroll-behavior-y', + 'padding', + 'padding-block', + 'padding-block-end', + 'padding-block-start', + 'padding-bottom', + 'padding-inline', + 'padding-inline-end', + 'padding-inline-start', + 'padding-left', + 'padding-right', + 'padding-top', + 'page', + 'page-break-after', + 'page-break-before', + 'page-break-inside', + 'paint-order', + 'pause', + 'pause-after', + 'pause-before', + 'perspective', + 'perspective-origin', + 'place-content', + 'place-items', + 'place-self', + 'pointer-events', + 'position', + 'position-anchor', + 'position-visibility', + 'print-color-adjust', + 'quotes', + 'r', + 'resize', + 'rest', + 'rest-after', + 'rest-before', + 'right', + 'rotate', + 'row-gap', + 'ruby-align', + 'ruby-position', + 'scale', + 'scroll-behavior', + 'scroll-margin', + 'scroll-margin-block', + 'scroll-margin-block-end', + 'scroll-margin-block-start', + 'scroll-margin-bottom', + 'scroll-margin-inline', + 'scroll-margin-inline-end', + 'scroll-margin-inline-start', + 'scroll-margin-left', + 'scroll-margin-right', + 'scroll-margin-top', + 'scroll-padding', + 'scroll-padding-block', + 'scroll-padding-block-end', + 'scroll-padding-block-start', + 'scroll-padding-bottom', + 'scroll-padding-inline', + 'scroll-padding-inline-end', + 'scroll-padding-inline-start', + 'scroll-padding-left', + 'scroll-padding-right', + 'scroll-padding-top', + 'scroll-snap-align', + 'scroll-snap-stop', + 'scroll-snap-type', + 'scroll-timeline', + 'scroll-timeline-axis', + 'scroll-timeline-name', + 'scrollbar-color', + 'scrollbar-gutter', + 'scrollbar-width', + 'shape-image-threshold', + 'shape-margin', + 'shape-outside', + 'shape-rendering', + 'speak', + 'speak-as', + 'src', // @font-face + 'stop-color', + 'stop-opacity', + 'stroke', + 'stroke-dasharray', + 'stroke-dashoffset', + 'stroke-linecap', + 'stroke-linejoin', + 'stroke-miterlimit', + 'stroke-opacity', + 'stroke-width', + 'tab-size', + 'table-layout', + 'text-align', + 'text-align-all', + 'text-align-last', + 'text-anchor', + 'text-combine-upright', + 'text-decoration', + 'text-decoration-color', + 'text-decoration-line', + 'text-decoration-skip', + 'text-decoration-skip-ink', + 'text-decoration-style', + 'text-decoration-thickness', + 'text-emphasis', + 'text-emphasis-color', + 'text-emphasis-position', + 'text-emphasis-style', + 'text-indent', + 'text-justify', + 'text-orientation', + 'text-overflow', + 'text-rendering', + 'text-shadow', + 'text-size-adjust', + 'text-transform', + 'text-underline-offset', + 'text-underline-position', + 'text-wrap', + 'text-wrap-mode', + 'text-wrap-style', + 'timeline-scope', + 'top', + 'touch-action', + 'transform', + 'transform-box', + 'transform-origin', + 'transform-style', + 'transition', + 'transition-behavior', + 'transition-delay', + 'transition-duration', + 'transition-property', + 'transition-timing-function', + 'translate', + 'unicode-bidi', + 'user-modify', + 'user-select', + 'vector-effect', + 'vertical-align', + 'view-timeline', + 'view-timeline-axis', + 'view-timeline-inset', + 'view-timeline-name', + 'view-transition-name', + 'visibility', + 'voice-balance', + 'voice-duration', + 'voice-family', + 'voice-pitch', + 'voice-range', + 'voice-rate', + 'voice-stress', + 'voice-volume', + 'white-space', + 'white-space-collapse', + 'widows', + 'width', + 'will-change', + 'word-break', + 'word-spacing', + 'word-wrap', + 'writing-mode', + 'x', + 'y', + 'z-index', + 'zoom' +].sort().reverse(); + +/* +Language: Stylus +Author: Bryant Williams +Description: Stylus is an expressive, robust, feature-rich CSS language built for nodejs. +Website: https://github.com/stylus/stylus +Category: css, web +*/ + + +/** @type LanguageFn */ +function stylus(hljs) { + const modes = MODES(hljs); + + const AT_MODIFIERS = "and or not only"; + const VARIABLE = { + className: 'variable', + begin: '\\$' + hljs.IDENT_RE + }; + + const AT_KEYWORDS = [ + 'charset', + 'css', + 'debug', + 'extend', + 'font-face', + 'for', + 'import', + 'include', + 'keyframes', + 'media', + 'mixin', + 'page', + 'warn', + 'while' + ]; + + const LOOKAHEAD_TAG_END = '(?=[.\\s\\n[:,(])'; + + // illegals + const ILLEGAL = [ + '\\?', + '(\\bReturn\\b)', // monkey + '(\\bEnd\\b)', // monkey + '(\\bend\\b)', // vbscript + '(\\bdef\\b)', // gradle + ';', // a whole lot of languages + '#\\s', // markdown + '\\*\\s', // markdown + '===\\s', // markdown + '\\|', + '%' // prolog + ]; + + return { + name: 'Stylus', + aliases: [ 'styl' ], + case_insensitive: false, + keywords: 'if else for in', + illegal: '(' + ILLEGAL.join('|') + ')', + contains: [ + + // strings + hljs.QUOTE_STRING_MODE, + hljs.APOS_STRING_MODE, + + // comments + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + + // hex colors + modes.HEXCOLOR, + + // class tag + { + begin: '\\.[a-zA-Z][a-zA-Z0-9_-]*' + LOOKAHEAD_TAG_END, + className: 'selector-class' + }, + + // id tag + { + begin: '#[a-zA-Z][a-zA-Z0-9_-]*' + LOOKAHEAD_TAG_END, + className: 'selector-id' + }, + + // tags + { + begin: '\\b(' + TAGS.join('|') + ')' + LOOKAHEAD_TAG_END, + className: 'selector-tag' + }, + + // psuedo selectors + { + className: 'selector-pseudo', + begin: '&?:(' + PSEUDO_CLASSES.join('|') + ')' + LOOKAHEAD_TAG_END + }, + { + className: 'selector-pseudo', + begin: '&?:(:)?(' + PSEUDO_ELEMENTS.join('|') + ')' + LOOKAHEAD_TAG_END + }, + + modes.ATTRIBUTE_SELECTOR_MODE, + + { + className: "keyword", + begin: /@media/, + starts: { + end: /[{;}]/, + keywords: { + $pattern: /[a-z-]+/, + keyword: AT_MODIFIERS, + attribute: MEDIA_FEATURES.join(" ") + }, + contains: [ modes.CSS_NUMBER_MODE ] + } + }, + + // @ keywords + { + className: 'keyword', + begin: '\@((-(o|moz|ms|webkit)-)?(' + AT_KEYWORDS.join('|') + '))\\b' + }, + + // variables + VARIABLE, + + // dimension + modes.CSS_NUMBER_MODE, + + // functions + // - only from beginning of line + whitespace + { + className: 'function', + begin: '^[a-zA-Z][a-zA-Z0-9_\-]*\\(.*\\)', + illegal: '[\\n]', + returnBegin: true, + contains: [ + { + className: 'title', + begin: '\\b[a-zA-Z][a-zA-Z0-9_\-]*' + }, + { + className: 'params', + begin: /\(/, + end: /\)/, + contains: [ + modes.HEXCOLOR, + VARIABLE, + hljs.APOS_STRING_MODE, + modes.CSS_NUMBER_MODE, + hljs.QUOTE_STRING_MODE + ] + } + ] + }, + + // css variables + modes.CSS_VARIABLE, + + // attributes + // - only from beginning of line + whitespace + // - must have whitespace after it + { + className: 'attribute', + begin: '\\b(' + ATTRIBUTES.join('|') + ')\\b', + starts: { + // value container + end: /;|$/, + contains: [ + modes.HEXCOLOR, + VARIABLE, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + modes.CSS_NUMBER_MODE, + hljs.C_BLOCK_COMMENT_MODE, + modes.IMPORTANT, + modes.FUNCTION_DISPATCH + ], + illegal: /\./, + relevance: 0 + } + }, + modes.FUNCTION_DISPATCH + ] + }; +} + +export { stylus as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/stylus.js.js b/tools/ui/node_modules/highlight.js/es/languages/stylus.js.js new file mode 100644 index 0000000000000000000000000000000000000000..7a087ed5974c162e3659559d945fc4ef8e943bfb --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/stylus.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/stylus" instead of "highlight.js/lib/languages/stylus.js"' + ); + } + } + emitWarning(); + import lang from './stylus.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/subunit.js b/tools/ui/node_modules/highlight.js/es/languages/subunit.js new file mode 100644 index 0000000000000000000000000000000000000000..eae9165b5a3d752df54a731f1ad24330ce5e9963 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/subunit.js @@ -0,0 +1,44 @@ +/* +Language: SubUnit +Author: Sergey Bronnikov +Website: https://pypi.org/project/python-subunit/ +Category: protocols +*/ + +function subunit(hljs) { + const DETAILS = { + className: 'string', + begin: '\\[\n(multipart)?', + end: '\\]\n' + }; + const TIME = { + className: 'string', + begin: '\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}\.\\d+Z' + }; + const PROGRESSVALUE = { + className: 'string', + begin: '(\\+|-)\\d+' + }; + const KEYWORDS = { + className: 'keyword', + relevance: 10, + variants: [ + { begin: '^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?' }, + { begin: '^progress(:?)(\\s+)?(pop|push)?' }, + { begin: '^tags:' }, + { begin: '^time:' } + ] + }; + return { + name: 'SubUnit', + case_insensitive: true, + contains: [ + DETAILS, + TIME, + PROGRESSVALUE, + KEYWORDS + ] + }; +} + +export { subunit as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/subunit.js.js b/tools/ui/node_modules/highlight.js/es/languages/subunit.js.js new file mode 100644 index 0000000000000000000000000000000000000000..d9c15dacef113e30751a42f5c73d1bb4ffd23dd7 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/subunit.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/subunit" instead of "highlight.js/lib/languages/subunit.js"' + ); + } + } + emitWarning(); + import lang from './subunit.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/swift.js b/tools/ui/node_modules/highlight.js/es/languages/swift.js new file mode 100644 index 0000000000000000000000000000000000000000..c4120ace754269f477869ef981d34a54d50dc227 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/swift.js @@ -0,0 +1,972 @@ +/** + * @param {string} value + * @returns {RegExp} + * */ + +/** + * @param {RegExp | string } re + * @returns {string} + */ +function source(re) { + if (!re) return null; + if (typeof re === "string") return re; + + return re.source; +} + +/** + * @param {RegExp | string } re + * @returns {string} + */ +function lookahead(re) { + return concat('(?=', re, ')'); +} + +/** + * @param {...(RegExp | string) } args + * @returns {string} + */ +function concat(...args) { + const joined = args.map((x) => source(x)).join(""); + return joined; +} + +/** + * @param { Array } args + * @returns {object} + */ +function stripOptionsFromArgs(args) { + const opts = args[args.length - 1]; + + if (typeof opts === 'object' && opts.constructor === Object) { + args.splice(args.length - 1, 1); + return opts; + } else { + return {}; + } +} + +/** @typedef { {capture?: boolean} } RegexEitherOptions */ + +/** + * Any of the passed expresssions may match + * + * Creates a huge this | this | that | that match + * @param {(RegExp | string)[] | [...(RegExp | string)[], RegexEitherOptions]} args + * @returns {string} + */ +function either(...args) { + /** @type { object & {capture?: boolean} } */ + const opts = stripOptionsFromArgs(args); + const joined = '(' + + (opts.capture ? "" : "?:") + + args.map((x) => source(x)).join("|") + ")"; + return joined; +} + +const keywordWrapper = keyword => concat( + /\b/, + keyword, + /\w$/.test(keyword) ? /\b/ : /\B/ +); + +// Keywords that require a leading dot. +const dotKeywords = [ + 'Protocol', // contextual + 'Type' // contextual +].map(keywordWrapper); + +// Keywords that may have a leading dot. +const optionalDotKeywords = [ + 'init', + 'self' +].map(keywordWrapper); + +// should register as keyword, not type +const keywordTypes = [ + 'Any', + 'Self' +]; + +// Regular keywords and literals. +const keywords = [ + // strings below will be fed into the regular `keywords` engine while regex + // will result in additional modes being created to scan for those keywords to + // avoid conflicts with other rules + 'actor', + 'any', // contextual + 'associatedtype', + 'async', + 'await', + /as\?/, // operator + /as!/, // operator + 'as', // operator + 'borrowing', // contextual + 'break', + 'case', + 'catch', + 'class', + 'consume', // contextual + 'consuming', // contextual + 'continue', + 'convenience', // contextual + 'copy', // contextual + 'default', + 'defer', + 'deinit', + 'didSet', // contextual + 'distributed', + 'do', + 'dynamic', // contextual + 'each', + 'else', + 'enum', + 'extension', + 'fallthrough', + /fileprivate\(set\)/, + 'fileprivate', + 'final', // contextual + 'for', + 'func', + 'get', // contextual + 'guard', + 'if', + 'import', + 'indirect', // contextual + 'infix', // contextual + /init\?/, + /init!/, + 'inout', + /internal\(set\)/, + 'internal', + 'in', + 'is', // operator + 'isolated', // contextual + 'nonisolated', // contextual + 'lazy', // contextual + 'let', + 'macro', + 'mutating', // contextual + 'nonmutating', // contextual + /open\(set\)/, // contextual + 'open', // contextual + 'operator', + 'optional', // contextual + 'override', // contextual + 'package', + 'postfix', // contextual + 'precedencegroup', + 'prefix', // contextual + /private\(set\)/, + 'private', + 'protocol', + /public\(set\)/, + 'public', + 'repeat', + 'required', // contextual + 'rethrows', + 'return', + 'set', // contextual + 'some', // contextual + 'static', + 'struct', + 'subscript', + 'super', + 'switch', + 'throws', + 'throw', + /try\?/, // operator + /try!/, // operator + 'try', // operator + 'typealias', + /unowned\(safe\)/, // contextual + /unowned\(unsafe\)/, // contextual + 'unowned', // contextual + 'var', + 'weak', // contextual + 'where', + 'while', + 'willSet' // contextual +]; + +// NOTE: Contextual keywords are reserved only in specific contexts. +// Ideally, these should be matched using modes to avoid false positives. + +// Literals. +const literals = [ + 'false', + 'nil', + 'true' +]; + +// Keywords used in precedence groups. +const precedencegroupKeywords = [ + 'assignment', + 'associativity', + 'higherThan', + 'left', + 'lowerThan', + 'none', + 'right' +]; + +// Keywords that start with a number sign (#). +// #(un)available is handled separately. +const numberSignKeywords = [ + '#colorLiteral', + '#column', + '#dsohandle', + '#else', + '#elseif', + '#endif', + '#error', + '#file', + '#fileID', + '#fileLiteral', + '#filePath', + '#function', + '#if', + '#imageLiteral', + '#keyPath', + '#line', + '#selector', + '#sourceLocation', + '#warning' +]; + +// Global functions in the Standard Library. +const builtIns = [ + 'abs', + 'all', + 'any', + 'assert', + 'assertionFailure', + 'debugPrint', + 'dump', + 'fatalError', + 'getVaList', + 'isKnownUniquelyReferenced', + 'max', + 'min', + 'numericCast', + 'pointwiseMax', + 'pointwiseMin', + 'precondition', + 'preconditionFailure', + 'print', + 'readLine', + 'repeatElement', + 'sequence', + 'stride', + 'swap', + 'swift_unboxFromSwiftValueWithType', + 'transcode', + 'type', + 'unsafeBitCast', + 'unsafeDowncast', + 'withExtendedLifetime', + 'withUnsafeMutablePointer', + 'withUnsafePointer', + 'withVaList', + 'withoutActuallyEscaping', + 'zip' +]; + +// Valid first characters for operators. +const operatorHead = either( + /[/=\-+!*%<>&|^~?]/, + /[\u00A1-\u00A7]/, + /[\u00A9\u00AB]/, + /[\u00AC\u00AE]/, + /[\u00B0\u00B1]/, + /[\u00B6\u00BB\u00BF\u00D7\u00F7]/, + /[\u2016-\u2017]/, + /[\u2020-\u2027]/, + /[\u2030-\u203E]/, + /[\u2041-\u2053]/, + /[\u2055-\u205E]/, + /[\u2190-\u23FF]/, + /[\u2500-\u2775]/, + /[\u2794-\u2BFF]/, + /[\u2E00-\u2E7F]/, + /[\u3001-\u3003]/, + /[\u3008-\u3020]/, + /[\u3030]/ +); + +// Valid characters for operators. +const operatorCharacter = either( + operatorHead, + /[\u0300-\u036F]/, + /[\u1DC0-\u1DFF]/, + /[\u20D0-\u20FF]/, + /[\uFE00-\uFE0F]/, + /[\uFE20-\uFE2F]/ + // TODO: The following characters are also allowed, but the regex isn't supported yet. + // /[\u{E0100}-\u{E01EF}]/u +); + +// Valid operator. +const operator = concat(operatorHead, operatorCharacter, '*'); + +// Valid first characters for identifiers. +const identifierHead = either( + /[a-zA-Z_]/, + /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/, + /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/, + /[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/, + /[\u1E00-\u1FFF]/, + /[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/, + /[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/, + /[\u2C00-\u2DFF\u2E80-\u2FFF]/, + /[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/, + /[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/, + /[\uFE47-\uFEFE\uFF00-\uFFFD]/ // Should be /[\uFE47-\uFFFD]/, but we have to exclude FEFF. + // The following characters are also allowed, but the regexes aren't supported yet. + // /[\u{10000}-\u{1FFFD}\u{20000-\u{2FFFD}\u{30000}-\u{3FFFD}\u{40000}-\u{4FFFD}]/u, + // /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u, + // /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u, + // /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u +); + +// Valid characters for identifiers. +const identifierCharacter = either( + identifierHead, + /\d/, + /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/ +); + +// Valid identifier. +const identifier = concat(identifierHead, identifierCharacter, '*'); + +// Valid type identifier. +const typeIdentifier = concat(/[A-Z]/, identifierCharacter, '*'); + +// Built-in attributes, which are highlighted as keywords. +// @available is handled separately. +// https://docs.swift.org/swift-book/documentation/the-swift-programming-language/attributes +const keywordAttributes = [ + 'attached', + 'autoclosure', + concat(/convention\(/, either('swift', 'block', 'c'), /\)/), + 'discardableResult', + 'dynamicCallable', + 'dynamicMemberLookup', + 'escaping', + 'freestanding', + 'frozen', + 'GKInspectable', + 'IBAction', + 'IBDesignable', + 'IBInspectable', + 'IBOutlet', + 'IBSegueAction', + 'inlinable', + 'main', + 'nonobjc', + 'NSApplicationMain', + 'NSCopying', + 'NSManaged', + concat(/objc\(/, identifier, /\)/), + 'objc', + 'objcMembers', + 'propertyWrapper', + 'requires_stored_property_inits', + 'resultBuilder', + 'Sendable', + 'testable', + 'UIApplicationMain', + 'unchecked', + 'unknown', + 'usableFromInline', + 'warn_unqualified_access' +]; + +// Contextual keywords used in @available and #(un)available. +const availabilityKeywords = [ + 'iOS', + 'iOSApplicationExtension', + 'macOS', + 'macOSApplicationExtension', + 'macCatalyst', + 'macCatalystApplicationExtension', + 'watchOS', + 'watchOSApplicationExtension', + 'tvOS', + 'tvOSApplicationExtension', + 'swift' +]; + +/* +Language: Swift +Description: Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns. +Author: Steven Van Impe +Contributors: Chris Eidhof , Nate Cook , Alexander Lichter , Richard Gibson +Website: https://swift.org +Category: common, system +*/ + + +/** @type LanguageFn */ +function swift(hljs) { + const WHITESPACE = { + match: /\s+/, + relevance: 0 + }; + // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID411 + const BLOCK_COMMENT = hljs.COMMENT( + '/\\*', + '\\*/', + { contains: [ 'self' ] } + ); + const COMMENTS = [ + hljs.C_LINE_COMMENT_MODE, + BLOCK_COMMENT + ]; + + // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID413 + // https://docs.swift.org/swift-book/ReferenceManual/zzSummaryOfTheGrammar.html + const DOT_KEYWORD = { + match: [ + /\./, + either(...dotKeywords, ...optionalDotKeywords) + ], + className: { 2: "keyword" } + }; + const KEYWORD_GUARD = { + // Consume .keyword to prevent highlighting properties and methods as keywords. + match: concat(/\./, either(...keywords)), + relevance: 0 + }; + const PLAIN_KEYWORDS = keywords + .filter(kw => typeof kw === 'string') + .concat([ "_|0" ]); // seems common, so 0 relevance + const REGEX_KEYWORDS = keywords + .filter(kw => typeof kw !== 'string') // find regex + .concat(keywordTypes) + .map(keywordWrapper); + const KEYWORD = { variants: [ + { + className: 'keyword', + match: either(...REGEX_KEYWORDS, ...optionalDotKeywords) + } + ] }; + // find all the regular keywords + const KEYWORDS = { + $pattern: either( + /\b\w+/, // regular keywords + /#\w+/ // number keywords + ), + keyword: PLAIN_KEYWORDS + .concat(numberSignKeywords), + literal: literals + }; + const KEYWORD_MODES = [ + DOT_KEYWORD, + KEYWORD_GUARD, + KEYWORD + ]; + + // https://github.com/apple/swift/tree/main/stdlib/public/core + const BUILT_IN_GUARD = { + // Consume .built_in to prevent highlighting properties and methods. + match: concat(/\./, either(...builtIns)), + relevance: 0 + }; + const BUILT_IN = { + className: 'built_in', + match: concat(/\b/, either(...builtIns), /(?=\()/) + }; + const BUILT_INS = [ + BUILT_IN_GUARD, + BUILT_IN + ]; + + // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID418 + const OPERATOR_GUARD = { + // Prevent -> from being highlighting as an operator. + match: /->/, + relevance: 0 + }; + const OPERATOR = { + className: 'operator', + relevance: 0, + variants: [ + { match: operator }, + { + // dot-operator: only operators that start with a dot are allowed to use dots as + // characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more + // characters that may also include dots. + match: `\\.(\\.|${operatorCharacter})+` } + ] + }; + const OPERATORS = [ + OPERATOR_GUARD, + OPERATOR + ]; + + // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#grammar_numeric-literal + // TODO: Update for leading `-` after lookbehind is supported everywhere + const decimalDigits = '([0-9]_*)+'; + const hexDigits = '([0-9a-fA-F]_*)+'; + const NUMBER = { + className: 'number', + relevance: 0, + variants: [ + // decimal floating-point-literal (subsumes decimal-literal) + { match: `\\b(${decimalDigits})(\\.(${decimalDigits}))?` + `([eE][+-]?(${decimalDigits}))?\\b` }, + // hexadecimal floating-point-literal (subsumes hexadecimal-literal) + { match: `\\b0x(${hexDigits})(\\.(${hexDigits}))?` + `([pP][+-]?(${decimalDigits}))?\\b` }, + // octal-literal + { match: /\b0o([0-7]_*)+\b/ }, + // binary-literal + { match: /\b0b([01]_*)+\b/ } + ] + }; + + // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#grammar_string-literal + const ESCAPED_CHARACTER = (rawDelimiter = "") => ({ + className: 'subst', + variants: [ + { match: concat(/\\/, rawDelimiter, /[0\\tnr"']/) }, + { match: concat(/\\/, rawDelimiter, /u\{[0-9a-fA-F]{1,8}\}/) } + ] + }); + const ESCAPED_NEWLINE = (rawDelimiter = "") => ({ + className: 'subst', + match: concat(/\\/, rawDelimiter, /[\t ]*(?:[\r\n]|\r\n)/) + }); + const INTERPOLATION = (rawDelimiter = "") => ({ + className: 'subst', + label: "interpol", + begin: concat(/\\/, rawDelimiter, /\(/), + end: /\)/ + }); + const MULTILINE_STRING = (rawDelimiter = "") => ({ + begin: concat(rawDelimiter, /"""/), + end: concat(/"""/, rawDelimiter), + contains: [ + ESCAPED_CHARACTER(rawDelimiter), + ESCAPED_NEWLINE(rawDelimiter), + INTERPOLATION(rawDelimiter) + ] + }); + const SINGLE_LINE_STRING = (rawDelimiter = "") => ({ + begin: concat(rawDelimiter, /"/), + end: concat(/"/, rawDelimiter), + contains: [ + ESCAPED_CHARACTER(rawDelimiter), + INTERPOLATION(rawDelimiter) + ] + }); + const STRING = { + className: 'string', + variants: [ + MULTILINE_STRING(), + MULTILINE_STRING("#"), + MULTILINE_STRING("##"), + MULTILINE_STRING("###"), + SINGLE_LINE_STRING(), + SINGLE_LINE_STRING("#"), + SINGLE_LINE_STRING("##"), + SINGLE_LINE_STRING("###") + ] + }; + + const REGEXP_CONTENTS = [ + hljs.BACKSLASH_ESCAPE, + { + begin: /\[/, + end: /\]/, + relevance: 0, + contains: [ hljs.BACKSLASH_ESCAPE ] + } + ]; + + const BARE_REGEXP_LITERAL = { + begin: /\/[^\s](?=[^/\n]*\/)/, + end: /\//, + contains: REGEXP_CONTENTS + }; + + const EXTENDED_REGEXP_LITERAL = (rawDelimiter) => { + const begin = concat(rawDelimiter, /\//); + const end = concat(/\//, rawDelimiter); + return { + begin, + end, + contains: [ + ...REGEXP_CONTENTS, + { + scope: "comment", + begin: `#(?!.*${end})`, + end: /$/, + }, + ], + }; + }; + + // https://docs.swift.org/swift-book/documentation/the-swift-programming-language/lexicalstructure/#Regular-Expression-Literals + const REGEXP = { + scope: "regexp", + variants: [ + EXTENDED_REGEXP_LITERAL('###'), + EXTENDED_REGEXP_LITERAL('##'), + EXTENDED_REGEXP_LITERAL('#'), + BARE_REGEXP_LITERAL + ] + }; + + // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID412 + const QUOTED_IDENTIFIER = { match: concat(/`/, identifier, /`/) }; + const IMPLICIT_PARAMETER = { + className: 'variable', + match: /\$\d+/ + }; + const PROPERTY_WRAPPER_PROJECTION = { + className: 'variable', + match: `\\$${identifierCharacter}+` + }; + const IDENTIFIERS = [ + QUOTED_IDENTIFIER, + IMPLICIT_PARAMETER, + PROPERTY_WRAPPER_PROJECTION + ]; + + // https://docs.swift.org/swift-book/ReferenceManual/Attributes.html + const AVAILABLE_ATTRIBUTE = { + match: /(@|#(un)?)available/, + scope: 'keyword', + starts: { contains: [ + { + begin: /\(/, + end: /\)/, + keywords: availabilityKeywords, + contains: [ + ...OPERATORS, + NUMBER, + STRING + ] + } + ] } + }; + + const KEYWORD_ATTRIBUTE = { + scope: 'keyword', + match: concat(/@/, either(...keywordAttributes), lookahead(either(/\(/, /\s+/))), + }; + + const USER_DEFINED_ATTRIBUTE = { + scope: 'meta', + match: concat(/@/, identifier) + }; + + const ATTRIBUTES = [ + AVAILABLE_ATTRIBUTE, + KEYWORD_ATTRIBUTE, + USER_DEFINED_ATTRIBUTE + ]; + + // https://docs.swift.org/swift-book/ReferenceManual/Types.html + const TYPE = { + match: lookahead(/\b[A-Z]/), + relevance: 0, + contains: [ + { // Common Apple frameworks, for relevance boost + className: 'type', + match: concat(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, identifierCharacter, '+') + }, + { // Type identifier + className: 'type', + match: typeIdentifier, + relevance: 0 + }, + { // Optional type + match: /[?!]+/, + relevance: 0 + }, + { // Variadic parameter + match: /\.\.\./, + relevance: 0 + }, + { // Protocol composition + match: concat(/\s+&\s+/, lookahead(typeIdentifier)), + relevance: 0 + } + ] + }; + const GENERIC_ARGUMENTS = { + begin: //, + keywords: KEYWORDS, + contains: [ + ...COMMENTS, + ...KEYWORD_MODES, + ...ATTRIBUTES, + OPERATOR_GUARD, + TYPE + ] + }; + TYPE.contains.push(GENERIC_ARGUMENTS); + + // https://docs.swift.org/swift-book/ReferenceManual/Expressions.html#ID552 + // Prevents element names from being highlighted as keywords. + const TUPLE_ELEMENT_NAME = { + match: concat(identifier, /\s*:/), + keywords: "_|0", + relevance: 0 + }; + // Matches tuples as well as the parameter list of a function type. + const TUPLE = { + begin: /\(/, + end: /\)/, + relevance: 0, + keywords: KEYWORDS, + contains: [ + 'self', + TUPLE_ELEMENT_NAME, + ...COMMENTS, + REGEXP, + ...KEYWORD_MODES, + ...BUILT_INS, + ...OPERATORS, + NUMBER, + STRING, + ...IDENTIFIERS, + ...ATTRIBUTES, + TYPE + ] + }; + + const GENERIC_PARAMETERS = { + begin: //, + keywords: 'repeat each', + contains: [ + ...COMMENTS, + TYPE + ] + }; + const FUNCTION_PARAMETER_NAME = { + begin: either( + lookahead(concat(identifier, /\s*:/)), + lookahead(concat(identifier, /\s+/, identifier, /\s*:/)) + ), + end: /:/, + relevance: 0, + contains: [ + { + className: 'keyword', + match: /\b_\b/ + }, + { + className: 'params', + match: identifier + } + ] + }; + const FUNCTION_PARAMETERS = { + begin: /\(/, + end: /\)/, + keywords: KEYWORDS, + contains: [ + FUNCTION_PARAMETER_NAME, + ...COMMENTS, + ...KEYWORD_MODES, + ...OPERATORS, + NUMBER, + STRING, + ...ATTRIBUTES, + TYPE, + TUPLE + ], + endsParent: true, + illegal: /["']/ + }; + // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID362 + // https://docs.swift.org/swift-book/documentation/the-swift-programming-language/declarations/#Macro-Declaration + const FUNCTION_OR_MACRO = { + match: [ + /(func|macro)/, + /\s+/, + either(QUOTED_IDENTIFIER.match, identifier, operator) + ], + className: { + 1: "keyword", + 3: "title.function" + }, + contains: [ + GENERIC_PARAMETERS, + FUNCTION_PARAMETERS, + WHITESPACE + ], + illegal: [ + /\[/, + /%/ + ] + }; + + // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID375 + // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID379 + const INIT_SUBSCRIPT = { + match: [ + /\b(?:subscript|init[?!]?)/, + /\s*(?=[<(])/, + ], + className: { 1: "keyword" }, + contains: [ + GENERIC_PARAMETERS, + FUNCTION_PARAMETERS, + WHITESPACE + ], + illegal: /\[|%/ + }; + // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID380 + const OPERATOR_DECLARATION = { + match: [ + /operator/, + /\s+/, + operator + ], + className: { + 1: "keyword", + 3: "title" + } + }; + + // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID550 + const PRECEDENCEGROUP = { + begin: [ + /precedencegroup/, + /\s+/, + typeIdentifier + ], + className: { + 1: "keyword", + 3: "title" + }, + contains: [ TYPE ], + keywords: [ + ...precedencegroupKeywords, + ...literals + ], + end: /}/ + }; + + const CLASS_FUNC_DECLARATION = { + match: [ + /class\b/, + /\s+/, + /func\b/, + /\s+/, + /\b[A-Za-z_][A-Za-z0-9_]*\b/ + ], + scope: { + 1: "keyword", + 3: "keyword", + 5: "title.function" + } + }; + + const CLASS_VAR_DECLARATION = { + match: [ + /class\b/, + /\s+/, + /var\b/, + ], + scope: { + 1: "keyword", + 3: "keyword" + } + }; + + const TYPE_DECLARATION = { + begin: [ + /(struct|protocol|class|extension|enum|actor)/, + /\s+/, + identifier, + /\s*/, + ], + beginScope: { + 1: "keyword", + 3: "title.class" + }, + keywords: KEYWORDS, + contains: [ + GENERIC_PARAMETERS, + ...KEYWORD_MODES, + { + begin: /:/, + end: /\{/, + keywords: KEYWORDS, + contains: [ + { + scope: "title.class.inherited", + match: typeIdentifier, + }, + ...KEYWORD_MODES, + ], + relevance: 0, + }, + ] + }; + + // Add supported submodes to string interpolation. + for (const variant of STRING.variants) { + const interpolation = variant.contains.find(mode => mode.label === "interpol"); + // TODO: Interpolation can contain any expression, so there's room for improvement here. + interpolation.keywords = KEYWORDS; + const submodes = [ + ...KEYWORD_MODES, + ...BUILT_INS, + ...OPERATORS, + NUMBER, + STRING, + ...IDENTIFIERS + ]; + interpolation.contains = [ + ...submodes, + { + begin: /\(/, + end: /\)/, + contains: [ + 'self', + ...submodes + ] + } + ]; + } + + return { + name: 'Swift', + keywords: KEYWORDS, + contains: [ + ...COMMENTS, + FUNCTION_OR_MACRO, + INIT_SUBSCRIPT, + CLASS_FUNC_DECLARATION, + CLASS_VAR_DECLARATION, + TYPE_DECLARATION, + OPERATOR_DECLARATION, + PRECEDENCEGROUP, + { + beginKeywords: 'import', + end: /$/, + contains: [ ...COMMENTS ], + relevance: 0 + }, + REGEXP, + ...KEYWORD_MODES, + ...BUILT_INS, + ...OPERATORS, + NUMBER, + STRING, + ...IDENTIFIERS, + ...ATTRIBUTES, + TYPE, + TUPLE + ] + }; +} + +export { swift as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/swift.js.js b/tools/ui/node_modules/highlight.js/es/languages/swift.js.js new file mode 100644 index 0000000000000000000000000000000000000000..d9bc5496e43401b1b9a24567c263cbb10e222df1 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/swift.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/swift" instead of "highlight.js/lib/languages/swift.js"' + ); + } + } + emitWarning(); + import lang from './swift.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/taggerscript.js b/tools/ui/node_modules/highlight.js/es/languages/taggerscript.js new file mode 100644 index 0000000000000000000000000000000000000000..567aceb5a28b71efa42b7f084b3d4e91c3998f71 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/taggerscript.js @@ -0,0 +1,59 @@ +/* +Language: Tagger Script +Author: Philipp Wolfer +Description: Syntax Highlighting for the Tagger Script as used by MusicBrainz Picard. +Website: https://picard.musicbrainz.org +Category: scripting + */ +function taggerscript(hljs) { + const NOOP = { + className: 'comment', + begin: /\$noop\(/, + end: /\)/, + contains: [ + { begin: /\\[()]/ }, + { + begin: /\(/, + end: /\)/, + contains: [ + { begin: /\\[()]/ }, + 'self' + ] + } + ], + relevance: 10 + }; + + const FUNCTION = { + className: 'keyword', + begin: /\$[_a-zA-Z0-9]+(?=\()/ + }; + + const VARIABLE = { + className: 'variable', + begin: /%[_a-zA-Z0-9:]+%/ + }; + + const ESCAPE_SEQUENCE_UNICODE = { + className: 'symbol', + begin: /\\u[a-fA-F0-9]{4}/ + }; + + const ESCAPE_SEQUENCE = { + className: 'symbol', + begin: /\\[\\nt$%,()]/ + }; + + return { + name: 'Tagger Script', + contains: [ + NOOP, + FUNCTION, + VARIABLE, + ESCAPE_SEQUENCE, + ESCAPE_SEQUENCE_UNICODE + ] + }; +} + +export { taggerscript as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/taggerscript.js.js b/tools/ui/node_modules/highlight.js/es/languages/taggerscript.js.js new file mode 100644 index 0000000000000000000000000000000000000000..75601e02ce2a54d106aa7610201e26d2101f0403 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/taggerscript.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/taggerscript" instead of "highlight.js/lib/languages/taggerscript.js"' + ); + } + } + emitWarning(); + import lang from './taggerscript.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/tap.js b/tools/ui/node_modules/highlight.js/es/languages/tap.js new file mode 100644 index 0000000000000000000000000000000000000000..8cd8ba507351f008c839d9deffa423657c535348 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/tap.js @@ -0,0 +1,47 @@ +/* +Language: Test Anything Protocol +Description: TAP, the Test Anything Protocol, is a simple text-based interface between testing modules in a test harness. +Requires: yaml.js +Author: Sergey Bronnikov +Website: https://testanything.org +*/ + +function tap(hljs) { + return { + name: 'Test Anything Protocol', + case_insensitive: true, + contains: [ + hljs.HASH_COMMENT_MODE, + // version of format and total amount of testcases + { + className: 'meta', + variants: [ + { begin: '^TAP version (\\d+)$' }, + { begin: '^1\\.\\.(\\d+)$' } + ] + }, + // YAML block + { + begin: /---$/, + end: '\\.\\.\\.$', + subLanguage: 'yaml', + relevance: 0 + }, + // testcase number + { + className: 'number', + begin: ' (\\d+) ' + }, + // testcase status and description + { + className: 'symbol', + variants: [ + { begin: '^ok' }, + { begin: '^not ok' } + ] + } + ] + }; +} + +export { tap as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/tap.js.js b/tools/ui/node_modules/highlight.js/es/languages/tap.js.js new file mode 100644 index 0000000000000000000000000000000000000000..32962e5b31f5c3c4ae121ec4bac92c7f5db539c2 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/tap.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/tap" instead of "highlight.js/lib/languages/tap.js"' + ); + } + } + emitWarning(); + import lang from './tap.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/tcl.js b/tools/ui/node_modules/highlight.js/es/languages/tcl.js new file mode 100644 index 0000000000000000000000000000000000000000..da59442b3ca993107d94bfd63f140406a37f9d66 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/tcl.js @@ -0,0 +1,191 @@ +/* +Language: Tcl +Description: Tcl is a very simple programming language. +Author: Radek Liska +Website: https://www.tcl.tk/about/language.html +Category: scripting +*/ + +function tcl(hljs) { + const regex = hljs.regex; + const TCL_IDENT = /[a-zA-Z_][a-zA-Z0-9_]*/; + + const NUMBER = { + className: 'number', + variants: [ + hljs.BINARY_NUMBER_MODE, + hljs.C_NUMBER_MODE + ] + }; + + const KEYWORDS = [ + "after", + "append", + "apply", + "array", + "auto_execok", + "auto_import", + "auto_load", + "auto_mkindex", + "auto_mkindex_old", + "auto_qualify", + "auto_reset", + "bgerror", + "binary", + "break", + "catch", + "cd", + "chan", + "clock", + "close", + "concat", + "continue", + "dde", + "dict", + "encoding", + "eof", + "error", + "eval", + "exec", + "exit", + "expr", + "fblocked", + "fconfigure", + "fcopy", + "file", + "fileevent", + "filename", + "flush", + "for", + "foreach", + "format", + "gets", + "glob", + "global", + "history", + "http", + "if", + "incr", + "info", + "interp", + "join", + "lappend|10", + "lassign|10", + "lindex|10", + "linsert|10", + "list", + "llength|10", + "load", + "lrange|10", + "lrepeat|10", + "lreplace|10", + "lreverse|10", + "lsearch|10", + "lset|10", + "lsort|10", + "mathfunc", + "mathop", + "memory", + "msgcat", + "namespace", + "open", + "package", + "parray", + "pid", + "pkg::create", + "pkg_mkIndex", + "platform", + "platform::shell", + "proc", + "puts", + "pwd", + "read", + "refchan", + "regexp", + "registry", + "regsub|10", + "rename", + "return", + "safe", + "scan", + "seek", + "set", + "socket", + "source", + "split", + "string", + "subst", + "switch", + "tcl_endOfWord", + "tcl_findLibrary", + "tcl_startOfNextWord", + "tcl_startOfPreviousWord", + "tcl_wordBreakAfter", + "tcl_wordBreakBefore", + "tcltest", + "tclvars", + "tell", + "time", + "tm", + "trace", + "unknown", + "unload", + "unset", + "update", + "uplevel", + "upvar", + "variable", + "vwait", + "while" + ]; + + return { + name: 'Tcl', + aliases: [ 'tk' ], + keywords: KEYWORDS, + contains: [ + hljs.COMMENT(';[ \\t]*#', '$'), + hljs.COMMENT('^[ \\t]*#', '$'), + { + beginKeywords: 'proc', + end: '[\\{]', + excludeEnd: true, + contains: [ + { + className: 'title', + begin: '[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*', + end: '[ \\t\\n\\r]', + endsWithParent: true, + excludeEnd: true + } + ] + }, + { + className: "variable", + variants: [ + { begin: regex.concat( + /\$/, + regex.optional(/::/), + TCL_IDENT, + '(::', + TCL_IDENT, + ')*' + ) }, + { + begin: '\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*', + end: '\\}', + contains: [ NUMBER ] + } + ] + }, + { + className: 'string', + contains: [ hljs.BACKSLASH_ESCAPE ], + variants: [ hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }) ] + }, + NUMBER + ] + }; +} + +export { tcl as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/tcl.js.js b/tools/ui/node_modules/highlight.js/es/languages/tcl.js.js new file mode 100644 index 0000000000000000000000000000000000000000..9e5a58feadf0aeeb2d568f5d6d1cde1b3fde575d --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/tcl.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/tcl" instead of "highlight.js/lib/languages/tcl.js"' + ); + } + } + emitWarning(); + import lang from './tcl.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/thrift.js b/tools/ui/node_modules/highlight.js/es/languages/thrift.js new file mode 100644 index 0000000000000000000000000000000000000000..12875747c5629b23a981f82edd462c0711c61f9b --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/thrift.js @@ -0,0 +1,77 @@ +/* +Language: Thrift +Author: Oleg Efimov +Description: Thrift message definition format +Website: https://thrift.apache.org +Category: protocols +*/ + +function thrift(hljs) { + const TYPES = [ + "bool", + "byte", + "i16", + "i32", + "i64", + "double", + "string", + "binary" + ]; + const KEYWORDS = [ + "namespace", + "const", + "typedef", + "struct", + "enum", + "service", + "exception", + "void", + "oneway", + "set", + "list", + "map", + "required", + "optional" + ]; + return { + name: 'Thrift', + keywords: { + keyword: KEYWORDS, + type: TYPES, + literal: 'true false' + }, + contains: [ + hljs.QUOTE_STRING_MODE, + hljs.NUMBER_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'class', + beginKeywords: 'struct enum service exception', + end: /\{/, + illegal: /\n/, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + // hack: eating everything after the first title + starts: { + endsWithParent: true, + excludeEnd: true + } }) + ] + }, + { + begin: '\\b(set|list|map)\\s*<', + keywords: { type: [ + ...TYPES, + "set", + "list", + "map" + ] }, + end: '>', + contains: [ 'self' ] + } + ] + }; +} + +export { thrift as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/thrift.js.js b/tools/ui/node_modules/highlight.js/es/languages/thrift.js.js new file mode 100644 index 0000000000000000000000000000000000000000..d214aa732c89b907274f41475de477f9a891e5b6 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/thrift.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/thrift" instead of "highlight.js/lib/languages/thrift.js"' + ); + } + } + emitWarning(); + import lang from './thrift.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/tp.js b/tools/ui/node_modules/highlight.js/es/languages/tp.js new file mode 100644 index 0000000000000000000000000000000000000000..94e69d3064ff374724e05d189f206ef256525e7a --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/tp.js @@ -0,0 +1,172 @@ +/* +Language: TP +Author: Jay Strybis +Description: FANUC TP programming language (TPP). +Category: hardware +*/ + +function tp(hljs) { + const TPID = { + className: 'number', + begin: '[1-9][0-9]*', /* no leading zeros */ + relevance: 0 + }; + const TPLABEL = { + className: 'symbol', + begin: ':[^\\]]+' + }; + const TPDATA = { + className: 'built_in', + begin: '(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|' + + 'TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[', + end: '\\]', + contains: [ + 'self', + TPID, + TPLABEL + ] + }; + const TPIO = { + className: 'built_in', + begin: '(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[', + end: '\\]', + contains: [ + 'self', + TPID, + hljs.QUOTE_STRING_MODE, /* for pos section at bottom */ + TPLABEL + ] + }; + + const KEYWORDS = [ + "ABORT", + "ACC", + "ADJUST", + "AND", + "AP_LD", + "BREAK", + "CALL", + "CNT", + "COL", + "CONDITION", + "CONFIG", + "DA", + "DB", + "DIV", + "DETECT", + "ELSE", + "END", + "ENDFOR", + "ERR_NUM", + "ERROR_PROG", + "FINE", + "FOR", + "GP", + "GUARD", + "INC", + "IF", + "JMP", + "LINEAR_MAX_SPEED", + "LOCK", + "MOD", + "MONITOR", + "OFFSET", + "Offset", + "OR", + "OVERRIDE", + "PAUSE", + "PREG", + "PTH", + "RT_LD", + "RUN", + "SELECT", + "SKIP", + "Skip", + "TA", + "TB", + "TO", + "TOOL_OFFSET", + "Tool_Offset", + "UF", + "UT", + "UFRAME_NUM", + "UTOOL_NUM", + "UNLOCK", + "WAIT", + "X", + "Y", + "Z", + "W", + "P", + "R", + "STRLEN", + "SUBSTR", + "FINDSTR", + "VOFFSET", + "PROG", + "ATTR", + "MN", + "POS" + ]; + const LITERALS = [ + "ON", + "OFF", + "max_speed", + "LPOS", + "JPOS", + "ENABLE", + "DISABLE", + "START", + "STOP", + "RESET" + ]; + + return { + name: 'TP', + keywords: { + keyword: KEYWORDS, + literal: LITERALS + }, + contains: [ + TPDATA, + TPIO, + { + className: 'keyword', + begin: '/(PROG|ATTR|MN|POS|END)\\b' + }, + { + /* this is for cases like ,CALL */ + className: 'keyword', + begin: '(CALL|RUN|POINT_LOGIC|LBL)\\b' + }, + { + /* this is for cases like CNT100 where the default lexemes do not + * separate the keyword and the number */ + className: 'keyword', + begin: '\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)' + }, + { + /* to catch numbers that do not have a word boundary on the left */ + className: 'number', + begin: '\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b', + relevance: 0 + }, + hljs.COMMENT('//', '[;$]'), + hljs.COMMENT('!', '[;$]'), + hljs.COMMENT('--eg:', '$'), + hljs.QUOTE_STRING_MODE, + { + className: 'string', + begin: '\'', + end: '\'' + }, + hljs.C_NUMBER_MODE, + { + className: 'variable', + begin: '\\$[A-Za-z0-9_]+' + } + ] + }; +} + +export { tp as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/tp.js.js b/tools/ui/node_modules/highlight.js/es/languages/tp.js.js new file mode 100644 index 0000000000000000000000000000000000000000..c8cc8834c0b5f39cde4b7948feea5f182c4c3a78 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/tp.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/tp" instead of "highlight.js/lib/languages/tp.js"' + ); + } + } + emitWarning(); + import lang from './tp.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/twig.js b/tools/ui/node_modules/highlight.js/es/languages/twig.js new file mode 100644 index 0000000000000000000000000000000000000000..f9803401f105402e9bad5d72df2cc7083adc5f48 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/twig.js @@ -0,0 +1,260 @@ +/* +Language: Twig +Requires: xml.js +Author: Luke Holder +Description: Twig is a templating language for PHP +Website: https://twig.symfony.com +Category: template +*/ + +function twig(hljs) { + const regex = hljs.regex; + const FUNCTION_NAMES = [ + "absolute_url", + "asset|0", + "asset_version", + "attribute", + "block", + "constant", + "controller|0", + "country_timezones", + "csrf_token", + "cycle", + "date", + "dump", + "expression", + "form|0", + "form_end", + "form_errors", + "form_help", + "form_label", + "form_rest", + "form_row", + "form_start", + "form_widget", + "html_classes", + "include", + "is_granted", + "logout_path", + "logout_url", + "max", + "min", + "parent", + "path|0", + "random", + "range", + "relative_path", + "render", + "render_esi", + "source", + "template_from_string", + "url|0" + ]; + + const FILTERS = [ + "abs", + "abbr_class", + "abbr_method", + "batch", + "capitalize", + "column", + "convert_encoding", + "country_name", + "currency_name", + "currency_symbol", + "data_uri", + "date", + "date_modify", + "default", + "escape", + "file_excerpt", + "file_link", + "file_relative", + "filter", + "first", + "format", + "format_args", + "format_args_as_text", + "format_currency", + "format_date", + "format_datetime", + "format_file", + "format_file_from_text", + "format_number", + "format_time", + "html_to_markdown", + "humanize", + "inky_to_html", + "inline_css", + "join", + "json_encode", + "keys", + "language_name", + "last", + "length", + "locale_name", + "lower", + "map", + "markdown", + "markdown_to_html", + "merge", + "nl2br", + "number_format", + "raw", + "reduce", + "replace", + "reverse", + "round", + "slice", + "slug", + "sort", + "spaceless", + "split", + "striptags", + "timezone_name", + "title", + "trans", + "transchoice", + "trim", + "u|0", + "upper", + "url_encode", + "yaml_dump", + "yaml_encode" + ]; + + let TAG_NAMES = [ + "apply", + "autoescape", + "block", + "cache", + "deprecated", + "do", + "embed", + "extends", + "filter", + "flush", + "for", + "form_theme", + "from", + "if", + "import", + "include", + "macro", + "sandbox", + "set", + "stopwatch", + "trans", + "trans_default_domain", + "transchoice", + "use", + "verbatim", + "with" + ]; + + TAG_NAMES = TAG_NAMES.concat(TAG_NAMES.map(t => `end${t}`)); + + const STRING = { + scope: 'string', + variants: [ + { + begin: /'/, + end: /'/ + }, + { + begin: /"/, + end: /"/ + }, + ] + }; + + const NUMBER = { + scope: "number", + match: /\d+/ + }; + + const PARAMS = { + begin: /\(/, + end: /\)/, + excludeBegin: true, + excludeEnd: true, + contains: [ + STRING, + NUMBER + ] + }; + + + const FUNCTIONS = { + beginKeywords: FUNCTION_NAMES.join(" "), + keywords: { name: FUNCTION_NAMES }, + relevance: 0, + contains: [ PARAMS ] + }; + + const FILTER = { + match: /\|(?=[A-Za-z_]+:?)/, + beginScope: "punctuation", + relevance: 0, + contains: [ + { + match: /[A-Za-z_]+:?/, + keywords: FILTERS + }, + ] + }; + + const tagNamed = (tagnames, { relevance }) => { + return { + beginScope: { + 1: 'template-tag', + 3: 'name' + }, + relevance: relevance || 2, + endScope: 'template-tag', + begin: [ + /\{%/, + /\s*/, + regex.either(...tagnames) + ], + end: /%\}/, + keywords: "in", + contains: [ + FILTER, + FUNCTIONS, + STRING, + NUMBER + ] + }; + }; + + const CUSTOM_TAG_RE = /[a-z_]+/; + const TAG = tagNamed(TAG_NAMES, { relevance: 2 }); + const CUSTOM_TAG = tagNamed([ CUSTOM_TAG_RE ], { relevance: 1 }); + + return { + name: 'Twig', + aliases: [ 'craftcms' ], + case_insensitive: true, + subLanguage: 'xml', + contains: [ + hljs.COMMENT(/\{#/, /#\}/), + TAG, + CUSTOM_TAG, + { + className: 'template-variable', + begin: /\{\{/, + end: /\}\}/, + contains: [ + 'self', + FILTER, + FUNCTIONS, + STRING, + NUMBER + ] + } + ] + }; +} + +export { twig as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/twig.js.js b/tools/ui/node_modules/highlight.js/es/languages/twig.js.js new file mode 100644 index 0000000000000000000000000000000000000000..62b570152c794522ad536f0350986da98362a200 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/twig.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/twig" instead of "highlight.js/lib/languages/twig.js"' + ); + } + } + emitWarning(); + import lang from './twig.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/typescript.js b/tools/ui/node_modules/highlight.js/es/languages/typescript.js new file mode 100644 index 0000000000000000000000000000000000000000..23169f8ddd16e39391ab2705292f09ca6057899e --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/typescript.js @@ -0,0 +1,913 @@ +const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*'; +const KEYWORDS = [ + "as", // for exports + "in", + "of", + "if", + "for", + "while", + "finally", + "var", + "new", + "function", + "do", + "return", + "void", + "else", + "break", + "catch", + "instanceof", + "with", + "throw", + "case", + "default", + "try", + "switch", + "continue", + "typeof", + "delete", + "let", + "yield", + "const", + "class", + // JS handles these with a special rule + // "get", + // "set", + "debugger", + "async", + "await", + "static", + "import", + "from", + "export", + "extends", + // It's reached stage 3, which is "recommended for implementation": + "using" +]; +const LITERALS = [ + "true", + "false", + "null", + "undefined", + "NaN", + "Infinity" +]; + +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects +const TYPES = [ + // Fundamental objects + "Object", + "Function", + "Boolean", + "Symbol", + // numbers and dates + "Math", + "Date", + "Number", + "BigInt", + // text + "String", + "RegExp", + // Indexed collections + "Array", + "Float32Array", + "Float64Array", + "Int8Array", + "Uint8Array", + "Uint8ClampedArray", + "Int16Array", + "Int32Array", + "Uint16Array", + "Uint32Array", + "BigInt64Array", + "BigUint64Array", + // Keyed collections + "Set", + "Map", + "WeakSet", + "WeakMap", + // Structured data + "ArrayBuffer", + "SharedArrayBuffer", + "Atomics", + "DataView", + "JSON", + // Control abstraction objects + "Promise", + "Generator", + "GeneratorFunction", + "AsyncFunction", + // Reflection + "Reflect", + "Proxy", + // Internationalization + "Intl", + // WebAssembly + "WebAssembly" +]; + +const ERROR_TYPES = [ + "Error", + "EvalError", + "InternalError", + "RangeError", + "ReferenceError", + "SyntaxError", + "TypeError", + "URIError" +]; + +const BUILT_IN_GLOBALS = [ + "setInterval", + "setTimeout", + "clearInterval", + "clearTimeout", + + "require", + "exports", + + "eval", + "isFinite", + "isNaN", + "parseFloat", + "parseInt", + "decodeURI", + "decodeURIComponent", + "encodeURI", + "encodeURIComponent", + "escape", + "unescape" +]; + +const BUILT_IN_VARIABLES = [ + "arguments", + "this", + "super", + "console", + "window", + "document", + "localStorage", + "sessionStorage", + "module", + "global" // Node.js +]; + +const BUILT_INS = [].concat( + BUILT_IN_GLOBALS, + TYPES, + ERROR_TYPES +); + +/* +Language: JavaScript +Description: JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. +Category: common, scripting, web +Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript +*/ + + +/** @type LanguageFn */ +function javascript(hljs) { + const regex = hljs.regex; + /** + * Takes a string like " { + const tag = "', + end: '' + }; + // to avoid some special cases inside isTrulyOpeningTag + const XML_SELF_CLOSING = /<[A-Za-z0-9\\._:-]+\s*\/>/; + const XML_TAG = { + begin: /<[A-Za-z0-9\\._:-]+/, + end: /\/[A-Za-z0-9\\._:-]+>|\/>/, + /** + * @param {RegExpMatchArray} match + * @param {CallbackResponse} response + */ + isTrulyOpeningTag: (match, response) => { + const afterMatchIndex = match[0].length + match.index; + const nextChar = match.input[afterMatchIndex]; + if ( + // HTML should not include another raw `<` inside a tag + // nested type? + // `>`, etc. + nextChar === "<" || + // the , gives away that this is not HTML + // `` + nextChar === "," + ) { + response.ignoreMatch(); + return; + } + + // `` + // Quite possibly a tag, lets look for a matching closing tag... + if (nextChar === ">") { + // if we cannot find a matching closing tag, then we + // will ignore it + if (!hasClosingTag(match, { after: afterMatchIndex })) { + response.ignoreMatch(); + } + } + + // `` (self-closing) + // handled by simpleSelfClosing rule + + let m; + const afterMatch = match.input.substring(afterMatchIndex); + + // some more template typing stuff + // (key?: string) => Modify< + if ((m = afterMatch.match(/^\s*=/))) { + response.ignoreMatch(); + return; + } + + // `` + // technically this could be HTML, but it smells like a type + // NOTE: This is ugh, but added specifically for https://github.com/highlightjs/highlight.js/issues/3276 + if ((m = afterMatch.match(/^\s+extends\s+/))) { + if (m.index === 0) { + response.ignoreMatch(); + // eslint-disable-next-line no-useless-return + return; + } + } + } + }; + const KEYWORDS$1 = { + $pattern: IDENT_RE, + keyword: KEYWORDS, + literal: LITERALS, + built_in: BUILT_INS, + "variable.language": BUILT_IN_VARIABLES + }; + + // https://tc39.es/ecma262/#sec-literals-numeric-literals + const decimalDigits = '[0-9](_?[0-9])*'; + const frac = `\\.(${decimalDigits})`; + // DecimalIntegerLiteral, including Annex B NonOctalDecimalIntegerLiteral + // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals + const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`; + const NUMBER = { + className: 'number', + variants: [ + // DecimalLiteral + { begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))` + + `[eE][+-]?(${decimalDigits})\\b` }, + { begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` }, + + // DecimalBigIntegerLiteral + { begin: `\\b(0|[1-9](_?[0-9])*)n\\b` }, + + // NonDecimalIntegerLiteral + { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, + { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, + { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, + + // LegacyOctalIntegerLiteral (does not include underscore separators) + // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals + { begin: "\\b0[0-7]+n?\\b" }, + ], + relevance: 0 + }; + + const SUBST = { + className: 'subst', + begin: '\\$\\{', + end: '\\}', + keywords: KEYWORDS$1, + contains: [] // defined later + }; + const HTML_TEMPLATE = { + begin: '\.?html`', + end: '', + starts: { + end: '`', + returnEnd: false, + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ], + subLanguage: 'xml' + } + }; + const CSS_TEMPLATE = { + begin: '\.?css`', + end: '', + starts: { + end: '`', + returnEnd: false, + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ], + subLanguage: 'css' + } + }; + const GRAPHQL_TEMPLATE = { + begin: '\.?gql`', + end: '', + starts: { + end: '`', + returnEnd: false, + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ], + subLanguage: 'graphql' + } + }; + const TEMPLATE_STRING = { + className: 'string', + begin: '`', + end: '`', + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ] + }; + const JSDOC_COMMENT = hljs.COMMENT( + /\/\*\*(?!\/)/, + '\\*/', + { + relevance: 0, + contains: [ + { + begin: '(?=@[A-Za-z]+)', + relevance: 0, + contains: [ + { + className: 'doctag', + begin: '@[A-Za-z]+' + }, + { + className: 'type', + begin: '\\{', + end: '\\}', + excludeEnd: true, + excludeBegin: true, + relevance: 0 + }, + { + className: 'variable', + begin: IDENT_RE$1 + '(?=\\s*(-)|$)', + endsParent: true, + relevance: 0 + }, + // eat spaces (not newlines) so we can find + // types or variables + { + begin: /(?=[^\n])\s/, + relevance: 0 + } + ] + } + ] + } + ); + const COMMENT = { + className: "comment", + variants: [ + JSDOC_COMMENT, + hljs.C_BLOCK_COMMENT_MODE, + hljs.C_LINE_COMMENT_MODE + ] + }; + const SUBST_INTERNALS = [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + HTML_TEMPLATE, + CSS_TEMPLATE, + GRAPHQL_TEMPLATE, + TEMPLATE_STRING, + // Skip numbers when they are part of a variable name + { match: /\$\d+/ }, + NUMBER, + // This is intentional: + // See https://github.com/highlightjs/highlight.js/issues/3288 + // hljs.REGEXP_MODE + ]; + SUBST.contains = SUBST_INTERNALS + .concat({ + // we need to pair up {} inside our subst to prevent + // it from ending too early by matching another } + begin: /\{/, + end: /\}/, + keywords: KEYWORDS$1, + contains: [ + "self" + ].concat(SUBST_INTERNALS) + }); + const SUBST_AND_COMMENTS = [].concat(COMMENT, SUBST.contains); + const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([ + // eat recursive parens in sub expressions + { + begin: /(\s*)\(/, + end: /\)/, + keywords: KEYWORDS$1, + contains: ["self"].concat(SUBST_AND_COMMENTS) + } + ]); + const PARAMS = { + className: 'params', + // convert this to negative lookbehind in v12 + begin: /(\s*)\(/, // to match the parms with + end: /\)/, + excludeBegin: true, + excludeEnd: true, + keywords: KEYWORDS$1, + contains: PARAMS_CONTAINS + }; + + // ES6 classes + const CLASS_OR_EXTENDS = { + variants: [ + // class Car extends vehicle + { + match: [ + /class/, + /\s+/, + IDENT_RE$1, + /\s+/, + /extends/, + /\s+/, + regex.concat(IDENT_RE$1, "(", regex.concat(/\./, IDENT_RE$1), ")*") + ], + scope: { + 1: "keyword", + 3: "title.class", + 5: "keyword", + 7: "title.class.inherited" + } + }, + // class Car + { + match: [ + /class/, + /\s+/, + IDENT_RE$1 + ], + scope: { + 1: "keyword", + 3: "title.class" + } + }, + + ] + }; + + const CLASS_REFERENCE = { + relevance: 0, + match: + regex.either( + // Hard coded exceptions + /\bJSON/, + // Float32Array, OutT + /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, + // CSSFactory, CSSFactoryT + /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, + // FPs, FPsT + /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/, + // P + // single letters are not highlighted + // BLAH + // this will be flagged as a UPPER_CASE_CONSTANT instead + ), + className: "title.class", + keywords: { + _: [ + // se we still get relevance credit for JS library classes + ...TYPES, + ...ERROR_TYPES + ] + } + }; + + const USE_STRICT = { + label: "use_strict", + className: 'meta', + relevance: 10, + begin: /^\s*['"]use (strict|asm)['"]/ + }; + + const FUNCTION_DEFINITION = { + variants: [ + { + match: [ + /function/, + /\s+/, + IDENT_RE$1, + /(?=\s*\()/ + ] + }, + // anonymous function + { + match: [ + /function/, + /\s*(?=\()/ + ] + } + ], + className: { + 1: "keyword", + 3: "title.function" + }, + label: "func.def", + contains: [ PARAMS ], + illegal: /%/ + }; + + const UPPER_CASE_CONSTANT = { + relevance: 0, + match: /\b[A-Z][A-Z_0-9]+\b/, + className: "variable.constant" + }; + + function noneOf(list) { + return regex.concat("(?!", list.join("|"), ")"); + } + + const FUNCTION_CALL = { + match: regex.concat( + /\b/, + noneOf([ + ...BUILT_IN_GLOBALS, + "super", + "import" + ].map(x => `${x}\\s*\\(`)), + IDENT_RE$1, regex.lookahead(/\s*\(/)), + className: "title.function", + relevance: 0 + }; + + const PROPERTY_ACCESS = { + begin: regex.concat(/\./, regex.lookahead( + regex.concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/) + )), + end: IDENT_RE$1, + excludeBegin: true, + keywords: "prototype", + className: "property", + relevance: 0 + }; + + const GETTER_OR_SETTER = { + match: [ + /get|set/, + /\s+/, + IDENT_RE$1, + /(?=\()/ + ], + className: { + 1: "keyword", + 3: "title.function" + }, + contains: [ + { // eat to avoid empty params + begin: /\(\)/ + }, + PARAMS + ] + }; + + const FUNC_LEAD_IN_RE = '(\\(' + + '[^()]*(\\(' + + '[^()]*(\\(' + + '[^()]*' + + '\\)[^()]*)*' + + '\\)[^()]*)*' + + '\\)|' + hljs.UNDERSCORE_IDENT_RE + ')\\s*=>'; + + const FUNCTION_VARIABLE = { + match: [ + /const|var|let/, /\s+/, + IDENT_RE$1, /\s*/, + /=\s*/, + /(async\s*)?/, // async is optional + regex.lookahead(FUNC_LEAD_IN_RE) + ], + keywords: "async", + className: { + 1: "keyword", + 3: "title.function" + }, + contains: [ + PARAMS + ] + }; + + return { + name: 'JavaScript', + aliases: ['js', 'jsx', 'mjs', 'cjs'], + keywords: KEYWORDS$1, + // this will be extended by TypeScript + exports: { PARAMS_CONTAINS, CLASS_REFERENCE }, + illegal: /#(?![$_A-z])/, + contains: [ + hljs.SHEBANG({ + label: "shebang", + binary: "node", + relevance: 5 + }), + USE_STRICT, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + HTML_TEMPLATE, + CSS_TEMPLATE, + GRAPHQL_TEMPLATE, + TEMPLATE_STRING, + COMMENT, + // Skip numbers when they are part of a variable name + { match: /\$\d+/ }, + NUMBER, + CLASS_REFERENCE, + { + scope: 'attr', + match: IDENT_RE$1 + regex.lookahead(':'), + relevance: 0 + }, + FUNCTION_VARIABLE, + { // "value" container + begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*', + keywords: 'return throw case', + relevance: 0, + contains: [ + COMMENT, + hljs.REGEXP_MODE, + { + className: 'function', + // we have to count the parens to make sure we actually have the + // correct bounding ( ) before the =>. There could be any number of + // sub-expressions inside also surrounded by parens. + begin: FUNC_LEAD_IN_RE, + returnBegin: true, + end: '\\s*=>', + contains: [ + { + className: 'params', + variants: [ + { + begin: hljs.UNDERSCORE_IDENT_RE, + relevance: 0 + }, + { + className: null, + begin: /\(\s*\)/, + skip: true + }, + { + begin: /(\s*)\(/, + end: /\)/, + excludeBegin: true, + excludeEnd: true, + keywords: KEYWORDS$1, + contains: PARAMS_CONTAINS + } + ] + } + ] + }, + { // could be a comma delimited list of params to a function call + begin: /,/, + relevance: 0 + }, + { + match: /\s+/, + relevance: 0 + }, + { // JSX + variants: [ + { begin: FRAGMENT.begin, end: FRAGMENT.end }, + { match: XML_SELF_CLOSING }, + { + begin: XML_TAG.begin, + // we carefully check the opening tag to see if it truly + // is a tag and not a false positive + 'on:begin': XML_TAG.isTrulyOpeningTag, + end: XML_TAG.end + } + ], + subLanguage: 'xml', + contains: [ + { + begin: XML_TAG.begin, + end: XML_TAG.end, + skip: true, + contains: ['self'] + } + ] + } + ], + }, + FUNCTION_DEFINITION, + { + // prevent this from getting swallowed up by function + // since they appear "function like" + beginKeywords: "while if switch catch for" + }, + { + // we have to count the parens to make sure we actually have the correct + // bounding ( ). There could be any number of sub-expressions inside + // also surrounded by parens. + begin: '\\b(?!function)' + hljs.UNDERSCORE_IDENT_RE + + '\\(' + // first parens + '[^()]*(\\(' + + '[^()]*(\\(' + + '[^()]*' + + '\\)[^()]*)*' + + '\\)[^()]*)*' + + '\\)\\s*\\{', // end parens + returnBegin:true, + label: "func.def", + contains: [ + PARAMS, + hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1, className: "title.function" }) + ] + }, + // catch ... so it won't trigger the property rule below + { + match: /\.\.\./, + relevance: 0 + }, + PROPERTY_ACCESS, + // hack: prevents detection of keywords in some circumstances + // .keyword() + // $keyword = x + { + match: '\\$' + IDENT_RE$1, + relevance: 0 + }, + { + match: [ /\bconstructor(?=\s*\()/ ], + className: { 1: "title.function" }, + contains: [ PARAMS ] + }, + FUNCTION_CALL, + UPPER_CASE_CONSTANT, + CLASS_OR_EXTENDS, + GETTER_OR_SETTER, + { + match: /\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something` + } + ] + }; +} + +/* +Language: TypeScript +Author: Panu Horsmalahti +Contributors: Ike Ku +Description: TypeScript is a strict superset of JavaScript +Website: https://www.typescriptlang.org +Category: common, scripting +*/ + + +/** @type LanguageFn */ +function typescript(hljs) { + const regex = hljs.regex; + const tsLanguage = javascript(hljs); + + const IDENT_RE$1 = IDENT_RE; + const TYPES = [ + "any", + "void", + "number", + "boolean", + "string", + "object", + "never", + "symbol", + "bigint", + "unknown" + ]; + const NAMESPACE = { + begin: [ + /namespace/, + /\s+/, + hljs.IDENT_RE + ], + beginScope: { + 1: "keyword", + 3: "title.class" + } + }; + const INTERFACE = { + beginKeywords: 'interface', + end: /\{/, + excludeEnd: true, + keywords: { + keyword: 'interface extends', + built_in: TYPES + }, + contains: [ tsLanguage.exports.CLASS_REFERENCE ] + }; + const USE_STRICT = { + className: 'meta', + relevance: 10, + begin: /^\s*['"]use strict['"]/ + }; + const TS_SPECIFIC_KEYWORDS = [ + "type", + // "namespace", + "interface", + "public", + "private", + "protected", + "implements", + "declare", + "abstract", + "readonly", + "enum", + "override", + "satisfies" + ]; + /* + namespace is a TS keyword but it's fine to use it as a variable name too. + const message = 'foo'; + const namespace = 'bar'; + */ + const KEYWORDS$1 = { + $pattern: IDENT_RE, + keyword: KEYWORDS.concat(TS_SPECIFIC_KEYWORDS), + literal: LITERALS, + built_in: BUILT_INS.concat(TYPES), + "variable.language": BUILT_IN_VARIABLES + }; + + const DECORATOR = { + className: 'meta', + begin: '@' + IDENT_RE$1, + }; + + const swapMode = (mode, label, replacement) => { + const indx = mode.contains.findIndex(m => m.label === label); + if (indx === -1) { throw new Error("can not find mode to replace"); } + + mode.contains.splice(indx, 1, replacement); + }; + + + // this should update anywhere keywords is used since + // it will be the same actual JS object + Object.assign(tsLanguage.keywords, KEYWORDS$1); + + tsLanguage.exports.PARAMS_CONTAINS.push(DECORATOR); + + // highlight the function params + const ATTRIBUTE_HIGHLIGHT = tsLanguage.contains.find(c => c.scope === "attr"); + + // take default attr rule and extend it to support optionals + const OPTIONAL_KEY_OR_ARGUMENT = Object.assign({}, + ATTRIBUTE_HIGHLIGHT, + { match: regex.concat(IDENT_RE$1, regex.lookahead(/\s*\?:/)) } + ); + tsLanguage.exports.PARAMS_CONTAINS.push([ + tsLanguage.exports.CLASS_REFERENCE, // class reference for highlighting the params types + ATTRIBUTE_HIGHLIGHT, // highlight the params key + OPTIONAL_KEY_OR_ARGUMENT, // Added for optional property assignment highlighting + ]); + + // Add the optional property assignment highlighting for objects or classes + tsLanguage.contains = tsLanguage.contains.concat([ + DECORATOR, + NAMESPACE, + INTERFACE, + OPTIONAL_KEY_OR_ARGUMENT, // Added for optional property assignment highlighting + ]); + + // TS gets a simpler shebang rule than JS + swapMode(tsLanguage, "shebang", hljs.SHEBANG()); + // JS use strict rule purposely excludes `asm` which makes no sense + swapMode(tsLanguage, "use_strict", USE_STRICT); + + const functionDeclaration = tsLanguage.contains.find(m => m.label === "func.def"); + functionDeclaration.relevance = 0; // () => {} is more typical in TypeScript + + Object.assign(tsLanguage, { + name: 'TypeScript', + aliases: [ + 'ts', + 'tsx', + 'mts', + 'cts' + ] + }); + + return tsLanguage; +} + +export { typescript as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/typescript.js.js b/tools/ui/node_modules/highlight.js/es/languages/typescript.js.js new file mode 100644 index 0000000000000000000000000000000000000000..aefe18c09f1f64b275af52f53c0e5261330e52a5 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/typescript.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/typescript" instead of "highlight.js/lib/languages/typescript.js"' + ); + } + } + emitWarning(); + import lang from './typescript.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/vala.js b/tools/ui/node_modules/highlight.js/es/languages/vala.js new file mode 100644 index 0000000000000000000000000000000000000000..52c279681def7aaca070768d8f533cf2a5d2dd6f --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vala.js @@ -0,0 +1,61 @@ +/* +Language: Vala +Author: Antono Vasiljev +Description: Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C. +Website: https://wiki.gnome.org/Projects/Vala +Category: system +*/ + +function vala(hljs) { + return { + name: 'Vala', + keywords: { + keyword: + // Value types + 'char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 ' + + 'uint16 uint32 uint64 float double bool struct enum string void ' + // Reference types + + 'weak unowned owned ' + // Modifiers + + 'async signal static abstract interface override virtual delegate ' + // Control Structures + + 'if while do for foreach else switch case break default return try catch ' + // Visibility + + 'public private protected internal ' + // Other + + 'using new this get set const stdout stdin stderr var', + built_in: + 'DBus GLib CCode Gee Object Gtk Posix', + literal: + 'false true null' + }, + contains: [ + { + className: 'class', + beginKeywords: 'class interface namespace', + end: /\{/, + excludeEnd: true, + illegal: '[^,:\\n\\s\\.]', + contains: [ hljs.UNDERSCORE_TITLE_MODE ] + }, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + { + className: 'string', + begin: '"""', + end: '"""', + relevance: 5 + }, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + hljs.C_NUMBER_MODE, + { + className: 'meta', + begin: '^#', + end: '$', + } + ] + }; +} + +export { vala as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/vala.js.js b/tools/ui/node_modules/highlight.js/es/languages/vala.js.js new file mode 100644 index 0000000000000000000000000000000000000000..754999e2fb23f323edecaf701cb2b4c99307ceb4 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vala.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vala" instead of "highlight.js/lib/languages/vala.js"' + ); + } + } + emitWarning(); + import lang from './vala.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/vbnet.js b/tools/ui/node_modules/highlight.js/es/languages/vbnet.js new file mode 100644 index 0000000000000000000000000000000000000000..ebd6dae8f20b48ea08702a1798b479589f1af063 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vbnet.js @@ -0,0 +1,157 @@ +/* +Language: Visual Basic .NET +Description: Visual Basic .NET (VB.NET) is a multi-paradigm, object-oriented programming language, implemented on the .NET Framework. +Authors: Poren Chiang , Jan Pilzer +Website: https://docs.microsoft.com/dotnet/visual-basic/getting-started +Category: common +*/ + +/** @type LanguageFn */ +function vbnet(hljs) { + const regex = hljs.regex; + /** + * Character Literal + * Either a single character ("a"C) or an escaped double quote (""""C). + */ + const CHARACTER = { + className: 'string', + begin: /"(""|[^/n])"C\b/ + }; + + const STRING = { + className: 'string', + begin: /"/, + end: /"/, + illegal: /\n/, + contains: [ + { + // double quote escape + begin: /""/ } + ] + }; + + /** Date Literals consist of a date, a time, or both separated by whitespace, surrounded by # */ + const MM_DD_YYYY = /\d{1,2}\/\d{1,2}\/\d{4}/; + const YYYY_MM_DD = /\d{4}-\d{1,2}-\d{1,2}/; + const TIME_12H = /(\d|1[012])(:\d+){0,2} *(AM|PM)/; + const TIME_24H = /\d{1,2}(:\d{1,2}){1,2}/; + const DATE = { + className: 'literal', + variants: [ + { + // #YYYY-MM-DD# (ISO-Date) or #M/D/YYYY# (US-Date) + begin: regex.concat(/# */, regex.either(YYYY_MM_DD, MM_DD_YYYY), / *#/) }, + { + // #H:mm[:ss]# (24h Time) + begin: regex.concat(/# */, TIME_24H, / *#/) }, + { + // #h[:mm[:ss]] A# (12h Time) + begin: regex.concat(/# */, TIME_12H, / *#/) }, + { + // date plus time + begin: regex.concat( + /# */, + regex.either(YYYY_MM_DD, MM_DD_YYYY), + / +/, + regex.either(TIME_12H, TIME_24H), + / *#/ + ) } + ] + }; + + const NUMBER = { + className: 'number', + relevance: 0, + variants: [ + { + // Float + begin: /\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/ }, + { + // Integer (base 10) + begin: /\b\d[\d_]*((U?[SIL])|[%&])?/ }, + { + // Integer (base 16) + begin: /&H[\dA-F_]+((U?[SIL])|[%&])?/ }, + { + // Integer (base 8) + begin: /&O[0-7_]+((U?[SIL])|[%&])?/ }, + { + // Integer (base 2) + begin: /&B[01_]+((U?[SIL])|[%&])?/ } + ] + }; + + const LABEL = { + className: 'label', + begin: /^\w+:/ + }; + + const DOC_COMMENT = hljs.COMMENT(/'''/, /$/, { contains: [ + { + className: 'doctag', + begin: /<\/?/, + end: />/ + } + ] }); + + const COMMENT = hljs.COMMENT(null, /$/, { variants: [ + { begin: /'/ }, + { + // TODO: Use multi-class for leading spaces + begin: /([\t ]|^)REM(?=\s)/ } + ] }); + + const DIRECTIVES = { + className: 'meta', + // TODO: Use multi-class for indentation once available + begin: /[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/, + end: /$/, + keywords: { keyword: + 'const disable else elseif enable end externalsource if region then' }, + contains: [ COMMENT ] + }; + + return { + name: 'Visual Basic .NET', + aliases: [ 'vb' ], + case_insensitive: true, + classNameAliases: { label: 'symbol' }, + keywords: { + keyword: + 'addhandler alias aggregate ansi as async assembly auto binary by byref byval ' /* a-b */ + + 'call case catch class compare const continue custom declare default delegate dim distinct do ' /* c-d */ + + 'each equals else elseif end enum erase error event exit explicit finally for friend from function ' /* e-f */ + + 'get global goto group handles if implements imports in inherits interface into iterator ' /* g-i */ + + 'join key let lib loop me mid module mustinherit mustoverride mybase myclass ' /* j-m */ + + 'namespace narrowing new next notinheritable notoverridable ' /* n */ + + 'of off on operator option optional order overloads overridable overrides ' /* o */ + + 'paramarray partial preserve private property protected public ' /* p */ + + 'raiseevent readonly redim removehandler resume return ' /* r */ + + 'select set shadows shared skip static step stop structure strict sub synclock ' /* s */ + + 'take text then throw to try unicode until using when where while widening with withevents writeonly yield' /* t-y */, + built_in: + // Operators https://docs.microsoft.com/dotnet/visual-basic/language-reference/operators + 'addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor ' + // Type Conversion Functions https://docs.microsoft.com/dotnet/visual-basic/language-reference/functions/type-conversion-functions + + 'cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort', + type: + // Data types https://docs.microsoft.com/dotnet/visual-basic/language-reference/data-types + 'boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort', + literal: 'true false nothing' + }, + illegal: + '//|\\{|\\}|endif|gosub|variant|wend|^\\$ ' /* reserved deprecated keywords */, + contains: [ + CHARACTER, + STRING, + DATE, + NUMBER, + LABEL, + DOC_COMMENT, + COMMENT, + DIRECTIVES + ] + }; +} + +export { vbnet as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/vbnet.js.js b/tools/ui/node_modules/highlight.js/es/languages/vbnet.js.js new file mode 100644 index 0000000000000000000000000000000000000000..e7a09c26c53f4370d6245d07db3d04c97e04ccea --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vbnet.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vbnet" instead of "highlight.js/lib/languages/vbnet.js"' + ); + } + } + emitWarning(); + import lang from './vbnet.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/vbscript-html.js b/tools/ui/node_modules/highlight.js/es/languages/vbscript-html.js new file mode 100644 index 0000000000000000000000000000000000000000..0c3c16e9f19e1f5716b4994fb064def0de765cd4 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vbscript-html.js @@ -0,0 +1,24 @@ +/* +Language: VBScript in HTML +Requires: xml.js, vbscript.js +Author: Ivan Sagalaev +Description: "Bridge" language defining fragments of VBScript in HTML within <% .. %> +Website: https://en.wikipedia.org/wiki/VBScript +Category: scripting +*/ + +function vbscriptHtml(hljs) { + return { + name: 'VBScript in HTML', + subLanguage: 'xml', + contains: [ + { + begin: '<%', + end: '%>', + subLanguage: 'vbscript' + } + ] + }; +} + +export { vbscriptHtml as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/vbscript-html.js.js b/tools/ui/node_modules/highlight.js/es/languages/vbscript-html.js.js new file mode 100644 index 0000000000000000000000000000000000000000..f13724b84945c52c9acee12e9ad13da2571830ef --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vbscript-html.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vbscript-html" instead of "highlight.js/lib/languages/vbscript-html.js"' + ); + } + } + emitWarning(); + import lang from './vbscript-html.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/vbscript.js b/tools/ui/node_modules/highlight.js/es/languages/vbscript.js new file mode 100644 index 0000000000000000000000000000000000000000..691637df9c281ecd162b3821d4bbc0127954b0a8 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vbscript.js @@ -0,0 +1,220 @@ +/* +Language: VBScript +Description: VBScript ("Microsoft Visual Basic Scripting Edition") is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. +Author: Nikita Ledyaev +Contributors: Michal Gabrukiewicz +Website: https://en.wikipedia.org/wiki/VBScript +Category: scripting +*/ + +/** @type LanguageFn */ +function vbscript(hljs) { + const regex = hljs.regex; + const BUILT_IN_FUNCTIONS = [ + "lcase", + "month", + "vartype", + "instrrev", + "ubound", + "setlocale", + "getobject", + "rgb", + "getref", + "string", + "weekdayname", + "rnd", + "dateadd", + "monthname", + "now", + "day", + "minute", + "isarray", + "cbool", + "round", + "formatcurrency", + "conversions", + "csng", + "timevalue", + "second", + "year", + "space", + "abs", + "clng", + "timeserial", + "fixs", + "len", + "asc", + "isempty", + "maths", + "dateserial", + "atn", + "timer", + "isobject", + "filter", + "weekday", + "datevalue", + "ccur", + "isdate", + "instr", + "datediff", + "formatdatetime", + "replace", + "isnull", + "right", + "sgn", + "array", + "snumeric", + "log", + "cdbl", + "hex", + "chr", + "lbound", + "msgbox", + "ucase", + "getlocale", + "cos", + "cdate", + "cbyte", + "rtrim", + "join", + "hour", + "oct", + "typename", + "trim", + "strcomp", + "int", + "createobject", + "loadpicture", + "tan", + "formatnumber", + "mid", + "split", + "cint", + "sin", + "datepart", + "ltrim", + "sqr", + "time", + "derived", + "eval", + "date", + "formatpercent", + "exp", + "inputbox", + "left", + "ascw", + "chrw", + "regexp", + "cstr", + "err" + ]; + const BUILT_IN_OBJECTS = [ + "server", + "response", + "request", + // take no arguments so can be called without () + "scriptengine", + "scriptenginebuildversion", + "scriptengineminorversion", + "scriptenginemajorversion" + ]; + + const BUILT_IN_CALL = { + begin: regex.concat(regex.either(...BUILT_IN_FUNCTIONS), "\\s*\\("), + // relevance 0 because this is acting as a beginKeywords really + relevance: 0, + keywords: { built_in: BUILT_IN_FUNCTIONS } + }; + + const LITERALS = [ + "true", + "false", + "null", + "nothing", + "empty" + ]; + + const KEYWORDS = [ + "call", + "class", + "const", + "dim", + "do", + "loop", + "erase", + "execute", + "executeglobal", + "exit", + "for", + "each", + "next", + "function", + "if", + "then", + "else", + "on", + "error", + "option", + "explicit", + "new", + "private", + "property", + "let", + "get", + "public", + "randomize", + "redim", + "rem", + "select", + "case", + "set", + "stop", + "sub", + "while", + "wend", + "with", + "end", + "to", + "elseif", + "is", + "or", + "xor", + "and", + "not", + "class_initialize", + "class_terminate", + "default", + "preserve", + "in", + "me", + "byval", + "byref", + "step", + "resume", + "goto" + ]; + + return { + name: 'VBScript', + aliases: [ 'vbs' ], + case_insensitive: true, + keywords: { + keyword: KEYWORDS, + built_in: BUILT_IN_OBJECTS, + literal: LITERALS + }, + illegal: '//', + contains: [ + BUILT_IN_CALL, + hljs.inherit(hljs.QUOTE_STRING_MODE, { contains: [ { begin: '""' } ] }), + hljs.COMMENT( + /'/, + /$/, + { relevance: 0 } + ), + hljs.C_NUMBER_MODE + ] + }; +} + +export { vbscript as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/vbscript.js.js b/tools/ui/node_modules/highlight.js/es/languages/vbscript.js.js new file mode 100644 index 0000000000000000000000000000000000000000..e3df308e9d385042640a199a7aec3f00bc562721 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vbscript.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vbscript" instead of "highlight.js/lib/languages/vbscript.js"' + ); + } + } + emitWarning(); + import lang from './vbscript.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/verilog.js b/tools/ui/node_modules/highlight.js/es/languages/verilog.js new file mode 100644 index 0000000000000000000000000000000000000000..3281813d5254544f5bd8d0520f3eb972fc2481d0 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/verilog.js @@ -0,0 +1,550 @@ +/* +Language: Verilog +Author: Jon Evans +Contributors: Boone Severson +Description: Verilog is a hardware description language used in electronic design automation to describe digital and mixed-signal systems. This highlighter supports Verilog and SystemVerilog through IEEE 1800-2012. +Website: http://www.verilog.com +Category: hardware +*/ + +function verilog(hljs) { + const regex = hljs.regex; + const KEYWORDS = { + $pattern: /\$?[\w]+(\$[\w]+)*/, + keyword: [ + "accept_on", + "alias", + "always", + "always_comb", + "always_ff", + "always_latch", + "and", + "assert", + "assign", + "assume", + "automatic", + "before", + "begin", + "bind", + "bins", + "binsof", + "bit", + "break", + "buf|0", + "bufif0", + "bufif1", + "byte", + "case", + "casex", + "casez", + "cell", + "chandle", + "checker", + "class", + "clocking", + "cmos", + "config", + "const", + "constraint", + "context", + "continue", + "cover", + "covergroup", + "coverpoint", + "cross", + "deassign", + "default", + "defparam", + "design", + "disable", + "dist", + "do", + "edge", + "else", + "end", + "endcase", + "endchecker", + "endclass", + "endclocking", + "endconfig", + "endfunction", + "endgenerate", + "endgroup", + "endinterface", + "endmodule", + "endpackage", + "endprimitive", + "endprogram", + "endproperty", + "endspecify", + "endsequence", + "endtable", + "endtask", + "enum", + "event", + "eventually", + "expect", + "export", + "extends", + "extern", + "final", + "first_match", + "for", + "force", + "foreach", + "forever", + "fork", + "forkjoin", + "function", + "generate|5", + "genvar", + "global", + "highz0", + "highz1", + "if", + "iff", + "ifnone", + "ignore_bins", + "illegal_bins", + "implements", + "implies", + "import", + "incdir", + "include", + "initial", + "inout", + "input", + "inside", + "instance", + "int", + "integer", + "interconnect", + "interface", + "intersect", + "join", + "join_any", + "join_none", + "large", + "let", + "liblist", + "library", + "local", + "localparam", + "logic", + "longint", + "macromodule", + "matches", + "medium", + "modport", + "module", + "nand", + "negedge", + "nettype", + "new", + "nexttime", + "nmos", + "nor", + "noshowcancelled", + "not", + "notif0", + "notif1", + "or", + "output", + "package", + "packed", + "parameter", + "pmos", + "posedge", + "primitive", + "priority", + "program", + "property", + "protected", + "pull0", + "pull1", + "pulldown", + "pullup", + "pulsestyle_ondetect", + "pulsestyle_onevent", + "pure", + "rand", + "randc", + "randcase", + "randsequence", + "rcmos", + "real", + "realtime", + "ref", + "reg", + "reject_on", + "release", + "repeat", + "restrict", + "return", + "rnmos", + "rpmos", + "rtran", + "rtranif0", + "rtranif1", + "s_always", + "s_eventually", + "s_nexttime", + "s_until", + "s_until_with", + "scalared", + "sequence", + "shortint", + "shortreal", + "showcancelled", + "signed", + "small", + "soft", + "solve", + "specify", + "specparam", + "static", + "string", + "strong", + "strong0", + "strong1", + "struct", + "super", + "supply0", + "supply1", + "sync_accept_on", + "sync_reject_on", + "table", + "tagged", + "task", + "this", + "throughout", + "time", + "timeprecision", + "timeunit", + "tran", + "tranif0", + "tranif1", + "tri", + "tri0", + "tri1", + "triand", + "trior", + "trireg", + "type", + "typedef", + "union", + "unique", + "unique0", + "unsigned", + "until", + "until_with", + "untyped", + "use", + "uwire", + "var", + "vectored", + "virtual", + "void", + "wait", + "wait_order", + "wand", + "weak", + "weak0", + "weak1", + "while", + "wildcard", + "wire", + "with", + "within", + "wor", + "xnor", + "xor" + ], + literal: [ 'null' ], + built_in: [ + "$finish", + "$stop", + "$exit", + "$fatal", + "$error", + "$warning", + "$info", + "$realtime", + "$time", + "$printtimescale", + "$bitstoreal", + "$bitstoshortreal", + "$itor", + "$signed", + "$cast", + "$bits", + "$stime", + "$timeformat", + "$realtobits", + "$shortrealtobits", + "$rtoi", + "$unsigned", + "$asserton", + "$assertkill", + "$assertpasson", + "$assertfailon", + "$assertnonvacuouson", + "$assertoff", + "$assertcontrol", + "$assertpassoff", + "$assertfailoff", + "$assertvacuousoff", + "$isunbounded", + "$sampled", + "$fell", + "$changed", + "$past_gclk", + "$fell_gclk", + "$changed_gclk", + "$rising_gclk", + "$steady_gclk", + "$coverage_control", + "$coverage_get", + "$coverage_save", + "$set_coverage_db_name", + "$rose", + "$stable", + "$past", + "$rose_gclk", + "$stable_gclk", + "$future_gclk", + "$falling_gclk", + "$changing_gclk", + "$display", + "$coverage_get_max", + "$coverage_merge", + "$get_coverage", + "$load_coverage_db", + "$typename", + "$unpacked_dimensions", + "$left", + "$low", + "$increment", + "$clog2", + "$ln", + "$log10", + "$exp", + "$sqrt", + "$pow", + "$floor", + "$ceil", + "$sin", + "$cos", + "$tan", + "$countbits", + "$onehot", + "$isunknown", + "$fatal", + "$warning", + "$dimensions", + "$right", + "$high", + "$size", + "$asin", + "$acos", + "$atan", + "$atan2", + "$hypot", + "$sinh", + "$cosh", + "$tanh", + "$asinh", + "$acosh", + "$atanh", + "$countones", + "$onehot0", + "$error", + "$info", + "$random", + "$dist_chi_square", + "$dist_erlang", + "$dist_exponential", + "$dist_normal", + "$dist_poisson", + "$dist_t", + "$dist_uniform", + "$q_initialize", + "$q_remove", + "$q_exam", + "$async$and$array", + "$async$nand$array", + "$async$or$array", + "$async$nor$array", + "$sync$and$array", + "$sync$nand$array", + "$sync$or$array", + "$sync$nor$array", + "$q_add", + "$q_full", + "$psprintf", + "$async$and$plane", + "$async$nand$plane", + "$async$or$plane", + "$async$nor$plane", + "$sync$and$plane", + "$sync$nand$plane", + "$sync$or$plane", + "$sync$nor$plane", + "$system", + "$display", + "$displayb", + "$displayh", + "$displayo", + "$strobe", + "$strobeb", + "$strobeh", + "$strobeo", + "$write", + "$readmemb", + "$readmemh", + "$writememh", + "$value$plusargs", + "$dumpvars", + "$dumpon", + "$dumplimit", + "$dumpports", + "$dumpportson", + "$dumpportslimit", + "$writeb", + "$writeh", + "$writeo", + "$monitor", + "$monitorb", + "$monitorh", + "$monitoro", + "$writememb", + "$dumpfile", + "$dumpoff", + "$dumpall", + "$dumpflush", + "$dumpportsoff", + "$dumpportsall", + "$dumpportsflush", + "$fclose", + "$fdisplay", + "$fdisplayb", + "$fdisplayh", + "$fdisplayo", + "$fstrobe", + "$fstrobeb", + "$fstrobeh", + "$fstrobeo", + "$swrite", + "$swriteb", + "$swriteh", + "$swriteo", + "$fscanf", + "$fread", + "$fseek", + "$fflush", + "$feof", + "$fopen", + "$fwrite", + "$fwriteb", + "$fwriteh", + "$fwriteo", + "$fmonitor", + "$fmonitorb", + "$fmonitorh", + "$fmonitoro", + "$sformat", + "$sformatf", + "$fgetc", + "$ungetc", + "$fgets", + "$sscanf", + "$rewind", + "$ftell", + "$ferror" + ] + }; + const BUILT_IN_CONSTANTS = [ + "__FILE__", + "__LINE__" + ]; + const DIRECTIVES = [ + "begin_keywords", + "celldefine", + "default_nettype", + "default_decay_time", + "default_trireg_strength", + "define", + "delay_mode_distributed", + "delay_mode_path", + "delay_mode_unit", + "delay_mode_zero", + "else", + "elsif", + "end_keywords", + "endcelldefine", + "endif", + "ifdef", + "ifndef", + "include", + "line", + "nounconnected_drive", + "pragma", + "resetall", + "timescale", + "unconnected_drive", + "undef", + "undefineall" + ]; + + return { + name: 'Verilog', + aliases: [ + 'v', + 'sv', + 'svh' + ], + case_insensitive: false, + keywords: KEYWORDS, + contains: [ + hljs.C_BLOCK_COMMENT_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.QUOTE_STRING_MODE, + { + scope: 'number', + contains: [ hljs.BACKSLASH_ESCAPE ], + variants: [ + { begin: /\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/ }, + { begin: /\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/ }, + { // decimal + begin: /\b[0-9][0-9_]*/, + relevance: 0 + } + ] + }, + /* parameters to instances */ + { + scope: 'variable', + variants: [ + { begin: '#\\((?!parameter).+\\)' }, + { + begin: '\\.\\w+', + relevance: 0 + } + ] + }, + { + scope: 'variable.constant', + match: regex.concat(/`/, regex.either(...BUILT_IN_CONSTANTS)), + }, + { + scope: 'meta', + begin: regex.concat(/`/, regex.either(...DIRECTIVES)), + end: /$|\/\/|\/\*/, + returnEnd: true, + keywords: DIRECTIVES + } + ] + }; +} + +export { verilog as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/verilog.js.js b/tools/ui/node_modules/highlight.js/es/languages/verilog.js.js new file mode 100644 index 0000000000000000000000000000000000000000..2dc028fca20463c17a68b2d4b5e450f599276363 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/verilog.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/verilog" instead of "highlight.js/lib/languages/verilog.js"' + ); + } + } + emitWarning(); + import lang from './verilog.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/vhdl.js b/tools/ui/node_modules/highlight.js/es/languages/vhdl.js new file mode 100644 index 0000000000000000000000000000000000000000..89e20473d8d35ec80c5da79c83beeb5bc619ea5b --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vhdl.js @@ -0,0 +1,216 @@ +/* +Language: VHDL +Author: Igor Kalnitsky +Contributors: Daniel C.K. Kho , Guillaume Savaton +Description: VHDL is a hardware description language used in electronic design automation to describe digital and mixed-signal systems. +Website: https://en.wikipedia.org/wiki/VHDL +Category: hardware +*/ + +function vhdl(hljs) { + // Regular expression for VHDL numeric literals. + + // Decimal literal: + const INTEGER_RE = '\\d(_|\\d)*'; + const EXPONENT_RE = '[eE][-+]?' + INTEGER_RE; + const DECIMAL_LITERAL_RE = INTEGER_RE + '(\\.' + INTEGER_RE + ')?' + '(' + EXPONENT_RE + ')?'; + // Based literal: + const BASED_INTEGER_RE = '\\w+'; + const BASED_LITERAL_RE = INTEGER_RE + '#' + BASED_INTEGER_RE + '(\\.' + BASED_INTEGER_RE + ')?' + '#' + '(' + EXPONENT_RE + ')?'; + + const NUMBER_RE = '\\b(' + BASED_LITERAL_RE + '|' + DECIMAL_LITERAL_RE + ')'; + + const KEYWORDS = [ + "abs", + "access", + "after", + "alias", + "all", + "and", + "architecture", + "array", + "assert", + "assume", + "assume_guarantee", + "attribute", + "begin", + "block", + "body", + "buffer", + "bus", + "case", + "component", + "configuration", + "constant", + "context", + "cover", + "disconnect", + "downto", + "default", + "else", + "elsif", + "end", + "entity", + "exit", + "fairness", + "file", + "for", + "force", + "function", + "generate", + "generic", + "group", + "guarded", + "if", + "impure", + "in", + "inertial", + "inout", + "is", + "label", + "library", + "linkage", + "literal", + "loop", + "map", + "mod", + "nand", + "new", + "next", + "nor", + "not", + "null", + "of", + "on", + "open", + "or", + "others", + "out", + "package", + "parameter", + "port", + "postponed", + "procedure", + "process", + "property", + "protected", + "pure", + "range", + "record", + "register", + "reject", + "release", + "rem", + "report", + "restrict", + "restrict_guarantee", + "return", + "rol", + "ror", + "select", + "sequence", + "severity", + "shared", + "signal", + "sla", + "sll", + "sra", + "srl", + "strong", + "subtype", + "then", + "to", + "transport", + "type", + "unaffected", + "units", + "until", + "use", + "variable", + "view", + "vmode", + "vprop", + "vunit", + "wait", + "when", + "while", + "with", + "xnor", + "xor" + ]; + const BUILT_INS = [ + "boolean", + "bit", + "character", + "integer", + "time", + "delay_length", + "natural", + "positive", + "string", + "bit_vector", + "file_open_kind", + "file_open_status", + "std_logic", + "std_logic_vector", + "unsigned", + "signed", + "boolean_vector", + "integer_vector", + "std_ulogic", + "std_ulogic_vector", + "unresolved_unsigned", + "u_unsigned", + "unresolved_signed", + "u_signed", + "real_vector", + "time_vector" + ]; + const LITERALS = [ + // severity_level + "false", + "true", + "note", + "warning", + "error", + "failure", + // textio + "line", + "text", + "side", + "width" + ]; + + return { + name: 'VHDL', + case_insensitive: true, + keywords: { + keyword: KEYWORDS, + built_in: BUILT_INS, + literal: LITERALS + }, + illegal: /\{/, + contains: [ + hljs.C_BLOCK_COMMENT_MODE, // VHDL-2008 block commenting. + hljs.COMMENT('--', '$'), + hljs.QUOTE_STRING_MODE, + { + className: 'number', + begin: NUMBER_RE, + relevance: 0 + }, + { + className: 'string', + begin: '\'(U|X|0|1|Z|W|L|H|-)\'', + contains: [ hljs.BACKSLASH_ESCAPE ] + }, + { + className: 'symbol', + begin: '\'[A-Za-z](_?[A-Za-z0-9])*', + contains: [ hljs.BACKSLASH_ESCAPE ] + } + ] + }; +} + +export { vhdl as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/vhdl.js.js b/tools/ui/node_modules/highlight.js/es/languages/vhdl.js.js new file mode 100644 index 0000000000000000000000000000000000000000..237e2b36444b5ee686edac762ca69fe860dba483 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vhdl.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vhdl" instead of "highlight.js/lib/languages/vhdl.js"' + ); + } + } + emitWarning(); + import lang from './vhdl.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/vim.js b/tools/ui/node_modules/highlight.js/es/languages/vim.js new file mode 100644 index 0000000000000000000000000000000000000000..bbc6ce0f73376393d4b9ecd640983caa678117e2 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vim.js @@ -0,0 +1,129 @@ +/* +Language: Vim Script +Author: Jun Yang +Description: full keyword and built-in from http://vimdoc.sourceforge.net/htmldoc/ +Website: https://www.vim.org +Category: scripting +*/ + +function vim(hljs) { + return { + name: 'Vim Script', + keywords: { + $pattern: /[!#@\w]+/, + keyword: + // express version except: ! & * < = > !! # @ @@ + 'N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope ' + + 'cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ' + + 'ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 ' + + 'profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor ' + + 'so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew ' + + 'tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ ' + // full version + + 'Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload ' + + 'bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap ' + + 'cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor ' + + 'endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap ' + + 'imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview ' + + 'lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap ' + + 'nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ' + + 'ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding ' + + 'scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace ' + + 'startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious ' + 'trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew ' + + 'vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank', + built_in: // built in func + 'synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv ' + + 'complete_check add getwinposx getqflist getwinposy screencol ' + + 'clearmatches empty extend getcmdpos mzeval garbagecollect setreg ' + + 'ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable ' + + 'shiftwidth max sinh isdirectory synID system inputrestore winline ' + + 'atan visualmode inputlist tabpagewinnr round getregtype mapcheck ' + + 'hasmapto histdel argidx findfile sha256 exists toupper getcmdline ' + + 'taglist string getmatches bufnr strftime winwidth bufexists ' + + 'strtrans tabpagebuflist setcmdpos remote_read printf setloclist ' + + 'getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval ' + + 'resolve libcallnr foldclosedend reverse filter has_key bufname ' + + 'str2float strlen setline getcharmod setbufvar index searchpos ' + + 'shellescape undofile foldclosed setqflist buflisted strchars str2nr ' + + 'virtcol floor remove undotree remote_expr winheight gettabwinvar ' + + 'reltime cursor tabpagenr finddir localtime acos getloclist search ' + + 'tanh matchend rename gettabvar strdisplaywidth type abs py3eval ' + + 'setwinvar tolower wildmenumode log10 spellsuggest bufloaded ' + + 'synconcealed nextnonblank server2client complete settabwinvar ' + + 'executable input wincol setmatches getftype hlID inputsave ' + + 'searchpair or screenrow line settabvar histadd deepcopy strpart ' + + 'remote_peek and eval getftime submatch screenchar winsaveview ' + + 'matchadd mkdir screenattr getfontname libcall reltimestr getfsize ' + + 'winnr invert pow getbufline byte2line soundfold repeat fnameescape ' + + 'tagfiles sin strwidth spellbadword trunc maparg log lispindent ' + + 'hostname setpos globpath remote_foreground getchar synIDattr ' + + 'fnamemodify cscope_connection stridx winbufnr indent min ' + + 'complete_add nr2char searchpairpos inputdialog values matchlist ' + + 'items hlexists strridx browsedir expand fmod pathshorten line2byte ' + + 'argc count getwinvar glob foldtextresult getreg foreground cosh ' + + 'matchdelete has char2nr simplify histget searchdecl iconv ' + + 'winrestcmd pumvisible writefile foldlevel haslocaldir keys cos ' + + 'matchstr foldtext histnr tan tempname getcwd byteidx getbufvar ' + + 'islocked escape eventhandler remote_send serverlist winrestview ' + + 'synstack pyeval prevnonblank readfile cindent filereadable changenr ' + + 'exp' + }, + illegal: /;/, + contains: [ + hljs.NUMBER_MODE, + { + className: 'string', + begin: '\'', + end: '\'', + illegal: '\\n' + }, + + /* + A double quote can start either a string or a line comment. Strings are + ended before the end of a line by another double quote and can contain + escaped double-quotes and post-escaped line breaks. + + Also, any double quote at the beginning of a line is a comment but we + don't handle that properly at the moment: any double quote inside will + turn them into a string. Handling it properly will require a smarter + parser. + */ + { + className: 'string', + begin: /"(\\"|\n\\|[^"\n])*"/ + }, + hljs.COMMENT('"', '$'), + + { + className: 'variable', + begin: /[bwtglsav]:[\w\d_]+/ + }, + { + begin: [ + /\b(?:function|function!)/, + /\s+/, + hljs.IDENT_RE + ], + className: { + 1: "keyword", + 3: "title" + }, + end: '$', + relevance: 0, + contains: [ + { + className: 'params', + begin: '\\(', + end: '\\)' + } + ] + }, + { + className: 'symbol', + begin: /<[\w-]+>/ + } + ] + }; +} + +export { vim as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/vim.js.js b/tools/ui/node_modules/highlight.js/es/languages/vim.js.js new file mode 100644 index 0000000000000000000000000000000000000000..e47c5c96d861c6ef817f91467d92255a4ba05719 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/vim.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vim" instead of "highlight.js/lib/languages/vim.js"' + ); + } + } + emitWarning(); + import lang from './vim.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/wasm.js b/tools/ui/node_modules/highlight.js/es/languages/wasm.js new file mode 100644 index 0000000000000000000000000000000000000000..611f60493eedb48f1b690aaf33f86d1946db12a2 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/wasm.js @@ -0,0 +1,139 @@ +/* +Language: WebAssembly +Website: https://webassembly.org +Description: Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications. +Category: web, common +Audit: 2020 +*/ + +/** @type LanguageFn */ +function wasm(hljs) { + hljs.regex; + const BLOCK_COMMENT = hljs.COMMENT(/\(;/, /;\)/); + BLOCK_COMMENT.contains.push("self"); + const LINE_COMMENT = hljs.COMMENT(/;;/, /$/); + + const KWS = [ + "anyfunc", + "block", + "br", + "br_if", + "br_table", + "call", + "call_indirect", + "data", + "drop", + "elem", + "else", + "end", + "export", + "func", + "global.get", + "global.set", + "local.get", + "local.set", + "local.tee", + "get_global", + "get_local", + "global", + "if", + "import", + "local", + "loop", + "memory", + "memory.grow", + "memory.size", + "module", + "mut", + "nop", + "offset", + "param", + "result", + "return", + "select", + "set_global", + "set_local", + "start", + "table", + "tee_local", + "then", + "type", + "unreachable" + ]; + + const FUNCTION_REFERENCE = { + begin: [ + /(?:func|call|call_indirect)/, + /\s+/, + /\$[^\s)]+/ + ], + className: { + 1: "keyword", + 3: "title.function" + } + }; + + const ARGUMENT = { + className: "variable", + begin: /\$[\w_]+/ + }; + + const PARENS = { + match: /(\((?!;)|\))+/, + className: "punctuation", + relevance: 0 + }; + + const NUMBER = { + className: "number", + relevance: 0, + // borrowed from Prism, TODO: split out into variants + match: /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/ + }; + + const TYPE = { + // look-ahead prevents us from gobbling up opcodes + match: /(i32|i64|f32|f64)(?!\.)/, + className: "type" + }; + + const MATH_OPERATIONS = { + className: "keyword", + // borrowed from Prism, TODO: split out into variants + match: /\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/ + }; + + const OFFSET_ALIGN = { + match: [ + /(?:offset|align)/, + /\s*/, + /=/ + ], + className: { + 1: "keyword", + 3: "operator" + } + }; + + return { + name: 'WebAssembly', + keywords: { + $pattern: /[\w.]+/, + keyword: KWS + }, + contains: [ + LINE_COMMENT, + BLOCK_COMMENT, + OFFSET_ALIGN, + ARGUMENT, + PARENS, + FUNCTION_REFERENCE, + hljs.QUOTE_STRING_MODE, + TYPE, + MATH_OPERATIONS, + NUMBER + ] + }; +} + +export { wasm as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/wasm.js.js b/tools/ui/node_modules/highlight.js/es/languages/wasm.js.js new file mode 100644 index 0000000000000000000000000000000000000000..2eb9cda3c6c801e19f06dc2a9ba8f6d179a811b2 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/wasm.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/wasm" instead of "highlight.js/lib/languages/wasm.js"' + ); + } + } + emitWarning(); + import lang from './wasm.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/wren.js b/tools/ui/node_modules/highlight.js/es/languages/wren.js new file mode 100644 index 0000000000000000000000000000000000000000..8970c9ed2f63d1e4e9400b37a0d8a5bbfe9cd51d --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/wren.js @@ -0,0 +1,302 @@ +/* +Language: Wren +Description: Think Smalltalk in a Lua-sized package with a dash of Erlang and wrapped up in a familiar, modern syntax. +Category: scripting +Author: @joshgoebel +Maintainer: @joshgoebel +Website: https://wren.io/ +*/ + +/** @type LanguageFn */ +function wren(hljs) { + const regex = hljs.regex; + const IDENT_RE = /[a-zA-Z]\w*/; + const KEYWORDS = [ + "as", + "break", + "class", + "construct", + "continue", + "else", + "for", + "foreign", + "if", + "import", + "in", + "is", + "return", + "static", + "var", + "while" + ]; + const LITERALS = [ + "true", + "false", + "null" + ]; + const LANGUAGE_VARS = [ + "this", + "super" + ]; + const CORE_CLASSES = [ + "Bool", + "Class", + "Fiber", + "Fn", + "List", + "Map", + "Null", + "Num", + "Object", + "Range", + "Sequence", + "String", + "System" + ]; + const OPERATORS = [ + "-", + "~", + /\*/, + "%", + /\.\.\./, + /\.\./, + /\+/, + "<<", + ">>", + ">=", + "<=", + "<", + ">", + /\^/, + /!=/, + /!/, + /\bis\b/, + "==", + "&&", + "&", + /\|\|/, + /\|/, + /\?:/, + "=" + ]; + const FUNCTION = { + relevance: 0, + match: regex.concat(/\b(?!(if|while|for|else|super)\b)/, IDENT_RE, /(?=\s*[({])/), + className: "title.function" + }; + const FUNCTION_DEFINITION = { + match: regex.concat( + regex.either( + regex.concat(/\b(?!(if|while|for|else|super)\b)/, IDENT_RE), + regex.either(...OPERATORS) + ), + /(?=\s*\([^)]+\)\s*\{)/), + className: "title.function", + starts: { contains: [ + { + begin: /\(/, + end: /\)/, + contains: [ + { + relevance: 0, + scope: "params", + match: IDENT_RE + } + ] + } + ] } + }; + const CLASS_DEFINITION = { + variants: [ + { match: [ + /class\s+/, + IDENT_RE, + /\s+is\s+/, + IDENT_RE + ] }, + { match: [ + /class\s+/, + IDENT_RE + ] } + ], + scope: { + 2: "title.class", + 4: "title.class.inherited" + }, + keywords: KEYWORDS + }; + + const OPERATOR = { + relevance: 0, + match: regex.either(...OPERATORS), + className: "operator" + }; + + const TRIPLE_STRING = { + className: "string", + begin: /"""/, + end: /"""/ + }; + + const PROPERTY = { + className: "property", + begin: regex.concat(/\./, regex.lookahead(IDENT_RE)), + end: IDENT_RE, + excludeBegin: true, + relevance: 0 + }; + + const FIELD = { + relevance: 0, + match: regex.concat(/\b_/, IDENT_RE), + scope: "variable" + }; + + // CamelCase + const CLASS_REFERENCE = { + relevance: 0, + match: /\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/, + scope: "title.class", + keywords: { _: CORE_CLASSES } + }; + + // TODO: add custom number modes + const NUMBER = hljs.C_NUMBER_MODE; + + const SETTER = { + match: [ + IDENT_RE, + /\s*/, + /=/, + /\s*/, + /\(/, + IDENT_RE, + /\)\s*\{/ + ], + scope: { + 1: "title.function", + 3: "operator", + 6: "params" + } + }; + + const COMMENT_DOCS = hljs.COMMENT( + /\/\*\*/, + /\*\//, + { contains: [ + { + match: /@[a-z]+/, + scope: "doctag" + }, + "self" + ] } + ); + const SUBST = { + scope: "subst", + begin: /%\(/, + end: /\)/, + contains: [ + NUMBER, + CLASS_REFERENCE, + FUNCTION, + FIELD, + OPERATOR + ] + }; + const STRING = { + scope: "string", + begin: /"/, + end: /"/, + contains: [ + SUBST, + { + scope: "char.escape", + variants: [ + { match: /\\\\|\\["0%abefnrtv]/ }, + { match: /\\x[0-9A-F]{2}/ }, + { match: /\\u[0-9A-F]{4}/ }, + { match: /\\U[0-9A-F]{8}/ } + ] + } + ] + }; + SUBST.contains.push(STRING); + + const ALL_KWS = [ + ...KEYWORDS, + ...LANGUAGE_VARS, + ...LITERALS + ]; + const VARIABLE = { + relevance: 0, + match: regex.concat( + "\\b(?!", + ALL_KWS.join("|"), + "\\b)", + /[a-zA-Z_]\w*(?:[?!]|\b)/ + ), + className: "variable" + }; + + // TODO: reconsider this in the future + const ATTRIBUTE = { + // scope: "meta", + scope: "comment", + variants: [ + { + begin: [ + /#!?/, + /[A-Za-z_]+(?=\()/ + ], + beginScope: { + // 2: "attr" + }, + keywords: { literal: LITERALS }, + contains: [ + // NUMBER, + // VARIABLE + ], + end: /\)/ + }, + { + begin: [ + /#!?/, + /[A-Za-z_]+/ + ], + beginScope: { + // 2: "attr" + }, + end: /$/ + } + ] + }; + + return { + name: "Wren", + keywords: { + keyword: KEYWORDS, + "variable.language": LANGUAGE_VARS, + literal: LITERALS + }, + contains: [ + ATTRIBUTE, + NUMBER, + STRING, + TRIPLE_STRING, + COMMENT_DOCS, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + CLASS_REFERENCE, + CLASS_DEFINITION, + SETTER, + FUNCTION_DEFINITION, + FUNCTION, + OPERATOR, + FIELD, + PROPERTY, + VARIABLE + ] + }; +} + +export { wren as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/wren.js.js b/tools/ui/node_modules/highlight.js/es/languages/wren.js.js new file mode 100644 index 0000000000000000000000000000000000000000..68eb881745d6818842c4d5e3bf3694737dabe93e --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/wren.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/wren" instead of "highlight.js/lib/languages/wren.js"' + ); + } + } + emitWarning(); + import lang from './wren.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/x86asm.js b/tools/ui/node_modules/highlight.js/es/languages/x86asm.js new file mode 100644 index 0000000000000000000000000000000000000000..532093331ae0bcdf1ae2843ee906bde948cc112c --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/x86asm.js @@ -0,0 +1,153 @@ +/* +Language: Intel x86 Assembly +Author: innocenat +Description: x86 assembly language using Intel's mnemonic and NASM syntax +Website: https://en.wikipedia.org/wiki/X86_assembly_language +Category: assembler +*/ + +function x86asm(hljs) { + return { + name: 'Intel x86 Assembly', + case_insensitive: true, + keywords: { + $pattern: '[.%]?' + hljs.IDENT_RE, + keyword: + 'lock rep repe repz repne repnz xaquire xrelease bnd nobnd ' + + 'aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63', + built_in: + // Instruction pointer + 'ip eip rip ' + // 8-bit registers + + 'al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ' + // 16-bit registers + + 'ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w ' + // 32-bit registers + + 'eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d ' + // 64-bit registers + + 'rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 ' + // Segment registers + + 'cs ds es fs gs ss ' + // Floating point stack registers + + 'st st0 st1 st2 st3 st4 st5 st6 st7 ' + // MMX Registers + + 'mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 ' + // SSE registers + + 'xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 ' + + 'xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ' + // AVX registers + + 'ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ' + + 'ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 ' + // AVX-512F registers + + 'zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 ' + + 'zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 ' + // AVX-512F mask registers + + 'k0 k1 k2 k3 k4 k5 k6 k7 ' + // Bound (MPX) register + + 'bnd0 bnd1 bnd2 bnd3 ' + // Special register + + 'cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 ' + // NASM altreg package + + 'r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b ' + + 'r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d ' + + 'r0h r1h r2h r3h ' + + 'r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l ' + + + 'db dw dd dq dt ddq do dy dz ' + + 'resb resw resd resq rest resdq reso resy resz ' + + 'incbin equ times ' + + 'byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr', + + meta: + '%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif ' + + '%if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep ' + + '%endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment ' + + '.nolist ' + + '__FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ ' + + '__UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend ' + + 'align alignb sectalign daz nodaz up down zero default option assume public ' + + + 'bits use16 use32 use64 default section segment absolute extern global common cpu float ' + + '__utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ ' + + '__float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ ' + + '__Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e ' + + 'float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__' + }, + contains: [ + hljs.COMMENT( + ';', + '$', + { relevance: 0 } + ), + { + className: 'number', + variants: [ + // Float number and x87 BCD + { + begin: '\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|' + + '(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b', + relevance: 0 + }, + + // Hex number in $ + { + begin: '\\$[0-9][0-9A-Fa-f]*', + relevance: 0 + }, + + // Number in H,D,T,Q,O,B,Y suffix + { begin: '\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b' }, + + // Number in X,D,T,Q,O,B,Y prefix + { begin: '\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b' } + ] + }, + // Double quote string + hljs.QUOTE_STRING_MODE, + { + className: 'string', + variants: [ + // Single-quoted string + { + begin: '\'', + end: '[^\\\\]\'' + }, + // Backquoted string + { + begin: '`', + end: '[^\\\\]`' + } + ], + relevance: 0 + }, + { + className: 'symbol', + variants: [ + // Global label and local label + { begin: '^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)' }, + // Macro-local label + { begin: '^\\s*%%[A-Za-z0-9_$#@~.?]*:' } + ], + relevance: 0 + }, + // Macro parameter + { + className: 'subst', + begin: '%[0-9]+', + relevance: 0 + }, + // Macro parameter + { + className: 'subst', + begin: '%!\S+', + relevance: 0 + }, + { + className: 'meta', + begin: /^\s*\.[\w_-]+/ + } + ] + }; +} + +export { x86asm as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/x86asm.js.js b/tools/ui/node_modules/highlight.js/es/languages/x86asm.js.js new file mode 100644 index 0000000000000000000000000000000000000000..d52be08308b943c1e82a20a18e79399373786734 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/x86asm.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/x86asm" instead of "highlight.js/lib/languages/x86asm.js"' + ); + } + } + emitWarning(); + import lang from './x86asm.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/xl.js b/tools/ui/node_modules/highlight.js/es/languages/xl.js new file mode 100644 index 0000000000000000000000000000000000000000..b21085eb2948ff9783d46af0354542c867e1bad0 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/xl.js @@ -0,0 +1,205 @@ +/* +Language: XL +Author: Christophe de Dinechin +Description: An extensible programming language, based on parse tree rewriting +Website: http://xlr.sf.net +*/ + +function xl(hljs) { + const KWS = [ + "if", + "then", + "else", + "do", + "while", + "until", + "for", + "loop", + "import", + "with", + "is", + "as", + "where", + "when", + "by", + "data", + "constant", + "integer", + "real", + "text", + "name", + "boolean", + "symbol", + "infix", + "prefix", + "postfix", + "block", + "tree" + ]; + const BUILT_INS = [ + "in", + "mod", + "rem", + "and", + "or", + "xor", + "not", + "abs", + "sign", + "floor", + "ceil", + "sqrt", + "sin", + "cos", + "tan", + "asin", + "acos", + "atan", + "exp", + "expm1", + "log", + "log2", + "log10", + "log1p", + "pi", + "at", + "text_length", + "text_range", + "text_find", + "text_replace", + "contains", + "page", + "slide", + "basic_slide", + "title_slide", + "title", + "subtitle", + "fade_in", + "fade_out", + "fade_at", + "clear_color", + "color", + "line_color", + "line_width", + "texture_wrap", + "texture_transform", + "texture", + "scale_?x", + "scale_?y", + "scale_?z?", + "translate_?x", + "translate_?y", + "translate_?z?", + "rotate_?x", + "rotate_?y", + "rotate_?z?", + "rectangle", + "circle", + "ellipse", + "sphere", + "path", + "line_to", + "move_to", + "quad_to", + "curve_to", + "theme", + "background", + "contents", + "locally", + "time", + "mouse_?x", + "mouse_?y", + "mouse_buttons" + ]; + const BUILTIN_MODULES = [ + "ObjectLoader", + "Animate", + "MovieCredits", + "Slides", + "Filters", + "Shading", + "Materials", + "LensFlare", + "Mapping", + "VLCAudioVideo", + "StereoDecoder", + "PointCloud", + "NetworkAccess", + "RemoteControl", + "RegExp", + "ChromaKey", + "Snowfall", + "NodeJS", + "Speech", + "Charts" + ]; + const LITERALS = [ + "true", + "false", + "nil" + ]; + const KEYWORDS = { + $pattern: /[a-zA-Z][a-zA-Z0-9_?]*/, + keyword: KWS, + literal: LITERALS, + built_in: BUILT_INS.concat(BUILTIN_MODULES) + }; + + const DOUBLE_QUOTE_TEXT = { + className: 'string', + begin: '"', + end: '"', + illegal: '\\n' + }; + const SINGLE_QUOTE_TEXT = { + className: 'string', + begin: '\'', + end: '\'', + illegal: '\\n' + }; + const LONG_TEXT = { + className: 'string', + begin: '<<', + end: '>>' + }; + const BASED_NUMBER = { + className: 'number', + begin: '[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?' + }; + const IMPORT = { + beginKeywords: 'import', + end: '$', + keywords: KEYWORDS, + contains: [ DOUBLE_QUOTE_TEXT ] + }; + const FUNCTION_DEFINITION = { + className: 'function', + begin: /[a-z][^\n]*->/, + returnBegin: true, + end: /->/, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { starts: { + endsWithParent: true, + keywords: KEYWORDS + } }) + ] + }; + return { + name: 'XL', + aliases: [ 'tao' ], + keywords: KEYWORDS, + contains: [ + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE, + DOUBLE_QUOTE_TEXT, + SINGLE_QUOTE_TEXT, + LONG_TEXT, + FUNCTION_DEFINITION, + IMPORT, + BASED_NUMBER, + hljs.NUMBER_MODE + ] + }; +} + +export { xl as default }; diff --git a/tools/ui/node_modules/highlight.js/es/languages/xl.js.js b/tools/ui/node_modules/highlight.js/es/languages/xl.js.js new file mode 100644 index 0000000000000000000000000000000000000000..fa3d9dc49f57f9d743bee049a8ba7917db044764 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/xl.js.js @@ -0,0 +1,11 @@ +function emitWarning() { + if (!emitWarning.warned) { + emitWarning.warned = true; + console.log( + 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/xl" instead of "highlight.js/lib/languages/xl.js"' + ); + } + } + emitWarning(); + import lang from './xl.js'; + export default lang; \ No newline at end of file diff --git a/tools/ui/node_modules/highlight.js/es/languages/xml.js b/tools/ui/node_modules/highlight.js/es/languages/xml.js new file mode 100644 index 0000000000000000000000000000000000000000..6df7c19ca8bc8a8f14093ad8e65965e95d5ca4c6 --- /dev/null +++ b/tools/ui/node_modules/highlight.js/es/languages/xml.js @@ -0,0 +1,241 @@ +/* +Language: HTML, XML +Website: https://www.w3.org/XML/ +Category: common, web +Audit: 2020 +*/ + +/** @type LanguageFn */ +function xml(hljs) { + const regex = hljs.regex; + // XML names can have the following additional letters: https://www.w3.org/TR/xml/#NT-NameChar + // OTHER_NAME_CHARS = /[:\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]/; + // Element names start with NAME_START_CHAR followed by optional other Unicode letters, ASCII digits, hyphens, underscores, and periods + // const TAG_NAME_RE = regex.concat(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, regex.optional(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*:/), /[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*/);; + // const XML_IDENT_RE = /[A-Z_a-z:\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]+/; + // const TAG_NAME_RE = regex.concat(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, regex.optional(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*:/), /[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*/); + // however, to cater for performance and more Unicode support rely simply on the Unicode letter class + const TAG_NAME_RE = regex.concat(/[\p{L}_]/u, regex.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u); + const XML_IDENT_RE = /[\p{L}0-9._:-]+/u; + const XML_ENTITIES = { + className: 'symbol', + begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ + }; + const XML_META_KEYWORDS = { + begin: /\s/, + contains: [ + { + className: 'keyword', + begin: /#?[a-z_][a-z1-9_-]+/, + illegal: /\n/ + } + ] + }; + const XML_META_PAR_KEYWORDS = hljs.inherit(XML_META_KEYWORDS, { + begin: /\(/, + end: /\)/ + }); + const APOS_META_STRING_MODE = hljs.inherit(hljs.APOS_STRING_MODE, { className: 'string' }); + const QUOTE_META_STRING_MODE = hljs.inherit(hljs.QUOTE_STRING_MODE, { className: 'string' }); + const TAG_INTERNALS = { + endsWithParent: true, + illegal: /`]+/ } + ] + } + ] + } + ] + }; + return { + name: 'HTML, XML', + aliases: [ + 'html', + 'xhtml', + 'rss', + 'atom', + 'xjb', + 'xsd', + 'xsl', + 'plist', + 'wsf', + 'svg' + ], + case_insensitive: true, + unicodeRegex: true, + contains: [ + { + className: 'meta', + begin: //, + relevance: 10, + contains: [ + XML_META_KEYWORDS, + QUOTE_META_STRING_MODE, + APOS_META_STRING_MODE, + XML_META_PAR_KEYWORDS, + { + begin: /\[/, + end: /\]/, + contains: [ + { + className: 'meta', + begin: //, + contains: [ + XML_META_KEYWORDS, + XML_META_PAR_KEYWORDS, + QUOTE_META_STRING_MODE, + APOS_META_STRING_MODE + ] + } + ] + } + ] + }, + hljs.COMMENT( + //, + { relevance: 10 } + ), + { + begin: //, + relevance: 10 + }, + XML_ENTITIES, + // xml processing instructions + { + className: 'meta', + end: /\?>/, + variants: [ + { + begin: /<\?xml/, + relevance: 10, + contains: [ + QUOTE_META_STRING_MODE + ] + }, + { + begin: /<\?[a-z][a-z0-9]+/, + } + ] + + }, + { + className: 'tag', + /* + The lookahead pattern (?=...) ensures that 'begin' only matches + ')/, + end: />/, + keywords: { name: 'style' }, + contains: [ TAG_INTERNALS ], + starts: { + end: /<\/style>/, + returnEnd: true, + subLanguage: [ + 'css', + 'xml' + ] + } + }, + { + className: 'tag', + // See the comment in the