完成世界书、骰子、apiconfig页面处理
This commit is contained in:
299
frontend/node_modules/lowlight/index.js
generated
vendored
Normal file
299
frontend/node_modules/lowlight/index.js
generated
vendored
Normal file
@@ -0,0 +1,299 @@
|
||||
'use strict'
|
||||
|
||||
var low = require('./lib/core.js')
|
||||
|
||||
module.exports = low
|
||||
|
||||
low.registerLanguage('1c', require('highlight.js/lib/languages/1c'))
|
||||
low.registerLanguage('abnf', require('highlight.js/lib/languages/abnf'))
|
||||
low.registerLanguage(
|
||||
'accesslog',
|
||||
require('highlight.js/lib/languages/accesslog')
|
||||
)
|
||||
low.registerLanguage(
|
||||
'actionscript',
|
||||
require('highlight.js/lib/languages/actionscript')
|
||||
)
|
||||
low.registerLanguage('ada', require('highlight.js/lib/languages/ada'))
|
||||
low.registerLanguage(
|
||||
'angelscript',
|
||||
require('highlight.js/lib/languages/angelscript')
|
||||
)
|
||||
low.registerLanguage('apache', require('highlight.js/lib/languages/apache'))
|
||||
low.registerLanguage(
|
||||
'applescript',
|
||||
require('highlight.js/lib/languages/applescript')
|
||||
)
|
||||
low.registerLanguage('arcade', require('highlight.js/lib/languages/arcade'))
|
||||
low.registerLanguage('arduino', require('highlight.js/lib/languages/arduino'))
|
||||
low.registerLanguage('armasm', require('highlight.js/lib/languages/armasm'))
|
||||
low.registerLanguage('xml', require('highlight.js/lib/languages/xml'))
|
||||
low.registerLanguage('asciidoc', require('highlight.js/lib/languages/asciidoc'))
|
||||
low.registerLanguage('aspectj', require('highlight.js/lib/languages/aspectj'))
|
||||
low.registerLanguage(
|
||||
'autohotkey',
|
||||
require('highlight.js/lib/languages/autohotkey')
|
||||
)
|
||||
low.registerLanguage('autoit', require('highlight.js/lib/languages/autoit'))
|
||||
low.registerLanguage('avrasm', require('highlight.js/lib/languages/avrasm'))
|
||||
low.registerLanguage('awk', require('highlight.js/lib/languages/awk'))
|
||||
low.registerLanguage('axapta', require('highlight.js/lib/languages/axapta'))
|
||||
low.registerLanguage('bash', require('highlight.js/lib/languages/bash'))
|
||||
low.registerLanguage('basic', require('highlight.js/lib/languages/basic'))
|
||||
low.registerLanguage('bnf', require('highlight.js/lib/languages/bnf'))
|
||||
low.registerLanguage(
|
||||
'brainfuck',
|
||||
require('highlight.js/lib/languages/brainfuck')
|
||||
)
|
||||
low.registerLanguage('c-like', require('highlight.js/lib/languages/c-like'))
|
||||
low.registerLanguage('c', require('highlight.js/lib/languages/c'))
|
||||
low.registerLanguage('cal', require('highlight.js/lib/languages/cal'))
|
||||
low.registerLanguage(
|
||||
'capnproto',
|
||||
require('highlight.js/lib/languages/capnproto')
|
||||
)
|
||||
low.registerLanguage('ceylon', require('highlight.js/lib/languages/ceylon'))
|
||||
low.registerLanguage('clean', require('highlight.js/lib/languages/clean'))
|
||||
low.registerLanguage('clojure', require('highlight.js/lib/languages/clojure'))
|
||||
low.registerLanguage(
|
||||
'clojure-repl',
|
||||
require('highlight.js/lib/languages/clojure-repl')
|
||||
)
|
||||
low.registerLanguage('cmake', require('highlight.js/lib/languages/cmake'))
|
||||
low.registerLanguage(
|
||||
'coffeescript',
|
||||
require('highlight.js/lib/languages/coffeescript')
|
||||
)
|
||||
low.registerLanguage('coq', require('highlight.js/lib/languages/coq'))
|
||||
low.registerLanguage('cos', require('highlight.js/lib/languages/cos'))
|
||||
low.registerLanguage('cpp', require('highlight.js/lib/languages/cpp'))
|
||||
low.registerLanguage('crmsh', require('highlight.js/lib/languages/crmsh'))
|
||||
low.registerLanguage('crystal', require('highlight.js/lib/languages/crystal'))
|
||||
low.registerLanguage('csharp', require('highlight.js/lib/languages/csharp'))
|
||||
low.registerLanguage('csp', require('highlight.js/lib/languages/csp'))
|
||||
low.registerLanguage('css', require('highlight.js/lib/languages/css'))
|
||||
low.registerLanguage('d', require('highlight.js/lib/languages/d'))
|
||||
low.registerLanguage('markdown', require('highlight.js/lib/languages/markdown'))
|
||||
low.registerLanguage('dart', require('highlight.js/lib/languages/dart'))
|
||||
low.registerLanguage('delphi', require('highlight.js/lib/languages/delphi'))
|
||||
low.registerLanguage('diff', require('highlight.js/lib/languages/diff'))
|
||||
low.registerLanguage('django', require('highlight.js/lib/languages/django'))
|
||||
low.registerLanguage('dns', require('highlight.js/lib/languages/dns'))
|
||||
low.registerLanguage(
|
||||
'dockerfile',
|
||||
require('highlight.js/lib/languages/dockerfile')
|
||||
)
|
||||
low.registerLanguage('dos', require('highlight.js/lib/languages/dos'))
|
||||
low.registerLanguage('dsconfig', require('highlight.js/lib/languages/dsconfig'))
|
||||
low.registerLanguage('dts', require('highlight.js/lib/languages/dts'))
|
||||
low.registerLanguage('dust', require('highlight.js/lib/languages/dust'))
|
||||
low.registerLanguage('ebnf', require('highlight.js/lib/languages/ebnf'))
|
||||
low.registerLanguage('elixir', require('highlight.js/lib/languages/elixir'))
|
||||
low.registerLanguage('elm', require('highlight.js/lib/languages/elm'))
|
||||
low.registerLanguage('ruby', require('highlight.js/lib/languages/ruby'))
|
||||
low.registerLanguage('erb', require('highlight.js/lib/languages/erb'))
|
||||
low.registerLanguage(
|
||||
'erlang-repl',
|
||||
require('highlight.js/lib/languages/erlang-repl')
|
||||
)
|
||||
low.registerLanguage('erlang', require('highlight.js/lib/languages/erlang'))
|
||||
low.registerLanguage('excel', require('highlight.js/lib/languages/excel'))
|
||||
low.registerLanguage('fix', require('highlight.js/lib/languages/fix'))
|
||||
low.registerLanguage('flix', require('highlight.js/lib/languages/flix'))
|
||||
low.registerLanguage('fortran', require('highlight.js/lib/languages/fortran'))
|
||||
low.registerLanguage('fsharp', require('highlight.js/lib/languages/fsharp'))
|
||||
low.registerLanguage('gams', require('highlight.js/lib/languages/gams'))
|
||||
low.registerLanguage('gauss', require('highlight.js/lib/languages/gauss'))
|
||||
low.registerLanguage('gcode', require('highlight.js/lib/languages/gcode'))
|
||||
low.registerLanguage('gherkin', require('highlight.js/lib/languages/gherkin'))
|
||||
low.registerLanguage('glsl', require('highlight.js/lib/languages/glsl'))
|
||||
low.registerLanguage('gml', require('highlight.js/lib/languages/gml'))
|
||||
low.registerLanguage('go', require('highlight.js/lib/languages/go'))
|
||||
low.registerLanguage('golo', require('highlight.js/lib/languages/golo'))
|
||||
low.registerLanguage('gradle', require('highlight.js/lib/languages/gradle'))
|
||||
low.registerLanguage('groovy', require('highlight.js/lib/languages/groovy'))
|
||||
low.registerLanguage('haml', require('highlight.js/lib/languages/haml'))
|
||||
low.registerLanguage(
|
||||
'handlebars',
|
||||
require('highlight.js/lib/languages/handlebars')
|
||||
)
|
||||
low.registerLanguage('haskell', require('highlight.js/lib/languages/haskell'))
|
||||
low.registerLanguage('haxe', require('highlight.js/lib/languages/haxe'))
|
||||
low.registerLanguage('hsp', require('highlight.js/lib/languages/hsp'))
|
||||
low.registerLanguage('htmlbars', require('highlight.js/lib/languages/htmlbars'))
|
||||
low.registerLanguage('http', require('highlight.js/lib/languages/http'))
|
||||
low.registerLanguage('hy', require('highlight.js/lib/languages/hy'))
|
||||
low.registerLanguage('inform7', require('highlight.js/lib/languages/inform7'))
|
||||
low.registerLanguage('ini', require('highlight.js/lib/languages/ini'))
|
||||
low.registerLanguage('irpf90', require('highlight.js/lib/languages/irpf90'))
|
||||
low.registerLanguage('isbl', require('highlight.js/lib/languages/isbl'))
|
||||
low.registerLanguage('java', require('highlight.js/lib/languages/java'))
|
||||
low.registerLanguage(
|
||||
'javascript',
|
||||
require('highlight.js/lib/languages/javascript')
|
||||
)
|
||||
low.registerLanguage(
|
||||
'jboss-cli',
|
||||
require('highlight.js/lib/languages/jboss-cli')
|
||||
)
|
||||
low.registerLanguage('json', require('highlight.js/lib/languages/json'))
|
||||
low.registerLanguage('julia', require('highlight.js/lib/languages/julia'))
|
||||
low.registerLanguage(
|
||||
'julia-repl',
|
||||
require('highlight.js/lib/languages/julia-repl')
|
||||
)
|
||||
low.registerLanguage('kotlin', require('highlight.js/lib/languages/kotlin'))
|
||||
low.registerLanguage('lasso', require('highlight.js/lib/languages/lasso'))
|
||||
low.registerLanguage('latex', require('highlight.js/lib/languages/latex'))
|
||||
low.registerLanguage('ldif', require('highlight.js/lib/languages/ldif'))
|
||||
low.registerLanguage('leaf', require('highlight.js/lib/languages/leaf'))
|
||||
low.registerLanguage('less', require('highlight.js/lib/languages/less'))
|
||||
low.registerLanguage('lisp', require('highlight.js/lib/languages/lisp'))
|
||||
low.registerLanguage(
|
||||
'livecodeserver',
|
||||
require('highlight.js/lib/languages/livecodeserver')
|
||||
)
|
||||
low.registerLanguage(
|
||||
'livescript',
|
||||
require('highlight.js/lib/languages/livescript')
|
||||
)
|
||||
low.registerLanguage('llvm', require('highlight.js/lib/languages/llvm'))
|
||||
low.registerLanguage('lsl', require('highlight.js/lib/languages/lsl'))
|
||||
low.registerLanguage('lua', require('highlight.js/lib/languages/lua'))
|
||||
low.registerLanguage('makefile', require('highlight.js/lib/languages/makefile'))
|
||||
low.registerLanguage(
|
||||
'mathematica',
|
||||
require('highlight.js/lib/languages/mathematica')
|
||||
)
|
||||
low.registerLanguage('matlab', require('highlight.js/lib/languages/matlab'))
|
||||
low.registerLanguage('maxima', require('highlight.js/lib/languages/maxima'))
|
||||
low.registerLanguage('mel', require('highlight.js/lib/languages/mel'))
|
||||
low.registerLanguage('mercury', require('highlight.js/lib/languages/mercury'))
|
||||
low.registerLanguage('mipsasm', require('highlight.js/lib/languages/mipsasm'))
|
||||
low.registerLanguage('mizar', require('highlight.js/lib/languages/mizar'))
|
||||
low.registerLanguage('perl', require('highlight.js/lib/languages/perl'))
|
||||
low.registerLanguage(
|
||||
'mojolicious',
|
||||
require('highlight.js/lib/languages/mojolicious')
|
||||
)
|
||||
low.registerLanguage('monkey', require('highlight.js/lib/languages/monkey'))
|
||||
low.registerLanguage(
|
||||
'moonscript',
|
||||
require('highlight.js/lib/languages/moonscript')
|
||||
)
|
||||
low.registerLanguage('n1ql', require('highlight.js/lib/languages/n1ql'))
|
||||
low.registerLanguage('nginx', require('highlight.js/lib/languages/nginx'))
|
||||
low.registerLanguage('nim', require('highlight.js/lib/languages/nim'))
|
||||
low.registerLanguage('nix', require('highlight.js/lib/languages/nix'))
|
||||
low.registerLanguage(
|
||||
'node-repl',
|
||||
require('highlight.js/lib/languages/node-repl')
|
||||
)
|
||||
low.registerLanguage('nsis', require('highlight.js/lib/languages/nsis'))
|
||||
low.registerLanguage(
|
||||
'objectivec',
|
||||
require('highlight.js/lib/languages/objectivec')
|
||||
)
|
||||
low.registerLanguage('ocaml', require('highlight.js/lib/languages/ocaml'))
|
||||
low.registerLanguage('openscad', require('highlight.js/lib/languages/openscad'))
|
||||
low.registerLanguage('oxygene', require('highlight.js/lib/languages/oxygene'))
|
||||
low.registerLanguage('parser3', require('highlight.js/lib/languages/parser3'))
|
||||
low.registerLanguage('pf', require('highlight.js/lib/languages/pf'))
|
||||
low.registerLanguage('pgsql', require('highlight.js/lib/languages/pgsql'))
|
||||
low.registerLanguage('php', require('highlight.js/lib/languages/php'))
|
||||
low.registerLanguage(
|
||||
'php-template',
|
||||
require('highlight.js/lib/languages/php-template')
|
||||
)
|
||||
low.registerLanguage(
|
||||
'plaintext',
|
||||
require('highlight.js/lib/languages/plaintext')
|
||||
)
|
||||
low.registerLanguage('pony', require('highlight.js/lib/languages/pony'))
|
||||
low.registerLanguage(
|
||||
'powershell',
|
||||
require('highlight.js/lib/languages/powershell')
|
||||
)
|
||||
low.registerLanguage(
|
||||
'processing',
|
||||
require('highlight.js/lib/languages/processing')
|
||||
)
|
||||
low.registerLanguage('profile', require('highlight.js/lib/languages/profile'))
|
||||
low.registerLanguage('prolog', require('highlight.js/lib/languages/prolog'))
|
||||
low.registerLanguage(
|
||||
'properties',
|
||||
require('highlight.js/lib/languages/properties')
|
||||
)
|
||||
low.registerLanguage('protobuf', require('highlight.js/lib/languages/protobuf'))
|
||||
low.registerLanguage('puppet', require('highlight.js/lib/languages/puppet'))
|
||||
low.registerLanguage(
|
||||
'purebasic',
|
||||
require('highlight.js/lib/languages/purebasic')
|
||||
)
|
||||
low.registerLanguage('python', require('highlight.js/lib/languages/python'))
|
||||
low.registerLanguage(
|
||||
'python-repl',
|
||||
require('highlight.js/lib/languages/python-repl')
|
||||
)
|
||||
low.registerLanguage('q', require('highlight.js/lib/languages/q'))
|
||||
low.registerLanguage('qml', require('highlight.js/lib/languages/qml'))
|
||||
low.registerLanguage('r', require('highlight.js/lib/languages/r'))
|
||||
low.registerLanguage('reasonml', require('highlight.js/lib/languages/reasonml'))
|
||||
low.registerLanguage('rib', require('highlight.js/lib/languages/rib'))
|
||||
low.registerLanguage('roboconf', require('highlight.js/lib/languages/roboconf'))
|
||||
low.registerLanguage('routeros', require('highlight.js/lib/languages/routeros'))
|
||||
low.registerLanguage('rsl', require('highlight.js/lib/languages/rsl'))
|
||||
low.registerLanguage(
|
||||
'ruleslanguage',
|
||||
require('highlight.js/lib/languages/ruleslanguage')
|
||||
)
|
||||
low.registerLanguage('rust', require('highlight.js/lib/languages/rust'))
|
||||
low.registerLanguage('sas', require('highlight.js/lib/languages/sas'))
|
||||
low.registerLanguage('scala', require('highlight.js/lib/languages/scala'))
|
||||
low.registerLanguage('scheme', require('highlight.js/lib/languages/scheme'))
|
||||
low.registerLanguage('scilab', require('highlight.js/lib/languages/scilab'))
|
||||
low.registerLanguage('scss', require('highlight.js/lib/languages/scss'))
|
||||
low.registerLanguage('shell', require('highlight.js/lib/languages/shell'))
|
||||
low.registerLanguage('smali', require('highlight.js/lib/languages/smali'))
|
||||
low.registerLanguage(
|
||||
'smalltalk',
|
||||
require('highlight.js/lib/languages/smalltalk')
|
||||
)
|
||||
low.registerLanguage('sml', require('highlight.js/lib/languages/sml'))
|
||||
low.registerLanguage('sqf', require('highlight.js/lib/languages/sqf'))
|
||||
low.registerLanguage('sql_more', require('highlight.js/lib/languages/sql_more'))
|
||||
low.registerLanguage('sql', require('highlight.js/lib/languages/sql'))
|
||||
low.registerLanguage('stan', require('highlight.js/lib/languages/stan'))
|
||||
low.registerLanguage('stata', require('highlight.js/lib/languages/stata'))
|
||||
low.registerLanguage('step21', require('highlight.js/lib/languages/step21'))
|
||||
low.registerLanguage('stylus', require('highlight.js/lib/languages/stylus'))
|
||||
low.registerLanguage('subunit', require('highlight.js/lib/languages/subunit'))
|
||||
low.registerLanguage('swift', require('highlight.js/lib/languages/swift'))
|
||||
low.registerLanguage(
|
||||
'taggerscript',
|
||||
require('highlight.js/lib/languages/taggerscript')
|
||||
)
|
||||
low.registerLanguage('yaml', require('highlight.js/lib/languages/yaml'))
|
||||
low.registerLanguage('tap', require('highlight.js/lib/languages/tap'))
|
||||
low.registerLanguage('tcl', require('highlight.js/lib/languages/tcl'))
|
||||
low.registerLanguage('thrift', require('highlight.js/lib/languages/thrift'))
|
||||
low.registerLanguage('tp', require('highlight.js/lib/languages/tp'))
|
||||
low.registerLanguage('twig', require('highlight.js/lib/languages/twig'))
|
||||
low.registerLanguage(
|
||||
'typescript',
|
||||
require('highlight.js/lib/languages/typescript')
|
||||
)
|
||||
low.registerLanguage('vala', require('highlight.js/lib/languages/vala'))
|
||||
low.registerLanguage('vbnet', require('highlight.js/lib/languages/vbnet'))
|
||||
low.registerLanguage('vbscript', require('highlight.js/lib/languages/vbscript'))
|
||||
low.registerLanguage(
|
||||
'vbscript-html',
|
||||
require('highlight.js/lib/languages/vbscript-html')
|
||||
)
|
||||
low.registerLanguage('verilog', require('highlight.js/lib/languages/verilog'))
|
||||
low.registerLanguage('vhdl', require('highlight.js/lib/languages/vhdl'))
|
||||
low.registerLanguage('vim', require('highlight.js/lib/languages/vim'))
|
||||
low.registerLanguage('x86asm', require('highlight.js/lib/languages/x86asm'))
|
||||
low.registerLanguage('xl', require('highlight.js/lib/languages/xl'))
|
||||
low.registerLanguage('xquery', require('highlight.js/lib/languages/xquery'))
|
||||
low.registerLanguage('zephir', require('highlight.js/lib/languages/zephir'))
|
||||
207
frontend/node_modules/lowlight/lib/core.js
generated
vendored
Normal file
207
frontend/node_modules/lowlight/lib/core.js
generated
vendored
Normal file
@@ -0,0 +1,207 @@
|
||||
'use strict'
|
||||
|
||||
var high = require('highlight.js/lib/core')
|
||||
var fault = require('fault')
|
||||
|
||||
exports.highlight = highlight
|
||||
exports.highlightAuto = highlightAuto
|
||||
exports.registerLanguage = registerLanguage
|
||||
exports.listLanguages = listLanguages
|
||||
exports.registerAlias = registerAlias
|
||||
|
||||
Emitter.prototype.addText = text
|
||||
Emitter.prototype.addKeyword = addKeyword
|
||||
Emitter.prototype.addSublanguage = addSublanguage
|
||||
Emitter.prototype.openNode = open
|
||||
Emitter.prototype.closeNode = close
|
||||
Emitter.prototype.closeAllNodes = noop
|
||||
Emitter.prototype.finalize = noop
|
||||
Emitter.prototype.toHTML = toHtmlNoop
|
||||
|
||||
var defaultPrefix = 'hljs-'
|
||||
|
||||
// Highlighting `value` in the language `name`.
|
||||
function highlight(name, value, options) {
|
||||
var before = high.configure({})
|
||||
var settings = options || {}
|
||||
var prefix = settings.prefix
|
||||
var result
|
||||
|
||||
if (typeof name !== 'string') {
|
||||
throw fault('Expected `string` for name, got `%s`', name)
|
||||
}
|
||||
|
||||
if (!high.getLanguage(name)) {
|
||||
throw fault('Unknown language: `%s` is not registered', name)
|
||||
}
|
||||
|
||||
if (typeof value !== 'string') {
|
||||
throw fault('Expected `string` for value, got `%s`', value)
|
||||
}
|
||||
|
||||
if (prefix === null || prefix === undefined) {
|
||||
prefix = defaultPrefix
|
||||
}
|
||||
|
||||
high.configure({__emitter: Emitter, classPrefix: prefix})
|
||||
|
||||
result = high.highlight(value, {language: name, ignoreIllegals: true})
|
||||
|
||||
high.configure(before || {})
|
||||
|
||||
/* istanbul ignore if - Highlight.js seems to use this (currently) for broken
|
||||
* grammars, so let’s keep it in there just to be sure. */
|
||||
if (result.errorRaised) {
|
||||
throw result.errorRaised
|
||||
}
|
||||
|
||||
return {
|
||||
relevance: result.relevance,
|
||||
language: result.language,
|
||||
value: result.emitter.rootNode.children
|
||||
}
|
||||
}
|
||||
|
||||
function highlightAuto(value, options) {
|
||||
var settings = options || {}
|
||||
var subset = settings.subset || high.listLanguages()
|
||||
var prefix = settings.prefix
|
||||
var length = subset.length
|
||||
var index = -1
|
||||
var result
|
||||
var secondBest
|
||||
var current
|
||||
var name
|
||||
|
||||
if (prefix === null || prefix === undefined) {
|
||||
prefix = defaultPrefix
|
||||
}
|
||||
|
||||
if (typeof value !== 'string') {
|
||||
throw fault('Expected `string` for value, got `%s`', value)
|
||||
}
|
||||
|
||||
secondBest = {relevance: 0, language: null, value: []}
|
||||
result = {relevance: 0, language: null, value: []}
|
||||
|
||||
while (++index < length) {
|
||||
name = subset[index]
|
||||
|
||||
if (!high.getLanguage(name)) {
|
||||
continue
|
||||
}
|
||||
|
||||
current = highlight(name, value, options)
|
||||
current.language = name
|
||||
|
||||
if (current.relevance > secondBest.relevance) {
|
||||
secondBest = current
|
||||
}
|
||||
|
||||
if (current.relevance > result.relevance) {
|
||||
secondBest = result
|
||||
result = current
|
||||
}
|
||||
}
|
||||
|
||||
if (secondBest.language) {
|
||||
result.secondBest = secondBest
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
// Register a language.
|
||||
function registerLanguage(name, syntax) {
|
||||
high.registerLanguage(name, syntax)
|
||||
}
|
||||
|
||||
// Get a list of all registered languages.
|
||||
function listLanguages() {
|
||||
return high.listLanguages()
|
||||
}
|
||||
|
||||
// Register more aliases for an already registered language.
|
||||
function registerAlias(name, alias) {
|
||||
var map = name
|
||||
var key
|
||||
|
||||
if (alias) {
|
||||
map = {}
|
||||
map[name] = alias
|
||||
}
|
||||
|
||||
for (key in map) {
|
||||
high.registerAliases(map[key], {languageName: key})
|
||||
}
|
||||
}
|
||||
|
||||
function Emitter(options) {
|
||||
this.options = options
|
||||
this.rootNode = {children: []}
|
||||
this.stack = [this.rootNode]
|
||||
}
|
||||
|
||||
function addKeyword(value, name) {
|
||||
this.openNode(name)
|
||||
this.addText(value)
|
||||
this.closeNode()
|
||||
}
|
||||
|
||||
function addSublanguage(other, name) {
|
||||
var stack = this.stack
|
||||
var current = stack[stack.length - 1]
|
||||
var results = other.rootNode.children
|
||||
var node = name
|
||||
? {
|
||||
type: 'element',
|
||||
tagName: 'span',
|
||||
properties: {className: [name]},
|
||||
children: results
|
||||
}
|
||||
: results
|
||||
|
||||
current.children = current.children.concat(node)
|
||||
}
|
||||
|
||||
function text(value) {
|
||||
var stack = this.stack
|
||||
var current
|
||||
var tail
|
||||
|
||||
if (value === '') return
|
||||
|
||||
current = stack[stack.length - 1]
|
||||
tail = current.children[current.children.length - 1]
|
||||
|
||||
if (tail && tail.type === 'text') {
|
||||
tail.value += value
|
||||
} else {
|
||||
current.children.push({type: 'text', value: value})
|
||||
}
|
||||
}
|
||||
|
||||
function open(name) {
|
||||
var stack = this.stack
|
||||
var className = this.options.classPrefix + name
|
||||
var current = stack[stack.length - 1]
|
||||
var child = {
|
||||
type: 'element',
|
||||
tagName: 'span',
|
||||
properties: {className: [className]},
|
||||
children: []
|
||||
}
|
||||
|
||||
current.children.push(child)
|
||||
stack.push(child)
|
||||
}
|
||||
|
||||
function close() {
|
||||
this.stack.pop()
|
||||
}
|
||||
|
||||
function toHtmlNoop() {
|
||||
return ''
|
||||
}
|
||||
|
||||
function noop() {}
|
||||
29
frontend/node_modules/lowlight/node_modules/highlight.js/LICENSE
generated
vendored
Normal file
29
frontend/node_modules/lowlight/node_modules/highlight.js/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2006, Ivan Sagalaev.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
371
frontend/node_modules/lowlight/node_modules/highlight.js/README.md
generated
vendored
Normal file
371
frontend/node_modules/lowlight/node_modules/highlight.js/README.md
generated
vendored
Normal file
@@ -0,0 +1,371 @@
|
||||
# Highlight.js
|
||||
|
||||
[](https://www.npmjs.com/package/highlight.js)
|
||||
[](https://join.slack.com/t/highlightjs/shared_invite/zt-mj0utgqp-TNFf4VQICnDnPg4zMHChFw)
|
||||
[](https://discord.gg/M24EbU7ja9)
|
||||
[](https://github.com/highlightjs/highlight.js/blob/main/LICENSE)
|
||||
[](https://packagephobia.now.sh/result?p=highlight.js)
|
||||

|
||||
[](https://www.npmjs.com/package/highlight.js)
|
||||
[](https://www.jsdelivr.com/package/gh/highlightjs/cdn-release)
|
||||

|
||||
[](https://lgtm.com/projects/g/highlightjs/highlight.js/?mode=list)
|
||||
|
||||
[](https://github.com/highlightjs/highlight.js/actions?query=workflow%3A%22Node.js+CI%22)
|
||||
[](https://github.com/highlightjs/highlight.js/issues)
|
||||
[](https://github.com/highlightjs/highlight.js/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+welcome%22)
|
||||
[](https://github.com/highlightjs/highlight.js/issues?q=is%3Aopen+is%3Aissue+label%3A%22beginner+friendly%22)
|
||||
[](https://snyk.io/test/github/highlightjs/highlight.js?targetFile=package.json)
|
||||
|
||||
<!-- [](https://github.com/highlightjs/highlight.js/actions?query=workflow%3A%22Node.js+CI%22) -->
|
||||
<!-- [](https://github.com/highlightjs/highlight.js/commits/main) -->
|
||||
<!-- [](https://www.jsdelivr.com/package/gh/highlightjs/cdn-release) -->
|
||||
<!-- []() -->
|
||||
<!-- [](https://bundlephobia.com/result?p=highlight.js) -->
|
||||
|
||||
|
||||
Highlight.js is a syntax highlighter written in JavaScript. It works in
|
||||
the browser as well as on the server. It works with pretty much any
|
||||
markup, doesn’t depend on any framework, and has automatic language
|
||||
detection.
|
||||
|
||||
#### Upgrading to Version 10
|
||||
|
||||
Version 10 is one of the biggest releases in quite some time. If you're
|
||||
upgrading from version 9, there are some breaking changes and things you may
|
||||
want to double check first.
|
||||
|
||||
Please read [VERSION_10_UPGRADE.md](https://github.com/highlightjs/highlight.js/blob/main/VERSION_10_UPGRADE.md) for high-level summary of breaking changes and any actions you may need to take. See [VERSION_10_BREAKING_CHANGES.md](https://github.com/highlightjs/highlight.js/blob/main/VERSION_10_BREAKING_CHANGES.md) for a more detailed list and [CHANGES.md](https://github.com/highlightjs/highlight.js/blob/main/CHANGES.md) to learn what else is new.
|
||||
|
||||
##### Support for older versions
|
||||
|
||||
Please see [SECURITY.md](https://github.com/highlightjs/highlight.js/blob/main/SECURITY.md) for support information.
|
||||
|
||||
## Getting Started
|
||||
|
||||
The bare minimum for using highlight.js on a web page is linking to the
|
||||
library along with one of the styles and calling [`highlightAll`][1]:
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="/path/to/styles/default.css">
|
||||
<script src="/path/to/highlight.min.js"></script>
|
||||
<script>hljs.highlightAll();</script>
|
||||
```
|
||||
|
||||
This will find and highlight code inside of `<pre><code>` tags; it tries
|
||||
to detect the language automatically. If automatic detection doesn’t
|
||||
work for you, you can specify the language in the `class` attribute:
|
||||
|
||||
```html
|
||||
<pre><code class="html">...</code></pre>
|
||||
```
|
||||
|
||||
Classes may also be prefixed with either `language-` or `lang-`.
|
||||
|
||||
```html
|
||||
<pre><code class="language-html">...</code></pre>
|
||||
```
|
||||
|
||||
### Plaintext and Disabling Highlighting
|
||||
|
||||
To style arbitrary text like code, but without any highlighting, use the
|
||||
`plaintext` class:
|
||||
|
||||
```html
|
||||
<pre><code class="plaintext">...</code></pre>
|
||||
```
|
||||
|
||||
To disable highlighting of a tag completely, use the `nohighlight` class:
|
||||
|
||||
```html
|
||||
<pre><code class="nohighlight">...</code></pre>
|
||||
```
|
||||
|
||||
### Supported Languages
|
||||
|
||||
Highlight.js supports over 180 different languages in the core library. There are also 3rd party
|
||||
language plugins available for additional languages. You can find the full list of supported languages
|
||||
in [SUPPORTED_LANGUAGES.md][9].
|
||||
|
||||
## Custom Scenarios
|
||||
|
||||
When you need a bit more control over the initialization of
|
||||
highlight.js, you can use the [`highlightBlock`][3] and [`configure`][4]
|
||||
functions. This allows you to better control *what* to highlight and *when*.
|
||||
|
||||
Here’s the equivalent of calling [`highlightAll`][1] using
|
||||
only vanilla JS:
|
||||
|
||||
```js
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
document.querySelectorAll('pre code').forEach((block) => {
|
||||
hljs.highlightBlock(block);
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
Please refer to the documentation for [`configure`][4] options.
|
||||
|
||||
|
||||
### Using custom HTML elements for code blocks
|
||||
|
||||
We strongly recommend `<pre><code>` wrapping for code blocks. It's quite
|
||||
semantic and "just works" out of the box with zero fiddling. It is possible to
|
||||
use other HTML elements (or combos), but you may need to pay special attention to
|
||||
preserving linebreaks.
|
||||
|
||||
Let's say your markup for code blocks uses divs:
|
||||
|
||||
```html
|
||||
<div class='code'>...</div>
|
||||
```
|
||||
|
||||
To highlight such blocks manually:
|
||||
|
||||
```js
|
||||
// first, find all the div.code blocks
|
||||
document.querySelectorAll('div.code').forEach(block => {
|
||||
// then highlight each
|
||||
hljs.highlightBlock(block);
|
||||
});
|
||||
```
|
||||
|
||||
Without using a tag that preserves linebreaks (like `pre`) you'll need some
|
||||
additional CSS to help preserve them. You could also [pre and post-process line
|
||||
breaks with a plug-in][brPlugin], but *we recommend using CSS*.
|
||||
|
||||
[brPlugin]: https://github.com/highlightjs/highlight.js/issues/2559
|
||||
|
||||
To preserve linebreaks inside a `div` using CSS:
|
||||
|
||||
```css
|
||||
div.code {
|
||||
white-space: pre;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Using with Vue.js
|
||||
|
||||
Simply register the plugin with Vue:
|
||||
|
||||
```js
|
||||
Vue.use(hljs.vuePlugin);
|
||||
```
|
||||
|
||||
And you'll be provided with a `highlightjs` component for use
|
||||
in your templates:
|
||||
|
||||
```html
|
||||
<div id="app">
|
||||
<!-- bind to a data property named `code` -->
|
||||
<highlightjs autodetect :code="code" />
|
||||
<!-- or literal code works as well -->
|
||||
<highlightjs language='javascript' code="var x = 5;" />
|
||||
</div>
|
||||
```
|
||||
|
||||
## Web Workers
|
||||
|
||||
You can run highlighting inside a web worker to avoid freezing the browser
|
||||
window while dealing with very big chunks of code.
|
||||
|
||||
In your main script:
|
||||
|
||||
```js
|
||||
addEventListener('load', () => {
|
||||
const code = document.querySelector('#code');
|
||||
const worker = new Worker('worker.js');
|
||||
worker.onmessage = (event) => { code.innerHTML = event.data; }
|
||||
worker.postMessage(code.textContent);
|
||||
});
|
||||
```
|
||||
|
||||
In worker.js:
|
||||
|
||||
```js
|
||||
onmessage = (event) => {
|
||||
importScripts('<path>/highlight.min.js');
|
||||
const result = self.hljs.highlightAuto(event.data);
|
||||
postMessage(result.value);
|
||||
};
|
||||
```
|
||||
|
||||
## Node.js
|
||||
|
||||
You can use highlight.js with node to highlight content before sending it to the browser.
|
||||
Make sure to use the `.value` property to get the formatted html.
|
||||
For more info about the returned object refer to the [api docs](https://highlightjs.readthedocs.io/en/latest/api.html).
|
||||
|
||||
|
||||
```js
|
||||
// require the highlight.js library, including all languages
|
||||
const hljs = require('./highlight.js');
|
||||
const highlightedCode = hljs.highlightAuto('<span>Hello World!</span>').value
|
||||
```
|
||||
|
||||
Or for a smaller footprint... load just the languages you need.
|
||||
|
||||
```js
|
||||
const hljs = require('highlight.js/lib/core'); // require only the core library
|
||||
// separately require languages
|
||||
hljs.registerLanguage('xml', require('highlight.js/lib/languages/xml'));
|
||||
|
||||
const highlightedCode = hljs.highlight('<span>Hello World!</span>', {language: 'xml'}).value
|
||||
```
|
||||
|
||||
|
||||
## ES6 Modules
|
||||
|
||||
First, you'll likely install via `npm` or `yarn` -- see [Getting the Library](#getting-the-library) below.
|
||||
|
||||
In your application:
|
||||
|
||||
```js
|
||||
import hljs from 'highlight.js';
|
||||
```
|
||||
|
||||
The default import imports all languages. Therefore it is likely to be more efficient to import only the library and the languages you need:
|
||||
|
||||
```js
|
||||
import hljs from 'highlight.js/lib/core';
|
||||
import javascript from 'highlight.js/lib/languages/javascript';
|
||||
hljs.registerLanguage('javascript', javascript);
|
||||
```
|
||||
|
||||
To set the syntax highlighting style, if your build tool processes CSS from your JavaScript entry point, you can also import the stylesheet directly as modules:
|
||||
|
||||
```js
|
||||
import hljs from 'highlight.js/lib/core';
|
||||
import 'highlight.js/styles/github.css';
|
||||
```
|
||||
|
||||
|
||||
## Getting the Library
|
||||
|
||||
You can get highlight.js as a hosted, or custom-build, browser script or
|
||||
as a server module. Right out of the box the browser script supports
|
||||
both AMD and CommonJS, so if you wish you can use RequireJS or
|
||||
Browserify without having to build from source. The server module also
|
||||
works perfectly fine with Browserify, but there is the option to use a
|
||||
build specific to browsers rather than something meant for a server.
|
||||
|
||||
|
||||
**Do not link to GitHub directly.** The library is not supposed to work straight
|
||||
from the source, it requires building. If none of the pre-packaged options
|
||||
work for you refer to the [building documentation][6].
|
||||
|
||||
**On Almond.** You need to use the optimizer to give the module a name. For
|
||||
example:
|
||||
|
||||
```bash
|
||||
r.js -o name=hljs paths.hljs=/path/to/highlight out=highlight.js
|
||||
```
|
||||
|
||||
### CDN Hosted
|
||||
|
||||
A prebuilt version of Highlight.js bundled with many common languages is hosted by several popular CDNs.
|
||||
When using Highlight.js via CDN you can use Subresource Integrity for additional security. For details
|
||||
see [DIGESTS.md](https://github.com/highlightjs/cdn-release/blob/main/DIGESTS.md).
|
||||
|
||||
**cdnjs** ([link](https://cdnjs.com/libraries/highlight.js))
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.3/styles/default.min.css">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.3/highlight.min.js"></script>
|
||||
<!-- and it's easy to individually load additional languages -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.3/languages/go.min.js"></script>
|
||||
```
|
||||
|
||||
**jsdelivr** ([link](https://www.jsdelivr.com/package/gh/highlightjs/cdn-release))
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.3/build/styles/default.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.3/build/highlight.min.js"></script>
|
||||
<!-- and it's easy to individually load additional languages -->
|
||||
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.3/build/languages/go.min.js"></script>
|
||||
```
|
||||
|
||||
**unpkg** ([link](https://unpkg.com/browse/@highlightjs/cdn-assets/))
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@10.7.3/styles/default.min.css">
|
||||
<script src="https://unpkg.com/@highlightjs/cdn-assets@10.7.3/highlight.min.js"></script>
|
||||
<!-- and it's easy to individually load additional languages -->
|
||||
<script src="https://unpkg.com/@highlightjs/cdn-assets@10.7.3/languages/go.min.js"></script>
|
||||
```
|
||||
|
||||
**Note:** *The CDN-hosted `highlight.min.js` package doesn't bundle every language.* It would be
|
||||
very large. You can find our list of "common" languages that we bundle by default on our [download page][5].
|
||||
|
||||
### Self Hosting
|
||||
|
||||
The [download page][5] can quickly generate a custom bundle including only the languages you need.
|
||||
|
||||
Alternatively, you can build a browser package from [source](#source):
|
||||
|
||||
```
|
||||
node tools/build.js -t browser :common
|
||||
```
|
||||
|
||||
See our [building documentation][6] for more information.
|
||||
|
||||
**Note:** Building from source should always result in the smallest size builds. The website download page is optimized for speed, not size.
|
||||
|
||||
|
||||
#### Prebuilt CDN assets
|
||||
|
||||
You can also download and self-host the same assets we serve up via our own CDNs. We publish those builds to the [cdn-release](https://github.com/highlightjs/cdn-release) GitHub repository. You can easily pull individual files off the CDN endpoints with `curl`, etc; if say you only needed `highlight.min.js` and a single CSS file.
|
||||
|
||||
There is also an npm package [@highlightjs/cdn-assets](https://www.npmjs.com/package/@highlightjs/cdn-assets) if pulling the assets in via `npm` or `yarn` would be easier for your build process.
|
||||
|
||||
|
||||
### NPM / Node.js server module
|
||||
|
||||
Highlight.js can also be used on the server. The package with all supported languages can be installed from NPM or Yarn:
|
||||
|
||||
```bash
|
||||
npm install highlight.js
|
||||
# or
|
||||
yarn add highlight.js
|
||||
```
|
||||
|
||||
Alternatively, you can build it from [source](#source):
|
||||
|
||||
```bash
|
||||
node tools/build.js -t node
|
||||
```
|
||||
|
||||
See our [building documentation][6] for more information.
|
||||
|
||||
|
||||
### Source
|
||||
|
||||
[Current source][10] is always available on GitHub.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Highlight.js is released under the BSD License. See [LICENSE][7] file
|
||||
for details.
|
||||
|
||||
|
||||
## Links
|
||||
|
||||
The official site for the library is at <https://highlightjs.org/>.
|
||||
|
||||
Further in-depth documentation for the API and other topics is at
|
||||
<http://highlightjs.readthedocs.io/>.
|
||||
|
||||
A list of the Core Team and contributors can be found in the [CONTRIBUTORS.md][8] file.
|
||||
|
||||
[1]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightall
|
||||
[2]: http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html
|
||||
[3]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightblock-block
|
||||
[4]: http://highlightjs.readthedocs.io/en/latest/api.html#configure-options
|
||||
[5]: https://highlightjs.org/download/
|
||||
[6]: http://highlightjs.readthedocs.io/en/latest/building-testing.html
|
||||
[7]: https://github.com/highlightjs/highlight.js/blob/main/LICENSE
|
||||
[8]: https://github.com/highlightjs/highlight.js/blob/main/CONTRIBUTORS.md
|
||||
[9]: https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md
|
||||
[10]: https://github.com/highlightjs/
|
||||
2
frontend/node_modules/lowlight/node_modules/highlight.js/lib/highlight.js
generated
vendored
Normal file
2
frontend/node_modules/lowlight/node_modules/highlight.js/lib/highlight.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
// This file has been deprecated in favor of core.js
|
||||
var hljs = require('./core');
|
||||
521
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/1c.js
generated
vendored
Normal file
521
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/1c.js
generated
vendored
Normal file
@@ -0,0 +1,521 @@
|
||||
/*
|
||||
Language: 1C:Enterprise
|
||||
Author: Stanislav Belov <stbelov@gmail.com>
|
||||
Description: built-in language 1C:Enterprise (v7, v8)
|
||||
Category: enterprise
|
||||
*/
|
||||
|
||||
function _1c(hljs) {
|
||||
|
||||
// общий паттерн для определения идентификаторов
|
||||
var UNDERSCORE_IDENT_RE = '[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+';
|
||||
|
||||
// v7 уникальные ключевые слова, отсутствующие в v8 ==> keyword
|
||||
var v7_keywords =
|
||||
'далее ';
|
||||
|
||||
// v8 ключевые слова ==> keyword
|
||||
var v8_keywords =
|
||||
'возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли ' +
|
||||
'конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ';
|
||||
|
||||
// keyword : ключевые слова
|
||||
var KEYWORD = v7_keywords + v8_keywords;
|
||||
|
||||
// v7 уникальные директивы, отсутствующие в v8 ==> meta-keyword
|
||||
var v7_meta_keywords =
|
||||
'загрузитьизфайла ';
|
||||
|
||||
// v8 ключевые слова в инструкциях препроцессора, директивах компиляции, аннотациях ==> meta-keyword
|
||||
var v8_meta_keywords =
|
||||
'вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер ' +
|
||||
'наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед ' +
|
||||
'после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ';
|
||||
|
||||
// meta-keyword : ключевые слова в инструкциях препроцессора, директивах компиляции, аннотациях
|
||||
var METAKEYWORD = v7_meta_keywords + v8_meta_keywords;
|
||||
|
||||
// v7 системные константы ==> built_in
|
||||
var v7_system_constants =
|
||||
'разделительстраниц разделительстрок символтабуляции ';
|
||||
|
||||
// v7 уникальные методы глобального контекста, отсутствующие в v8 ==> built_in
|
||||
var v7_global_context_methods =
|
||||
'ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов ' +
|
||||
'датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя ' +
|
||||
'кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца ' +
|
||||
'коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид ' +
|
||||
'назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца ' +
|
||||
'начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов ' +
|
||||
'основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута ' +
|
||||
'получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта ' +
|
||||
'префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына ' +
|
||||
'рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента ' +
|
||||
'счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ';
|
||||
|
||||
// v8 методы глобального контекста ==> built_in
|
||||
var v8_global_context_methods =
|
||||
'acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока ' +
|
||||
'xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ' +
|
||||
'ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации ' +
|
||||
'выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода ' +
|
||||
'деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы ' +
|
||||
'загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации ' +
|
||||
'заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию ' +
|
||||
'значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла ' +
|
||||
'изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке ' +
|
||||
'каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку ' +
|
||||
'кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты ' +
|
||||
'конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы ' +
|
||||
'копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти ' +
|
||||
'найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы ' +
|
||||
'началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя ' +
|
||||
'начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты ' +
|
||||
'начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов ' +
|
||||
'начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя ' +
|
||||
'начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога ' +
|
||||
'начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией ' +
|
||||
'начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы ' +
|
||||
'номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения ' +
|
||||
'обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении ' +
|
||||
'отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения ' +
|
||||
'открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально ' +
|
||||
'отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа ' +
|
||||
'перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту ' +
|
||||
'подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения ' +
|
||||
'подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки ' +
|
||||
'показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение ' +
|
||||
'показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя ' +
|
||||
'получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса ' +
|
||||
'получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора ' +
|
||||
'получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса ' +
|
||||
'получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации ' +
|
||||
'получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла ' +
|
||||
'получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации ' +
|
||||
'получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления ' +
|
||||
'получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу ' +
|
||||
'получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы ' +
|
||||
'получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет ' +
|
||||
'получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима ' +
|
||||
'получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения ' +
|
||||
'получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути ' +
|
||||
'получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы ' +
|
||||
'получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю ' +
|
||||
'получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных ' +
|
||||
'получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию ' +
|
||||
'получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище ' +
|
||||
'поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода ' +
|
||||
'представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение ' +
|
||||
'прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока ' +
|
||||
'рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных ' +
|
||||
'раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени ' +
|
||||
'смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить ' +
|
||||
'состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс ' +
|
||||
'строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений '+
|
||||
'стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах ' +
|
||||
'текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации ' +
|
||||
'текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы ' +
|
||||
'удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим ' +
|
||||
'установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту ' +
|
||||
'установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных ' +
|
||||
'установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации ' +
|
||||
'установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения ' +
|
||||
'установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования ' +
|
||||
'установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима ' +
|
||||
'установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим ' +
|
||||
'установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией ' +
|
||||
'установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы ' +
|
||||
'установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса ' +
|
||||
'формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ';
|
||||
|
||||
// v8 свойства глобального контекста ==> built_in
|
||||
var v8_global_context_property =
|
||||
'wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы ' +
|
||||
'внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль ' +
|
||||
'документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты ' +
|
||||
'историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений ' +
|
||||
'отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик ' +
|
||||
'планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок ' +
|
||||
'рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений ' +
|
||||
'регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа ' +
|
||||
'средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек ' +
|
||||
'хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков ' +
|
||||
'хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ';
|
||||
|
||||
// built_in : встроенные или библиотечные объекты (константы, классы, функции)
|
||||
var BUILTIN =
|
||||
v7_system_constants +
|
||||
v7_global_context_methods + v8_global_context_methods +
|
||||
v8_global_context_property;
|
||||
|
||||
// v8 системные наборы значений ==> class
|
||||
var v8_system_sets_of_values =
|
||||
'webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ';
|
||||
|
||||
// v8 системные перечисления - интерфейсные ==> class
|
||||
var v8_system_enums_interface =
|
||||
'автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий ' +
|
||||
'анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы ' +
|
||||
'вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы ' +
|
||||
'виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя ' +
|
||||
'видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение ' +
|
||||
'горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы ' +
|
||||
'группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания ' +
|
||||
'интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки ' +
|
||||
'используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы ' +
|
||||
'источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева ' +
|
||||
'начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ' +
|
||||
'ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме ' +
|
||||
'отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы ' +
|
||||
'отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы ' +
|
||||
'отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы ' +
|
||||
'отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска ' +
|
||||
'отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования ' +
|
||||
'отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта ' +
|
||||
'отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы ' +
|
||||
'поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы ' +
|
||||
'поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы ' +
|
||||
'положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы ' +
|
||||
'положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы ' +
|
||||
'положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском ' +
|
||||
'положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы ' +
|
||||
'размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта ' +
|
||||
'режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты ' +
|
||||
'режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения ' +
|
||||
'режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра ' +
|
||||
'режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения ' +
|
||||
'режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы ' +
|
||||
'режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки ' +
|
||||
'режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание ' +
|
||||
'сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы ' +
|
||||
'способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление ' +
|
||||
'статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы ' +
|
||||
'типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы ' +
|
||||
'типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления ' +
|
||||
'типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы ' +
|
||||
'типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы ' +
|
||||
'типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений ' +
|
||||
'типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы ' +
|
||||
'типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы ' +
|
||||
'типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы ' +
|
||||
'факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени ' +
|
||||
'форматкартинки ширинаподчиненныхэлементовформы ';
|
||||
|
||||
// v8 системные перечисления - свойства прикладных объектов ==> class
|
||||
var v8_system_enums_objects_properties =
|
||||
'виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса ' +
|
||||
'использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения ' +
|
||||
'использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ';
|
||||
|
||||
// v8 системные перечисления - планы обмена ==> class
|
||||
var v8_system_enums_exchange_plans =
|
||||
'авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ';
|
||||
|
||||
// v8 системные перечисления - табличный документ ==> class
|
||||
var v8_system_enums_tabular_document =
|
||||
'использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы ' +
|
||||
'положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента ' +
|
||||
'способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента ' +
|
||||
'типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента ' +
|
||||
'типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы ' +
|
||||
'типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента ' +
|
||||
'типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ';
|
||||
|
||||
// v8 системные перечисления - планировщик ==> class
|
||||
var v8_system_enums_sheduler =
|
||||
'отображениевремениэлементовпланировщика ';
|
||||
|
||||
// v8 системные перечисления - форматированный документ ==> class
|
||||
var v8_system_enums_formatted_document =
|
||||
'типфайлаформатированногодокумента ';
|
||||
|
||||
// v8 системные перечисления - запрос ==> class
|
||||
var v8_system_enums_query =
|
||||
'обходрезультатазапроса типзаписизапроса ';
|
||||
|
||||
// v8 системные перечисления - построитель отчета ==> class
|
||||
var v8_system_enums_report_builder =
|
||||
'видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ';
|
||||
|
||||
// v8 системные перечисления - работа с файлами ==> class
|
||||
var v8_system_enums_files =
|
||||
'доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ';
|
||||
|
||||
// v8 системные перечисления - построитель запроса ==> class
|
||||
var v8_system_enums_query_builder =
|
||||
'типизмеренияпостроителязапроса ';
|
||||
|
||||
// v8 системные перечисления - анализ данных ==> class
|
||||
var v8_system_enums_data_analysis =
|
||||
'видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных ' +
|
||||
'типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений ' +
|
||||
'типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций ' +
|
||||
'типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных ' +
|
||||
'типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных ' +
|
||||
'типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ';
|
||||
|
||||
// v8 системные перечисления - xml, json, xs, dom, xdto, web-сервисы ==> class
|
||||
var v8_system_enums_xml_json_xs_dom_xdto_ws =
|
||||
'wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto ' +
|
||||
'действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs ' +
|
||||
'исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs ' +
|
||||
'методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ' +
|
||||
'ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson ' +
|
||||
'типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs ' +
|
||||
'форматдатыjson экранированиесимволовjson ';
|
||||
|
||||
// v8 системные перечисления - система компоновки данных ==> class
|
||||
var v8_system_enums_data_composition_system =
|
||||
'видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных ' +
|
||||
'расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных ' +
|
||||
'расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных ' +
|
||||
'расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных ' +
|
||||
'типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных ' +
|
||||
'типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных ' +
|
||||
'типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных ' +
|
||||
'расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных ' +
|
||||
'режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных ' +
|
||||
'режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных '+
|
||||
'вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных ' +
|
||||
'использованиеусловногооформлениякомпоновкиданных ';
|
||||
|
||||
// v8 системные перечисления - почта ==> class
|
||||
var v8_system_enums_email =
|
||||
'важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения ' +
|
||||
'способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты ' +
|
||||
'статусразборапочтовогосообщения ';
|
||||
|
||||
// v8 системные перечисления - журнал регистрации ==> class
|
||||
var v8_system_enums_logbook =
|
||||
'режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ';
|
||||
|
||||
// v8 системные перечисления - криптография ==> class
|
||||
var v8_system_enums_cryptography =
|
||||
'расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии ' +
|
||||
'типхранилищасертификатовкриптографии ';
|
||||
|
||||
// v8 системные перечисления - ZIP ==> class
|
||||
var v8_system_enums_zip =
|
||||
'кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip ' +
|
||||
'режимсохраненияпутейzip уровеньсжатияzip ';
|
||||
|
||||
// v8 системные перечисления -
|
||||
// Блокировка данных, Фоновые задания, Автоматизированное тестирование,
|
||||
// Доставляемые уведомления, Встроенные покупки, Интернет, Работа с двоичными данными ==> class
|
||||
var v8_system_enums_other =
|
||||
'звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных ' +
|
||||
'сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ';
|
||||
|
||||
// v8 системные перечисления - схема запроса ==> class
|
||||
var v8_system_enums_request_schema =
|
||||
'направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса ' +
|
||||
'типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ';
|
||||
|
||||
// v8 системные перечисления - свойства объектов метаданных ==> class
|
||||
var v8_system_enums_properties_of_metadata_objects =
|
||||
'httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления ' +
|
||||
'видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование ' +
|
||||
'использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения ' +
|
||||
'использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита ' +
|
||||
'назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных ' +
|
||||
'оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи ' +
|
||||
'основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении ' +
|
||||
'периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений ' +
|
||||
'повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение ' +
|
||||
'разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита '+
|
||||
'режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности ' +
|
||||
'режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов ' +
|
||||
'режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса ' +
|
||||
'режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов ' +
|
||||
'сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования ' +
|
||||
'типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса ' +
|
||||
'типномерадокумента типномеразадачи типформы удалениедвижений ';
|
||||
|
||||
// v8 системные перечисления - разные ==> class
|
||||
var v8_system_enums_differents =
|
||||
'важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения ' +
|
||||
'вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки ' +
|
||||
'видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак ' +
|
||||
'использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога ' +
|
||||
'кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных ' +
|
||||
'отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения ' +
|
||||
'режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных ' +
|
||||
'способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter ' +
|
||||
'типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты';
|
||||
|
||||
// class: встроенные наборы значений, системные перечисления (содержат дочерние значения, обращения к которым через разыменование)
|
||||
var CLASS =
|
||||
v8_system_sets_of_values +
|
||||
v8_system_enums_interface +
|
||||
v8_system_enums_objects_properties +
|
||||
v8_system_enums_exchange_plans +
|
||||
v8_system_enums_tabular_document +
|
||||
v8_system_enums_sheduler +
|
||||
v8_system_enums_formatted_document +
|
||||
v8_system_enums_query +
|
||||
v8_system_enums_report_builder +
|
||||
v8_system_enums_files +
|
||||
v8_system_enums_query_builder +
|
||||
v8_system_enums_data_analysis +
|
||||
v8_system_enums_xml_json_xs_dom_xdto_ws +
|
||||
v8_system_enums_data_composition_system +
|
||||
v8_system_enums_email +
|
||||
v8_system_enums_logbook +
|
||||
v8_system_enums_cryptography +
|
||||
v8_system_enums_zip +
|
||||
v8_system_enums_other +
|
||||
v8_system_enums_request_schema +
|
||||
v8_system_enums_properties_of_metadata_objects +
|
||||
v8_system_enums_differents;
|
||||
|
||||
// v8 общие объекты (у объектов есть конструктор, экземпляры создаются методом НОВЫЙ) ==> type
|
||||
var v8_shared_object =
|
||||
'comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs ' +
|
||||
'блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема ' +
|
||||
'географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма ' +
|
||||
'диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания ' +
|
||||
'диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление ' +
|
||||
'записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom ' +
|
||||
'запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта ' +
|
||||
'интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs ' +
|
||||
'использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных ' +
|
||||
'итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла ' +
|
||||
'компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных ' +
|
||||
'конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных ' +
|
||||
'макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson ' +
|
||||
'обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs ' +
|
||||
'объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации ' +
|
||||
'описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных ' +
|
||||
'описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs ' +
|
||||
'определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom ' +
|
||||
'определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных ' +
|
||||
'параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных ' +
|
||||
'полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных ' +
|
||||
'построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml ' +
|
||||
'процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент ' +
|
||||
'процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml ' +
|
||||
'результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto ' +
|
||||
'сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows ' +
|
||||
'сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш ' +
|
||||
'сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент ' +
|
||||
'текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток ' +
|
||||
'фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs ' +
|
||||
'фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs ' +
|
||||
'фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs ' +
|
||||
'фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент ' +
|
||||
'фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла ' +
|
||||
'чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных ';
|
||||
|
||||
// v8 универсальные коллекции значений ==> type
|
||||
var v8_universal_collection =
|
||||
'comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура ' +
|
||||
'фиксированноесоответствие фиксированныймассив ';
|
||||
|
||||
// type : встроенные типы
|
||||
var TYPE =
|
||||
v8_shared_object +
|
||||
v8_universal_collection;
|
||||
|
||||
// literal : примитивные типы
|
||||
var LITERAL = 'null истина ложь неопределено';
|
||||
|
||||
// number : числа
|
||||
var NUMBERS = hljs.inherit(hljs.NUMBER_MODE);
|
||||
|
||||
// string : строки
|
||||
var STRINGS = {
|
||||
className: 'string',
|
||||
begin: '"|\\|', end: '"|$',
|
||||
contains: [{begin: '""'}]
|
||||
};
|
||||
|
||||
// number : даты
|
||||
var DATE = {
|
||||
begin: "'", end: "'", excludeBegin: true, excludeEnd: true,
|
||||
contains: [
|
||||
{
|
||||
className: 'number',
|
||||
begin: '\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
// comment : комментарии
|
||||
var COMMENTS = hljs.inherit(hljs.C_LINE_COMMENT_MODE);
|
||||
|
||||
// meta : инструкции препроцессора, директивы компиляции
|
||||
var META = {
|
||||
className: 'meta',
|
||||
|
||||
begin: '#|&', end: '$',
|
||||
keywords: {
|
||||
$pattern: UNDERSCORE_IDENT_RE,
|
||||
'meta-keyword': KEYWORD + METAKEYWORD
|
||||
},
|
||||
contains: [
|
||||
COMMENTS
|
||||
]
|
||||
};
|
||||
|
||||
// symbol : метка goto
|
||||
var SYMBOL = {
|
||||
className: 'symbol',
|
||||
begin: '~', end: ';|:', excludeEnd: true
|
||||
};
|
||||
|
||||
// function : объявление процедур и функций
|
||||
var FUNCTION = {
|
||||
className: 'function',
|
||||
variants: [
|
||||
{begin: 'процедура|функция', end: '\\)', keywords: 'процедура функция'},
|
||||
{begin: 'конецпроцедуры|конецфункции', keywords: 'конецпроцедуры конецфункции'}
|
||||
],
|
||||
contains: [
|
||||
{
|
||||
begin: '\\(', end: '\\)', endsParent : true,
|
||||
contains: [
|
||||
{
|
||||
className: 'params',
|
||||
begin: UNDERSCORE_IDENT_RE, end: ',', excludeEnd: true, endsWithParent: true,
|
||||
keywords: {
|
||||
$pattern: UNDERSCORE_IDENT_RE,
|
||||
keyword: 'знач',
|
||||
literal: LITERAL
|
||||
},
|
||||
contains: [
|
||||
NUMBERS,
|
||||
STRINGS,
|
||||
DATE
|
||||
]
|
||||
},
|
||||
COMMENTS
|
||||
]
|
||||
},
|
||||
hljs.inherit(hljs.TITLE_MODE, {begin: UNDERSCORE_IDENT_RE})
|
||||
]
|
||||
};
|
||||
|
||||
return {
|
||||
name: '1C:Enterprise',
|
||||
case_insensitive: true,
|
||||
keywords: {
|
||||
$pattern: UNDERSCORE_IDENT_RE,
|
||||
keyword: KEYWORD,
|
||||
built_in: BUILTIN,
|
||||
class: CLASS,
|
||||
type: TYPE,
|
||||
literal: LITERAL
|
||||
},
|
||||
contains: [
|
||||
META,
|
||||
FUNCTION,
|
||||
COMMENTS,
|
||||
SYMBOL,
|
||||
NUMBERS,
|
||||
STRINGS,
|
||||
DATE
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = _1c;
|
||||
89
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/apache.js
generated
vendored
Normal file
89
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/apache.js
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
Language: Apache config
|
||||
Author: Ruslan Keba <rukeba@gmail.com>
|
||||
Contributors: Ivan Sagalaev <maniac@softwaremaniacs.org>
|
||||
Website: https://httpd.apache.org
|
||||
Description: language definition for Apache configuration files (httpd.conf & .htaccess)
|
||||
Category: common, config
|
||||
Audit: 2020
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function apache(hljs) {
|
||||
const NUMBER_REF = {
|
||||
className: 'number',
|
||||
begin: /[$%]\d+/
|
||||
};
|
||||
const NUMBER = {
|
||||
className: 'number',
|
||||
begin: /\d+/
|
||||
};
|
||||
const IP_ADDRESS = {
|
||||
className: "number",
|
||||
begin: /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/
|
||||
};
|
||||
const PORT_NUMBER = {
|
||||
className: "number",
|
||||
begin: /:\d{1,5}/
|
||||
};
|
||||
return {
|
||||
name: 'Apache config',
|
||||
aliases: [ 'apacheconf' ],
|
||||
case_insensitive: true,
|
||||
contains: [
|
||||
hljs.HASH_COMMENT_MODE,
|
||||
{
|
||||
className: 'section',
|
||||
begin: /<\/?/,
|
||||
end: />/,
|
||||
contains: [
|
||||
IP_ADDRESS,
|
||||
PORT_NUMBER,
|
||||
// low relevance prevents us from claming XML/HTML where this rule would
|
||||
// match strings inside of XML tags
|
||||
hljs.inherit(hljs.QUOTE_STRING_MODE, { relevance: 0 })
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'attribute',
|
||||
begin: /\w+/,
|
||||
relevance: 0,
|
||||
// keywords aren’t needed for highlighting per se, they only boost relevance
|
||||
// for a very generally defined mode (starts with a word, ends with line-end
|
||||
keywords: {
|
||||
nomarkup:
|
||||
'order deny allow setenv rewriterule rewriteengine rewritecond documentroot ' +
|
||||
'sethandler errordocument loadmodule options header listen serverroot ' +
|
||||
'servername'
|
||||
},
|
||||
starts: {
|
||||
end: /$/,
|
||||
relevance: 0,
|
||||
keywords: { literal: 'on off all deny allow' },
|
||||
contains: [
|
||||
{
|
||||
className: 'meta',
|
||||
begin: /\s\[/,
|
||||
end: /\]$/
|
||||
},
|
||||
{
|
||||
className: 'variable',
|
||||
begin: /[\$%]\{/,
|
||||
end: /\}/,
|
||||
contains: [
|
||||
'self',
|
||||
NUMBER_REF
|
||||
]
|
||||
},
|
||||
IP_ADDRESS,
|
||||
NUMBER,
|
||||
hljs.QUOTE_STRING_MODE
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
illegal: /\S/
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = apache;
|
||||
189
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/applescript.js
generated
vendored
Normal file
189
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/applescript.js
generated
vendored
Normal file
@@ -0,0 +1,189 @@
|
||||
/**
|
||||
* @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) } args
|
||||
* @returns {string}
|
||||
*/
|
||||
function concat(...args) {
|
||||
const joined = args.map((x) => source(x)).join("");
|
||||
return joined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Any of the passed expresssions may match
|
||||
*
|
||||
* Creates a huge this | this | that | that match
|
||||
* @param {(RegExp | string)[] } args
|
||||
* @returns {string}
|
||||
*/
|
||||
function either(...args) {
|
||||
const joined = '(' + args.map((x) => source(x)).join("|") + ")";
|
||||
return joined;
|
||||
}
|
||||
|
||||
/*
|
||||
Language: AppleScript
|
||||
Authors: Nathan Grigg <nathan@nathanamy.org>, Dr. Drang <drdrang@gmail.com>
|
||||
Category: scripting
|
||||
Website: https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html
|
||||
Audit: 2020
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function applescript(hljs) {
|
||||
const STRING = hljs.inherit(
|
||||
hljs.QUOTE_STRING_MODE, {
|
||||
illegal: null
|
||||
});
|
||||
const PARAMS = {
|
||||
className: 'params',
|
||||
begin: /\(/,
|
||||
end: /\)/,
|
||||
contains: [
|
||||
'self',
|
||||
hljs.C_NUMBER_MODE,
|
||||
STRING
|
||||
]
|
||||
};
|
||||
const COMMENT_MODE_1 = hljs.COMMENT(/--/, /$/);
|
||||
const COMMENT_MODE_2 = hljs.COMMENT(
|
||||
/\(\*/,
|
||||
/\*\)/,
|
||||
{
|
||||
contains: [
|
||||
'self', // allow nesting
|
||||
COMMENT_MODE_1
|
||||
]
|
||||
}
|
||||
);
|
||||
const COMMENTS = [
|
||||
COMMENT_MODE_1,
|
||||
COMMENT_MODE_2,
|
||||
hljs.HASH_COMMENT_MODE
|
||||
];
|
||||
|
||||
const KEYWORD_PATTERNS = [
|
||||
/apart from/,
|
||||
/aside from/,
|
||||
/instead of/,
|
||||
/out of/,
|
||||
/greater than/,
|
||||
/isn't|(doesn't|does not) (equal|come before|come after|contain)/,
|
||||
/(greater|less) than( or equal)?/,
|
||||
/(starts?|ends|begins?) with/,
|
||||
/contained by/,
|
||||
/comes (before|after)/,
|
||||
/a (ref|reference)/,
|
||||
/POSIX (file|path)/,
|
||||
/(date|time) string/,
|
||||
/quoted form/
|
||||
];
|
||||
|
||||
const BUILT_IN_PATTERNS = [
|
||||
/clipboard info/,
|
||||
/the clipboard/,
|
||||
/info for/,
|
||||
/list (disks|folder)/,
|
||||
/mount volume/,
|
||||
/path to/,
|
||||
/(close|open for) access/,
|
||||
/(get|set) eof/,
|
||||
/current date/,
|
||||
/do shell script/,
|
||||
/get volume settings/,
|
||||
/random number/,
|
||||
/set volume/,
|
||||
/system attribute/,
|
||||
/system info/,
|
||||
/time to GMT/,
|
||||
/(load|run|store) script/,
|
||||
/scripting components/,
|
||||
/ASCII (character|number)/,
|
||||
/localized string/,
|
||||
/choose (application|color|file|file name|folder|from list|remote application|URL)/,
|
||||
/display (alert|dialog)/
|
||||
];
|
||||
|
||||
return {
|
||||
name: 'AppleScript',
|
||||
aliases: [ 'osascript' ],
|
||||
keywords: {
|
||||
keyword:
|
||||
'about above after against and around as at back before beginning ' +
|
||||
'behind below beneath beside between but by considering ' +
|
||||
'contain contains continue copy div does eighth else end equal ' +
|
||||
'equals error every exit fifth first for fourth from front ' +
|
||||
'get given global if ignoring in into is it its last local me ' +
|
||||
'middle mod my ninth not of on onto or over prop property put ref ' +
|
||||
'reference repeat returning script second set seventh since ' +
|
||||
'sixth some tell tenth that the|0 then third through thru ' +
|
||||
'timeout times to transaction try until where while whose with ' +
|
||||
'without',
|
||||
literal:
|
||||
'AppleScript false linefeed return pi quote result space tab true',
|
||||
built_in:
|
||||
'alias application boolean class constant date file integer list ' +
|
||||
'number real record string text ' +
|
||||
'activate beep count delay launch log offset read round ' +
|
||||
'run say summarize write ' +
|
||||
'character characters contents day frontmost id item length ' +
|
||||
'month name paragraph paragraphs rest reverse running time version ' +
|
||||
'weekday word words year'
|
||||
},
|
||||
contains: [
|
||||
STRING,
|
||||
hljs.C_NUMBER_MODE,
|
||||
{
|
||||
className: 'built_in',
|
||||
begin: concat(
|
||||
/\b/,
|
||||
either(...BUILT_IN_PATTERNS),
|
||||
/\b/
|
||||
)
|
||||
},
|
||||
{
|
||||
className: 'built_in',
|
||||
begin: /^\s*return\b/
|
||||
},
|
||||
{
|
||||
className: 'literal',
|
||||
begin:
|
||||
/\b(text item delimiters|current application|missing value)\b/
|
||||
},
|
||||
{
|
||||
className: 'keyword',
|
||||
begin: concat(
|
||||
/\b/,
|
||||
either(...KEYWORD_PATTERNS),
|
||||
/\b/
|
||||
)
|
||||
},
|
||||
{
|
||||
beginKeywords: 'on',
|
||||
illegal: /[${=;\n]/,
|
||||
contains: [
|
||||
hljs.UNDERSCORE_TITLE_MODE,
|
||||
PARAMS
|
||||
]
|
||||
},
|
||||
...COMMENTS
|
||||
],
|
||||
illegal: /\/\/|->|=>|\[\[/
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = applescript;
|
||||
131
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/armasm.js
generated
vendored
Normal file
131
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/armasm.js
generated
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
Language: ARM Assembly
|
||||
Author: Dan Panzarella <alsoelp@gmail.com>
|
||||
Description: ARM Assembly including Thumb and Thumb2 instructions
|
||||
Category: assembler
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function armasm(hljs) {
|
||||
// local labels: %?[FB]?[AT]?\d{1,2}\w+
|
||||
|
||||
const COMMENT = {
|
||||
variants: [
|
||||
hljs.COMMENT('^[ \\t]*(?=#)', '$', {
|
||||
relevance: 0,
|
||||
excludeBegin: true
|
||||
}),
|
||||
hljs.COMMENT('[;@]', '$', {
|
||||
relevance: 0
|
||||
}),
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE
|
||||
]
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'ARM Assembly',
|
||||
case_insensitive: true,
|
||||
aliases: ['arm'],
|
||||
keywords: {
|
||||
$pattern: '\\.?' + hljs.IDENT_RE,
|
||||
meta:
|
||||
// GNU preprocs
|
||||
'.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ' +
|
||||
// ARM directives
|
||||
'ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ',
|
||||
built_in:
|
||||
'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 ' + // standard registers
|
||||
'pc lr sp ip sl sb fp ' + // typical regs plus backward compatibility
|
||||
'a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 ' + // more regs and fp
|
||||
'p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 ' + // coprocessor regs
|
||||
'c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 ' + // more coproc
|
||||
'q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 ' + // advanced SIMD NEON regs
|
||||
|
||||
// program status registers
|
||||
'cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf ' +
|
||||
'spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf ' +
|
||||
|
||||
// NEON and VFP registers
|
||||
's0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 ' +
|
||||
's16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 ' +
|
||||
'd0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 ' +
|
||||
'd16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 ' +
|
||||
|
||||
'{PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @'
|
||||
},
|
||||
contains: [
|
||||
{
|
||||
className: 'keyword',
|
||||
begin: '\\b(' + // mnemonics
|
||||
'adc|' +
|
||||
'(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|' +
|
||||
'and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|' +
|
||||
'bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|' +
|
||||
'setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|' +
|
||||
'ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|' +
|
||||
'mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|' +
|
||||
'mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|' +
|
||||
'mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|' +
|
||||
'rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|' +
|
||||
'stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|' +
|
||||
'[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|' +
|
||||
'wfe|wfi|yield' +
|
||||
')' +
|
||||
'(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?' + // condition codes
|
||||
'[sptrx]?' + // legal postfixes
|
||||
'(?=\\s)' // followed by space
|
||||
},
|
||||
COMMENT,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
{
|
||||
className: 'string',
|
||||
begin: '\'',
|
||||
end: '[^\\\\]\'',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'title',
|
||||
begin: '\\|',
|
||||
end: '\\|',
|
||||
illegal: '\\n',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'number',
|
||||
variants: [
|
||||
{ // hex
|
||||
begin: '[#$=]?0x[0-9a-f]+'
|
||||
},
|
||||
{ // bin
|
||||
begin: '[#$=]?0b[01]+'
|
||||
},
|
||||
{ // literal
|
||||
begin: '[#$=]\\d+'
|
||||
},
|
||||
{ // bare number
|
||||
begin: '\\b\\d+'
|
||||
}
|
||||
],
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'symbol',
|
||||
variants: [
|
||||
{ // GNU ARM syntax
|
||||
begin: '^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:'
|
||||
},
|
||||
{ // ARM syntax
|
||||
begin: '^[a-z_\\.\\$][a-z0-9_\\.\\$]+'
|
||||
},
|
||||
{ // label reference
|
||||
begin: '[=#]\\w+'
|
||||
}
|
||||
],
|
||||
relevance: 0
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = armasm;
|
||||
303
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/asciidoc.js
generated
vendored
Normal file
303
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/asciidoc.js
generated
vendored
Normal file
@@ -0,0 +1,303 @@
|
||||
/**
|
||||
* @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) } args
|
||||
* @returns {string}
|
||||
*/
|
||||
function concat(...args) {
|
||||
const joined = args.map((x) => source(x)).join("");
|
||||
return joined;
|
||||
}
|
||||
|
||||
/*
|
||||
Language: AsciiDoc
|
||||
Requires: xml.js
|
||||
Author: Dan Allen <dan.j.allen@gmail.com>
|
||||
Website: http://asciidoc.org
|
||||
Description: A semantic, text-based document format that can be exported to HTML, DocBook and other backends.
|
||||
Category: markup
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function asciidoc(hljs) {
|
||||
const HORIZONTAL_RULE = {
|
||||
begin: '^\'{3,}[ \\t]*$',
|
||||
relevance: 10
|
||||
};
|
||||
const ESCAPED_FORMATTING = [
|
||||
// escaped constrained formatting marks (i.e., \* \_ or \`)
|
||||
{
|
||||
begin: /\\[*_`]/
|
||||
},
|
||||
// escaped unconstrained formatting marks (i.e., \\** \\__ or \\``)
|
||||
// must ignore until the next formatting marks
|
||||
// this rule might not be 100% compliant with Asciidoctor 2.0 but we are entering undefined behavior territory...
|
||||
{
|
||||
begin: /\\\\\*{2}[^\n]*?\*{2}/
|
||||
},
|
||||
{
|
||||
begin: /\\\\_{2}[^\n]*_{2}/
|
||||
},
|
||||
{
|
||||
begin: /\\\\`{2}[^\n]*`{2}/
|
||||
},
|
||||
// guard: constrained formatting mark may not be preceded by ":", ";" or
|
||||
// "}". match these so the constrained rule doesn't see them
|
||||
{
|
||||
begin: /[:;}][*_`](?![*_`])/
|
||||
}
|
||||
];
|
||||
const STRONG = [
|
||||
// inline unconstrained strong (single line)
|
||||
{
|
||||
className: 'strong',
|
||||
begin: /\*{2}([^\n]+?)\*{2}/
|
||||
},
|
||||
// inline unconstrained strong (multi-line)
|
||||
{
|
||||
className: 'strong',
|
||||
begin: concat(
|
||||
/\*\*/,
|
||||
/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,
|
||||
/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,
|
||||
/\*\*/
|
||||
),
|
||||
relevance: 0
|
||||
},
|
||||
// inline constrained strong (single line)
|
||||
{
|
||||
className: 'strong',
|
||||
// must not precede or follow a word character
|
||||
begin: /\B\*(\S|\S[^\n]*?\S)\*(?!\w)/
|
||||
},
|
||||
// inline constrained strong (multi-line)
|
||||
{
|
||||
className: 'strong',
|
||||
// must not precede or follow a word character
|
||||
begin: /\*[^\s]([^\n]+\n)+([^\n]+)\*/
|
||||
}
|
||||
];
|
||||
const EMPHASIS = [
|
||||
// inline unconstrained emphasis (single line)
|
||||
{
|
||||
className: 'emphasis',
|
||||
begin: /_{2}([^\n]+?)_{2}/
|
||||
},
|
||||
// inline unconstrained emphasis (multi-line)
|
||||
{
|
||||
className: 'emphasis',
|
||||
begin: concat(
|
||||
/__/,
|
||||
/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,
|
||||
/(_(?!_)|\\[^\n]|[^_\n\\])*/,
|
||||
/__/
|
||||
),
|
||||
relevance: 0
|
||||
},
|
||||
// inline constrained emphasis (single line)
|
||||
{
|
||||
className: 'emphasis',
|
||||
// must not precede or follow a word character
|
||||
begin: /\b_(\S|\S[^\n]*?\S)_(?!\w)/
|
||||
},
|
||||
// inline constrained emphasis (multi-line)
|
||||
{
|
||||
className: 'emphasis',
|
||||
// must not precede or follow a word character
|
||||
begin: /_[^\s]([^\n]+\n)+([^\n]+)_/
|
||||
},
|
||||
// inline constrained emphasis using single quote (legacy)
|
||||
{
|
||||
className: 'emphasis',
|
||||
// must not follow a word character or be followed by a single quote or space
|
||||
begin: '\\B\'(?![\'\\s])',
|
||||
end: '(\\n{2}|\')',
|
||||
// allow escaped single quote followed by word char
|
||||
contains: [{
|
||||
begin: '\\\\\'\\w',
|
||||
relevance: 0
|
||||
}],
|
||||
relevance: 0
|
||||
}
|
||||
];
|
||||
const ADMONITION = {
|
||||
className: 'symbol',
|
||||
begin: '^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+',
|
||||
relevance: 10
|
||||
};
|
||||
const BULLET_LIST = {
|
||||
className: 'bullet',
|
||||
begin: '^(\\*+|-+|\\.+|[^\\n]+?::)\\s+'
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'AsciiDoc',
|
||||
aliases: ['adoc'],
|
||||
contains: [
|
||||
// block comment
|
||||
hljs.COMMENT(
|
||||
'^/{4,}\\n',
|
||||
'\\n/{4,}$',
|
||||
// can also be done as...
|
||||
// '^/{4,}$',
|
||||
// '^/{4,}$',
|
||||
{
|
||||
relevance: 10
|
||||
}
|
||||
),
|
||||
// line comment
|
||||
hljs.COMMENT(
|
||||
'^//',
|
||||
'$',
|
||||
{
|
||||
relevance: 0
|
||||
}
|
||||
),
|
||||
// title
|
||||
{
|
||||
className: 'title',
|
||||
begin: '^\\.\\w.*$'
|
||||
},
|
||||
// example, admonition & sidebar blocks
|
||||
{
|
||||
begin: '^[=\\*]{4,}\\n',
|
||||
end: '\\n^[=\\*]{4,}$',
|
||||
relevance: 10
|
||||
},
|
||||
// headings
|
||||
{
|
||||
className: 'section',
|
||||
relevance: 10,
|
||||
variants: [
|
||||
{
|
||||
begin: '^(={1,6})[ \t].+?([ \t]\\1)?$'
|
||||
},
|
||||
{
|
||||
begin: '^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$'
|
||||
}
|
||||
]
|
||||
},
|
||||
// document attributes
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '^:.+?:',
|
||||
end: '\\s',
|
||||
excludeEnd: true,
|
||||
relevance: 10
|
||||
},
|
||||
// block attributes
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '^\\[.+?\\]$',
|
||||
relevance: 0
|
||||
},
|
||||
// quoteblocks
|
||||
{
|
||||
className: 'quote',
|
||||
begin: '^_{4,}\\n',
|
||||
end: '\\n_{4,}$',
|
||||
relevance: 10
|
||||
},
|
||||
// listing and literal blocks
|
||||
{
|
||||
className: 'code',
|
||||
begin: '^[\\-\\.]{4,}\\n',
|
||||
end: '\\n[\\-\\.]{4,}$',
|
||||
relevance: 10
|
||||
},
|
||||
// passthrough blocks
|
||||
{
|
||||
begin: '^\\+{4,}\\n',
|
||||
end: '\\n\\+{4,}$',
|
||||
contains: [{
|
||||
begin: '<',
|
||||
end: '>',
|
||||
subLanguage: 'xml',
|
||||
relevance: 0
|
||||
}],
|
||||
relevance: 10
|
||||
},
|
||||
|
||||
BULLET_LIST,
|
||||
ADMONITION,
|
||||
...ESCAPED_FORMATTING,
|
||||
...STRONG,
|
||||
...EMPHASIS,
|
||||
|
||||
// inline smart quotes
|
||||
{
|
||||
className: 'string',
|
||||
variants: [
|
||||
{
|
||||
begin: "``.+?''"
|
||||
},
|
||||
{
|
||||
begin: "`.+?'"
|
||||
}
|
||||
]
|
||||
},
|
||||
// inline unconstrained emphasis
|
||||
{
|
||||
className: 'code',
|
||||
begin: /`{2}/,
|
||||
end: /(\n{2}|`{2})/
|
||||
},
|
||||
// inline code snippets (TODO should get same treatment as strong and emphasis)
|
||||
{
|
||||
className: 'code',
|
||||
begin: '(`.+?`|\\+.+?\\+)',
|
||||
relevance: 0
|
||||
},
|
||||
// indented literal block
|
||||
{
|
||||
className: 'code',
|
||||
begin: '^[ \\t]',
|
||||
end: '$',
|
||||
relevance: 0
|
||||
},
|
||||
HORIZONTAL_RULE,
|
||||
// images and links
|
||||
{
|
||||
begin: '(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]',
|
||||
returnBegin: true,
|
||||
contains: [
|
||||
{
|
||||
begin: '(link|image:?):',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'link',
|
||||
begin: '\\w',
|
||||
end: '[^\\[]+',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'string',
|
||||
begin: '\\[',
|
||||
end: '\\]',
|
||||
excludeBegin: true,
|
||||
excludeEnd: true,
|
||||
relevance: 0
|
||||
}
|
||||
],
|
||||
relevance: 10
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = asciidoc;
|
||||
183
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/autoit.js
generated
vendored
Normal file
183
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/autoit.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
73
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/awk.js
generated
vendored
Normal file
73
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/awk.js
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
Language: Awk
|
||||
Author: Matthew Daly <matthewbdaly@gmail.com>
|
||||
Website: https://www.gnu.org/software/gawk/manual/gawk.html
|
||||
Description: language definition for Awk scripts
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function awk(hljs) {
|
||||
const VARIABLE = {
|
||||
className: 'variable',
|
||||
variants: [
|
||||
{
|
||||
begin: /\$[\w\d#@][\w\d_]*/
|
||||
},
|
||||
{
|
||||
begin: /\$\{(.*?)\}/
|
||||
}
|
||||
]
|
||||
};
|
||||
const KEYWORDS = 'BEGIN END if else while do for in break continue delete next nextfile function func exit|10';
|
||||
const STRING = {
|
||||
className: 'string',
|
||||
contains: [hljs.BACKSLASH_ESCAPE],
|
||||
variants: [
|
||||
{
|
||||
begin: /(u|b)?r?'''/,
|
||||
end: /'''/,
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
begin: /(u|b)?r?"""/,
|
||||
end: /"""/,
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
begin: /(u|r|ur)'/,
|
||||
end: /'/,
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
begin: /(u|r|ur)"/,
|
||||
end: /"/,
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
begin: /(b|br)'/,
|
||||
end: /'/
|
||||
},
|
||||
{
|
||||
begin: /(b|br)"/,
|
||||
end: /"/
|
||||
},
|
||||
hljs.APOS_STRING_MODE,
|
||||
hljs.QUOTE_STRING_MODE
|
||||
]
|
||||
};
|
||||
return {
|
||||
name: 'Awk',
|
||||
keywords: {
|
||||
keyword: KEYWORDS
|
||||
},
|
||||
contains: [
|
||||
VARIABLE,
|
||||
STRING,
|
||||
hljs.REGEXP_MODE,
|
||||
hljs.HASH_COMMENT_MODE,
|
||||
hljs.NUMBER_MODE
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = awk;
|
||||
65
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/basic.js
generated
vendored
Normal file
65
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/basic.js
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
Language: BASIC
|
||||
Author: Raphaël Assénat <raph@raphnet.net>
|
||||
Description: Based on the BASIC reference from the Tandy 1000 guide
|
||||
Website: https://en.wikipedia.org/wiki/Tandy_1000
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function basic(hljs) {
|
||||
return {
|
||||
name: 'BASIC',
|
||||
case_insensitive: true,
|
||||
illegal: '^\.',
|
||||
// Support explicitly typed variables that end with $%! or #.
|
||||
keywords: {
|
||||
$pattern: '[a-zA-Z][a-zA-Z0-9_$%!#]*',
|
||||
keyword:
|
||||
'ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE ' +
|
||||
'CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ ' +
|
||||
'DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ ' +
|
||||
'EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO ' +
|
||||
'HEX$ IF THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON ' +
|
||||
'OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET ' +
|
||||
'MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION ' +
|
||||
'BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET ' +
|
||||
'PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET ' +
|
||||
'RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP ' +
|
||||
'SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE ' +
|
||||
'WEND WIDTH WINDOW WRITE XOR'
|
||||
},
|
||||
contains: [
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
hljs.COMMENT('REM', '$', {
|
||||
relevance: 10
|
||||
}),
|
||||
hljs.COMMENT('\'', '$', {
|
||||
relevance: 0
|
||||
}),
|
||||
{
|
||||
// Match line numbers
|
||||
className: 'symbol',
|
||||
begin: '^[0-9]+ ',
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
// Match typed numeric constants (1000, 12.34!, 1.2e5, 1.5#, 1.2D2)
|
||||
className: 'number',
|
||||
begin: '\\b\\d+(\\.\\d+)?([edED]\\d+)?[#\!]?',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
// Match hexadecimal numbers (&Hxxxx)
|
||||
className: 'number',
|
||||
begin: '(&[hH][0-9a-fA-F]{1,4})'
|
||||
},
|
||||
{
|
||||
// Match octal numbers (&Oxxxxxx)
|
||||
className: 'number',
|
||||
begin: '(&[oO][0-7]{1,6})'
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = basic;
|
||||
501
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/c-like.js
generated
vendored
Normal file
501
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/c-like.js
generated
vendored
Normal file
@@ -0,0 +1,501 @@
|
||||
/**
|
||||
* @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 } re
|
||||
* @returns {string}
|
||||
*/
|
||||
function optional(re) {
|
||||
return concat('(', re, ')?');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {...(RegExp | string) } args
|
||||
* @returns {string}
|
||||
*/
|
||||
function concat(...args) {
|
||||
const joined = args.map((x) => source(x)).join("");
|
||||
return joined;
|
||||
}
|
||||
|
||||
/*
|
||||
Language: C++
|
||||
Category: common, system
|
||||
Website: https://isocpp.org
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function cPlusPlus(hljs) {
|
||||
// added for historic reasons because `hljs.C_LINE_COMMENT_MODE` does
|
||||
// not include such support nor can we be sure all the grammars depending
|
||||
// on it would desire this behavior
|
||||
const C_LINE_COMMENT_MODE = hljs.COMMENT('//', '$', {
|
||||
contains: [
|
||||
{
|
||||
begin: /\\\n/
|
||||
}
|
||||
]
|
||||
});
|
||||
const DECLTYPE_AUTO_RE = 'decltype\\(auto\\)';
|
||||
const NAMESPACE_RE = '[a-zA-Z_]\\w*::';
|
||||
const TEMPLATE_ARGUMENT_RE = '<[^<>]+>';
|
||||
const FUNCTION_TYPE_RE = '(' +
|
||||
DECLTYPE_AUTO_RE + '|' +
|
||||
optional(NAMESPACE_RE) +
|
||||
'[a-zA-Z_]\\w*' + optional(TEMPLATE_ARGUMENT_RE) +
|
||||
')';
|
||||
const CPP_PRIMITIVE_TYPES = {
|
||||
className: 'keyword',
|
||||
begin: '\\b[a-z\\d_]*_t\\b'
|
||||
};
|
||||
|
||||
// https://en.cppreference.com/w/cpp/language/escape
|
||||
// \\ \x \xFF \u2837 \u00323747 \374
|
||||
const CHARACTER_ESCAPES = '\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)';
|
||||
const STRINGS = {
|
||||
className: 'string',
|
||||
variants: [
|
||||
{
|
||||
begin: '(u8?|U|L)?"',
|
||||
end: '"',
|
||||
illegal: '\\n',
|
||||
contains: [ hljs.BACKSLASH_ESCAPE ]
|
||||
},
|
||||
{
|
||||
begin: '(u8?|U|L)?\'(' + CHARACTER_ESCAPES + "|.)",
|
||||
end: '\'',
|
||||
illegal: '.'
|
||||
},
|
||||
hljs.END_SAME_AS_BEGIN({
|
||||
begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,
|
||||
end: /\)([^()\\ ]{0,16})"/
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
const NUMBERS = {
|
||||
className: 'number',
|
||||
variants: [
|
||||
{
|
||||
begin: '\\b(0b[01\']+)'
|
||||
},
|
||||
{
|
||||
begin: '(-?)\\b([\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)'
|
||||
},
|
||||
{
|
||||
begin: '(-?)(\\b0[xX][a-fA-F0-9\']+|(\\b[\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)([eE][-+]?[\\d\']+)?)'
|
||||
}
|
||||
],
|
||||
relevance: 0
|
||||
};
|
||||
|
||||
const PREPROCESSOR = {
|
||||
className: 'meta',
|
||||
begin: /#\s*[a-z]+\b/,
|
||||
end: /$/,
|
||||
keywords: {
|
||||
'meta-keyword':
|
||||
'if else elif endif define undef warning error line ' +
|
||||
'pragma _Pragma ifdef ifndef include'
|
||||
},
|
||||
contains: [
|
||||
{
|
||||
begin: /\\\n/,
|
||||
relevance: 0
|
||||
},
|
||||
hljs.inherit(STRINGS, {
|
||||
className: 'meta-string'
|
||||
}),
|
||||
{
|
||||
className: 'meta-string',
|
||||
begin: /<.*?>/
|
||||
},
|
||||
C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE
|
||||
]
|
||||
};
|
||||
|
||||
const TITLE_MODE = {
|
||||
className: 'title',
|
||||
begin: optional(NAMESPACE_RE) + hljs.IDENT_RE,
|
||||
relevance: 0
|
||||
};
|
||||
|
||||
const FUNCTION_TITLE = optional(NAMESPACE_RE) + hljs.IDENT_RE + '\\s*\\(';
|
||||
|
||||
const COMMON_CPP_HINTS = [
|
||||
'asin',
|
||||
'atan2',
|
||||
'atan',
|
||||
'calloc',
|
||||
'ceil',
|
||||
'cosh',
|
||||
'cos',
|
||||
'exit',
|
||||
'exp',
|
||||
'fabs',
|
||||
'floor',
|
||||
'fmod',
|
||||
'fprintf',
|
||||
'fputs',
|
||||
'free',
|
||||
'frexp',
|
||||
'auto_ptr',
|
||||
'deque',
|
||||
'list',
|
||||
'queue',
|
||||
'stack',
|
||||
'vector',
|
||||
'map',
|
||||
'set',
|
||||
'pair',
|
||||
'bitset',
|
||||
'multiset',
|
||||
'multimap',
|
||||
'unordered_set',
|
||||
'fscanf',
|
||||
'future',
|
||||
'isalnum',
|
||||
'isalpha',
|
||||
'iscntrl',
|
||||
'isdigit',
|
||||
'isgraph',
|
||||
'islower',
|
||||
'isprint',
|
||||
'ispunct',
|
||||
'isspace',
|
||||
'isupper',
|
||||
'isxdigit',
|
||||
'tolower',
|
||||
'toupper',
|
||||
'labs',
|
||||
'ldexp',
|
||||
'log10',
|
||||
'log',
|
||||
'malloc',
|
||||
'realloc',
|
||||
'memchr',
|
||||
'memcmp',
|
||||
'memcpy',
|
||||
'memset',
|
||||
'modf',
|
||||
'pow',
|
||||
'printf',
|
||||
'putchar',
|
||||
'puts',
|
||||
'scanf',
|
||||
'sinh',
|
||||
'sin',
|
||||
'snprintf',
|
||||
'sprintf',
|
||||
'sqrt',
|
||||
'sscanf',
|
||||
'strcat',
|
||||
'strchr',
|
||||
'strcmp',
|
||||
'strcpy',
|
||||
'strcspn',
|
||||
'strlen',
|
||||
'strncat',
|
||||
'strncmp',
|
||||
'strncpy',
|
||||
'strpbrk',
|
||||
'strrchr',
|
||||
'strspn',
|
||||
'strstr',
|
||||
'tanh',
|
||||
'tan',
|
||||
'unordered_map',
|
||||
'unordered_multiset',
|
||||
'unordered_multimap',
|
||||
'priority_queue',
|
||||
'make_pair',
|
||||
'array',
|
||||
'shared_ptr',
|
||||
'abort',
|
||||
'terminate',
|
||||
'abs',
|
||||
'acos',
|
||||
'vfprintf',
|
||||
'vprintf',
|
||||
'vsprintf',
|
||||
'endl',
|
||||
'initializer_list',
|
||||
'unique_ptr',
|
||||
'complex',
|
||||
'imaginary',
|
||||
'std',
|
||||
'string',
|
||||
'wstring',
|
||||
'cin',
|
||||
'cout',
|
||||
'cerr',
|
||||
'clog',
|
||||
'stdin',
|
||||
'stdout',
|
||||
'stderr',
|
||||
'stringstream',
|
||||
'istringstream',
|
||||
'ostringstream'
|
||||
];
|
||||
|
||||
const CPP_KEYWORDS = {
|
||||
keyword: 'int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof ' +
|
||||
'dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace ' +
|
||||
'unsigned long volatile static protected bool template mutable if public friend ' +
|
||||
'do goto auto void enum else break extern using asm case typeid wchar_t ' +
|
||||
'short reinterpret_cast|10 default double register explicit signed typename try this ' +
|
||||
'switch continue inline delete alignas alignof constexpr consteval constinit decltype ' +
|
||||
'concept co_await co_return co_yield requires ' +
|
||||
'noexcept static_assert thread_local restrict final override ' +
|
||||
'atomic_bool atomic_char atomic_schar ' +
|
||||
'atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong ' +
|
||||
'atomic_ullong new throw return ' +
|
||||
'and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq',
|
||||
built_in: '_Bool _Complex _Imaginary',
|
||||
_relevance_hints: COMMON_CPP_HINTS,
|
||||
literal: 'true false nullptr NULL'
|
||||
};
|
||||
|
||||
const FUNCTION_DISPATCH = {
|
||||
className: "function.dispatch",
|
||||
relevance: 0,
|
||||
keywords: CPP_KEYWORDS,
|
||||
begin: concat(
|
||||
/\b/,
|
||||
/(?!decltype)/,
|
||||
/(?!if)/,
|
||||
/(?!for)/,
|
||||
/(?!while)/,
|
||||
hljs.IDENT_RE,
|
||||
lookahead(/\s*\(/))
|
||||
};
|
||||
|
||||
const EXPRESSION_CONTAINS = [
|
||||
FUNCTION_DISPATCH,
|
||||
PREPROCESSOR,
|
||||
CPP_PRIMITIVE_TYPES,
|
||||
C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
NUMBERS,
|
||||
STRINGS
|
||||
];
|
||||
|
||||
|
||||
const EXPRESSION_CONTEXT = {
|
||||
// This mode covers expression context where we can't expect a function
|
||||
// definition and shouldn't highlight anything that looks like one:
|
||||
// `return some()`, `else if()`, `(x*sum(1, 2))`
|
||||
variants: [
|
||||
{
|
||||
begin: /=/,
|
||||
end: /;/
|
||||
},
|
||||
{
|
||||
begin: /\(/,
|
||||
end: /\)/
|
||||
},
|
||||
{
|
||||
beginKeywords: 'new throw return else',
|
||||
end: /;/
|
||||
}
|
||||
],
|
||||
keywords: CPP_KEYWORDS,
|
||||
contains: EXPRESSION_CONTAINS.concat([
|
||||
{
|
||||
begin: /\(/,
|
||||
end: /\)/,
|
||||
keywords: CPP_KEYWORDS,
|
||||
contains: EXPRESSION_CONTAINS.concat([ 'self' ]),
|
||||
relevance: 0
|
||||
}
|
||||
]),
|
||||
relevance: 0
|
||||
};
|
||||
|
||||
const FUNCTION_DECLARATION = {
|
||||
className: 'function',
|
||||
begin: '(' + FUNCTION_TYPE_RE + '[\\*&\\s]+)+' + FUNCTION_TITLE,
|
||||
returnBegin: true,
|
||||
end: /[{;=]/,
|
||||
excludeEnd: true,
|
||||
keywords: CPP_KEYWORDS,
|
||||
illegal: /[^\w\s\*&:<>.]/,
|
||||
contains: [
|
||||
{ // to prevent it from being confused as the function title
|
||||
begin: DECLTYPE_AUTO_RE,
|
||||
keywords: CPP_KEYWORDS,
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
begin: FUNCTION_TITLE,
|
||||
returnBegin: true,
|
||||
contains: [ TITLE_MODE ],
|
||||
relevance: 0
|
||||
},
|
||||
// needed because we do not have look-behind on the below rule
|
||||
// to prevent it from grabbing the final : in a :: pair
|
||||
{
|
||||
begin: /::/,
|
||||
relevance: 0
|
||||
},
|
||||
// initializers
|
||||
{
|
||||
begin: /:/,
|
||||
endsWithParent: true,
|
||||
contains: [
|
||||
STRINGS,
|
||||
NUMBERS
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'params',
|
||||
begin: /\(/,
|
||||
end: /\)/,
|
||||
keywords: CPP_KEYWORDS,
|
||||
relevance: 0,
|
||||
contains: [
|
||||
C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
STRINGS,
|
||||
NUMBERS,
|
||||
CPP_PRIMITIVE_TYPES,
|
||||
// Count matching parentheses.
|
||||
{
|
||||
begin: /\(/,
|
||||
end: /\)/,
|
||||
keywords: CPP_KEYWORDS,
|
||||
relevance: 0,
|
||||
contains: [
|
||||
'self',
|
||||
C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
STRINGS,
|
||||
NUMBERS,
|
||||
CPP_PRIMITIVE_TYPES
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
CPP_PRIMITIVE_TYPES,
|
||||
C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
PREPROCESSOR
|
||||
]
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'C++',
|
||||
aliases: [
|
||||
'cc',
|
||||
'c++',
|
||||
'h++',
|
||||
'hpp',
|
||||
'hh',
|
||||
'hxx',
|
||||
'cxx'
|
||||
],
|
||||
keywords: CPP_KEYWORDS,
|
||||
illegal: '</',
|
||||
classNameAliases: {
|
||||
"function.dispatch": "built_in"
|
||||
},
|
||||
contains: [].concat(
|
||||
EXPRESSION_CONTEXT,
|
||||
FUNCTION_DECLARATION,
|
||||
FUNCTION_DISPATCH,
|
||||
EXPRESSION_CONTAINS,
|
||||
[
|
||||
PREPROCESSOR,
|
||||
{ // containers: ie, `vector <int> rooms (9);`
|
||||
begin: '\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<',
|
||||
end: '>',
|
||||
keywords: CPP_KEYWORDS,
|
||||
contains: [
|
||||
'self',
|
||||
CPP_PRIMITIVE_TYPES
|
||||
]
|
||||
},
|
||||
{
|
||||
begin: hljs.IDENT_RE + '::',
|
||||
keywords: CPP_KEYWORDS
|
||||
},
|
||||
{
|
||||
className: 'class',
|
||||
beginKeywords: 'enum class struct union',
|
||||
end: /[{;:<>=]/,
|
||||
contains: [
|
||||
{
|
||||
beginKeywords: "final class struct"
|
||||
},
|
||||
hljs.TITLE_MODE
|
||||
]
|
||||
}
|
||||
]),
|
||||
exports: {
|
||||
preprocessor: PREPROCESSOR,
|
||||
strings: STRINGS,
|
||||
keywords: CPP_KEYWORDS
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/*
|
||||
Language: C-like (deprecated, use C and C++ instead)
|
||||
Author: Ivan Sagalaev <maniac@softwaremaniacs.org>
|
||||
Contributors: Evgeny Stepanischev <imbolk@gmail.com>, Zaven Muradyan <megalivoithos@gmail.com>, Roel Deckers <admin@codingcat.nl>, Sam Wu <samsam2310@gmail.com>, Jordi Petit <jordi.petit@gmail.com>, Pieter Vantorre <pietervantorre@gmail.com>, Google Inc. (David Benjamin) <davidben@google.com>
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function cLike(hljs) {
|
||||
const lang = cPlusPlus(hljs);
|
||||
|
||||
const C_ALIASES = [
|
||||
"c",
|
||||
"h"
|
||||
];
|
||||
|
||||
const CPP_ALIASES = [
|
||||
'cc',
|
||||
'c++',
|
||||
'h++',
|
||||
'hpp',
|
||||
'hh',
|
||||
'hxx',
|
||||
'cxx'
|
||||
];
|
||||
|
||||
lang.disableAutodetect = true;
|
||||
lang.aliases = [];
|
||||
// support users only loading c-like (legacy)
|
||||
if (!hljs.getLanguage("c")) lang.aliases.push(...C_ALIASES);
|
||||
if (!hljs.getLanguage("cpp")) lang.aliases.push(...CPP_ALIASES);
|
||||
|
||||
// if c and cpp are loaded after then they will reclaim these
|
||||
// aliases for themselves
|
||||
|
||||
return lang;
|
||||
}
|
||||
|
||||
module.exports = cLike;
|
||||
82
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/ceylon.js
generated
vendored
Normal file
82
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/ceylon.js
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
Language: Ceylon
|
||||
Author: Lucas Werkmeister <mail@lucaswerkmeister.de>
|
||||
Website: https://ceylon-lang.org
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function ceylon(hljs) {
|
||||
// 2.3. Identifiers and keywords
|
||||
const KEYWORDS =
|
||||
'assembly module package import alias class interface object given value ' +
|
||||
'assign void function new of extends satisfies abstracts in out return ' +
|
||||
'break continue throw assert dynamic if else switch case for while try ' +
|
||||
'catch finally then let this outer super is exists nonempty';
|
||||
// 7.4.1 Declaration Modifiers
|
||||
const DECLARATION_MODIFIERS =
|
||||
'shared abstract formal default actual variable late native deprecated ' +
|
||||
'final sealed annotation suppressWarnings small';
|
||||
// 7.4.2 Documentation
|
||||
const DOCUMENTATION =
|
||||
'doc by license see throws tagged';
|
||||
const SUBST = {
|
||||
className: 'subst',
|
||||
excludeBegin: true,
|
||||
excludeEnd: true,
|
||||
begin: /``/,
|
||||
end: /``/,
|
||||
keywords: KEYWORDS,
|
||||
relevance: 10
|
||||
};
|
||||
const EXPRESSIONS = [
|
||||
{
|
||||
// verbatim string
|
||||
className: 'string',
|
||||
begin: '"""',
|
||||
end: '"""',
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
// string literal or template
|
||||
className: 'string',
|
||||
begin: '"',
|
||||
end: '"',
|
||||
contains: [SUBST]
|
||||
},
|
||||
{
|
||||
// character literal
|
||||
className: 'string',
|
||||
begin: "'",
|
||||
end: "'"
|
||||
},
|
||||
{
|
||||
// numeric literal
|
||||
className: 'number',
|
||||
begin: '#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?',
|
||||
relevance: 0
|
||||
}
|
||||
];
|
||||
SUBST.contains = EXPRESSIONS;
|
||||
|
||||
return {
|
||||
name: 'Ceylon',
|
||||
keywords: {
|
||||
keyword: KEYWORDS + ' ' + DECLARATION_MODIFIERS,
|
||||
meta: DOCUMENTATION
|
||||
},
|
||||
illegal: '\\$[^01]|#[^0-9a-fA-F]',
|
||||
contains: [
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
hljs.COMMENT('/\\*', '\\*/', {
|
||||
contains: ['self']
|
||||
}),
|
||||
{
|
||||
// compiler annotation
|
||||
className: 'meta',
|
||||
begin: '@[a-z]\\w*(?::"[^"]*")?'
|
||||
}
|
||||
].concat(EXPRESSIONS)
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = ceylon;
|
||||
27
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/clojure-repl.js
generated
vendored
Normal file
27
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/clojure-repl.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
Language: Clojure REPL
|
||||
Description: Clojure REPL sessions
|
||||
Author: Ivan Sagalaev <maniac@softwaremaniacs.org>
|
||||
Requires: clojure.js
|
||||
Website: https://clojure.org
|
||||
Category: lisp
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function clojureRepl(hljs) {
|
||||
return {
|
||||
name: 'Clojure REPL',
|
||||
contains: [
|
||||
{
|
||||
className: 'meta',
|
||||
begin: /^([\w.-]+|\s*#_)?=>/,
|
||||
starts: {
|
||||
end: /$/,
|
||||
subLanguage: 'clojure'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = clojureRepl;
|
||||
158
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/clojure.js
generated
vendored
Normal file
158
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/clojure.js
generated
vendored
Normal file
@@ -0,0 +1,158 @@
|
||||
/*
|
||||
Language: Clojure
|
||||
Description: Clojure syntax (based on lisp.js)
|
||||
Author: mfornos
|
||||
Website: https://clojure.org
|
||||
Category: lisp
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function clojure(hljs) {
|
||||
const SYMBOLSTART = 'a-zA-Z_\\-!.?+*=<>&#\'';
|
||||
const SYMBOL_RE = '[' + SYMBOLSTART + '][' + SYMBOLSTART + '0-9/;:]*';
|
||||
const globals = 'def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord';
|
||||
const keywords = {
|
||||
$pattern: SYMBOL_RE,
|
||||
'builtin-name':
|
||||
// Clojure keywords
|
||||
globals + ' ' +
|
||||
'cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem ' +
|
||||
'quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? ' +
|
||||
'set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? ' +
|
||||
'class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? ' +
|
||||
'string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . ' +
|
||||
'inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last ' +
|
||||
'drop-while while intern condp case reduced cycle split-at split-with repeat replicate ' +
|
||||
'iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext ' +
|
||||
'nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends ' +
|
||||
'add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler ' +
|
||||
'set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter ' +
|
||||
'monitor-exit macroexpand macroexpand-1 for dosync and or ' +
|
||||
'when when-not when-let comp juxt partial sequence memoize constantly complement identity assert ' +
|
||||
'peek pop doto proxy first rest cons cast coll last butlast ' +
|
||||
'sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import ' +
|
||||
'refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! ' +
|
||||
'assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger ' +
|
||||
'bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline ' +
|
||||
'flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking ' +
|
||||
'assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! ' +
|
||||
'reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! ' +
|
||||
'new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty ' +
|
||||
'hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list ' +
|
||||
'disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer ' +
|
||||
'chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate ' +
|
||||
'unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta ' +
|
||||
'lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize'
|
||||
};
|
||||
|
||||
const SIMPLE_NUMBER_RE = '[-+]?\\d+(\\.\\d+)?';
|
||||
|
||||
const SYMBOL = {
|
||||
begin: SYMBOL_RE,
|
||||
relevance: 0
|
||||
};
|
||||
const NUMBER = {
|
||||
className: 'number',
|
||||
begin: SIMPLE_NUMBER_RE,
|
||||
relevance: 0
|
||||
};
|
||||
const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {
|
||||
illegal: null
|
||||
});
|
||||
const COMMENT = hljs.COMMENT(
|
||||
';',
|
||||
'$',
|
||||
{
|
||||
relevance: 0
|
||||
}
|
||||
);
|
||||
const LITERAL = {
|
||||
className: 'literal',
|
||||
begin: /\b(true|false|nil)\b/
|
||||
};
|
||||
const COLLECTION = {
|
||||
begin: '[\\[\\{]',
|
||||
end: '[\\]\\}]'
|
||||
};
|
||||
const HINT = {
|
||||
className: 'comment',
|
||||
begin: '\\^' + SYMBOL_RE
|
||||
};
|
||||
const HINT_COL = hljs.COMMENT('\\^\\{', '\\}');
|
||||
const KEY = {
|
||||
className: 'symbol',
|
||||
begin: '[:]{1,2}' + SYMBOL_RE
|
||||
};
|
||||
const LIST = {
|
||||
begin: '\\(',
|
||||
end: '\\)'
|
||||
};
|
||||
const BODY = {
|
||||
endsWithParent: true,
|
||||
relevance: 0
|
||||
};
|
||||
const NAME = {
|
||||
keywords: keywords,
|
||||
className: 'name',
|
||||
begin: SYMBOL_RE,
|
||||
relevance: 0,
|
||||
starts: BODY
|
||||
};
|
||||
const DEFAULT_CONTAINS = [
|
||||
LIST,
|
||||
STRING,
|
||||
HINT,
|
||||
HINT_COL,
|
||||
COMMENT,
|
||||
KEY,
|
||||
COLLECTION,
|
||||
NUMBER,
|
||||
LITERAL,
|
||||
SYMBOL
|
||||
];
|
||||
|
||||
const GLOBAL = {
|
||||
beginKeywords: globals,
|
||||
lexemes: SYMBOL_RE,
|
||||
end: '(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',
|
||||
contains: [
|
||||
{
|
||||
className: 'title',
|
||||
begin: SYMBOL_RE,
|
||||
relevance: 0,
|
||||
excludeEnd: true,
|
||||
// we can only have a single title
|
||||
endsParent: true
|
||||
}
|
||||
].concat(DEFAULT_CONTAINS)
|
||||
};
|
||||
|
||||
LIST.contains = [
|
||||
hljs.COMMENT('comment', ''),
|
||||
GLOBAL,
|
||||
NAME,
|
||||
BODY
|
||||
];
|
||||
BODY.contains = DEFAULT_CONTAINS;
|
||||
COLLECTION.contains = DEFAULT_CONTAINS;
|
||||
HINT_COL.contains = [ COLLECTION ];
|
||||
|
||||
return {
|
||||
name: 'Clojure',
|
||||
aliases: [ 'clj' ],
|
||||
illegal: /\S/,
|
||||
contains: [
|
||||
LIST,
|
||||
STRING,
|
||||
HINT,
|
||||
HINT_COL,
|
||||
COMMENT,
|
||||
KEY,
|
||||
COLLECTION,
|
||||
NUMBER,
|
||||
LITERAL
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = clojure;
|
||||
64
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/cmake.js
generated
vendored
Normal file
64
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/cmake.js
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
Language: CMake
|
||||
Description: CMake is an open-source cross-platform system for build automation.
|
||||
Author: Igor Kalnitsky <igor@kalnitsky.org>
|
||||
Website: https://cmake.org
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function cmake(hljs) {
|
||||
return {
|
||||
name: 'CMake',
|
||||
aliases: ['cmake.in'],
|
||||
case_insensitive: true,
|
||||
keywords: {
|
||||
keyword:
|
||||
// scripting commands
|
||||
'break cmake_host_system_information cmake_minimum_required cmake_parse_arguments ' +
|
||||
'cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro ' +
|
||||
'endwhile execute_process file find_file find_library find_package find_path ' +
|
||||
'find_program foreach function get_cmake_property get_directory_property ' +
|
||||
'get_filename_component get_property if include include_guard list macro ' +
|
||||
'mark_as_advanced math message option return separate_arguments ' +
|
||||
'set_directory_properties set_property set site_name string unset variable_watch while ' +
|
||||
// project commands
|
||||
'add_compile_definitions add_compile_options add_custom_command add_custom_target ' +
|
||||
'add_definitions add_dependencies add_executable add_library add_link_options ' +
|
||||
'add_subdirectory add_test aux_source_directory build_command create_test_sourcelist ' +
|
||||
'define_property enable_language enable_testing export fltk_wrap_ui ' +
|
||||
'get_source_file_property get_target_property get_test_property include_directories ' +
|
||||
'include_external_msproject include_regular_expression install link_directories ' +
|
||||
'link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions ' +
|
||||
'set_source_files_properties set_target_properties set_tests_properties source_group ' +
|
||||
'target_compile_definitions target_compile_features target_compile_options ' +
|
||||
'target_include_directories target_link_directories target_link_libraries ' +
|
||||
'target_link_options target_sources try_compile try_run ' +
|
||||
// CTest commands
|
||||
'ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ' +
|
||||
'ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ' +
|
||||
'ctest_test ctest_update ctest_upload ' +
|
||||
// deprecated commands
|
||||
'build_name exec_program export_library_dependencies install_files install_programs ' +
|
||||
'install_targets load_command make_directory output_required_files remove ' +
|
||||
'subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file ' +
|
||||
'qt5_use_modules qt5_use_package qt5_wrap_cpp ' +
|
||||
// core keywords
|
||||
'on off true false and or not command policy target test exists is_newer_than ' +
|
||||
'is_directory is_symlink is_absolute matches less greater equal less_equal ' +
|
||||
'greater_equal strless strgreater strequal strless_equal strgreater_equal version_less ' +
|
||||
'version_greater version_equal version_less_equal version_greater_equal in_list defined'
|
||||
},
|
||||
contains: [
|
||||
{
|
||||
className: 'variable',
|
||||
begin: /\$\{/,
|
||||
end: /\}/
|
||||
},
|
||||
hljs.HASH_COMMENT_MODE,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
hljs.NUMBER_MODE
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = cmake;
|
||||
79
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/coq.js
generated
vendored
Normal file
79
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/coq.js
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
Language: Coq
|
||||
Author: Stephan Boyer <stephan@stephanboyer.com>
|
||||
Category: functional
|
||||
Website: https://coq.inria.fr
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function coq(hljs) {
|
||||
return {
|
||||
name: 'Coq',
|
||||
keywords: {
|
||||
keyword:
|
||||
'_|0 as at cofix else end exists exists2 fix for forall fun if IF in let ' +
|
||||
'match mod Prop return Set then Type using where with ' +
|
||||
'Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo ' +
|
||||
'Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion ' +
|
||||
'Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture ' +
|
||||
'Conjectures Constant constr Constraint Constructors Context Corollary ' +
|
||||
'CreateHintDb Cut Declare Defined Definition Delimit Dependencies Dependent ' +
|
||||
'Derive Drop eauto End Equality Eval Example Existential Existentials ' +
|
||||
'Existing Export exporting Extern Extract Extraction Fact Field Fields File ' +
|
||||
'Fixpoint Focus for From Function Functional Generalizable Global Goal Grab ' +
|
||||
'Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident ' +
|
||||
'Identity If Immediate Implicit Import Include Inductive Infix Info Initial ' +
|
||||
'Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear ' +
|
||||
'Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML ' +
|
||||
'Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation ' +
|
||||
'Obligations Opaque Open Optimize Options Parameter Parameters Parametric ' +
|
||||
'Path Paths pattern Polymorphic Preterm Print Printing Program Projections ' +
|
||||
'Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark ' +
|
||||
'Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save ' +
|
||||
'Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern ' +
|
||||
'SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies ' +
|
||||
'Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time ' +
|
||||
'Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused ' +
|
||||
'Unfold Universe Universes Unset Unshelve using Variable Variables Variant ' +
|
||||
'Verbose Visibility where with',
|
||||
built_in:
|
||||
'abstract absurd admit after apply as assert assumption at auto autorewrite ' +
|
||||
'autounfold before bottom btauto by case case_eq cbn cbv change ' +
|
||||
'classical_left classical_right clear clearbody cofix compare compute ' +
|
||||
'congruence constr_eq constructor contradict contradiction cut cutrewrite ' +
|
||||
'cycle decide decompose dependent destruct destruction dintuition ' +
|
||||
'discriminate discrR do double dtauto eapply eassumption eauto ecase ' +
|
||||
'econstructor edestruct ediscriminate eelim eexact eexists einduction ' +
|
||||
'einjection eleft elim elimtype enough equality erewrite eright ' +
|
||||
'esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail ' +
|
||||
'field field_simplify field_simplify_eq first firstorder fix fold fourier ' +
|
||||
'functional generalize generalizing gfail give_up has_evar hnf idtac in ' +
|
||||
'induction injection instantiate intro intro_pattern intros intuition ' +
|
||||
'inversion inversion_clear is_evar is_var lapply lazy left lia lra move ' +
|
||||
'native_compute nia nsatz omega once pattern pose progress proof psatz quote ' +
|
||||
'record red refine reflexivity remember rename repeat replace revert ' +
|
||||
'revgoals rewrite rewrite_strat right ring ring_simplify rtauto set ' +
|
||||
'setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry ' +
|
||||
'setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve ' +
|
||||
'specialize split split_Rabs split_Rmult stepl stepr subst sum swap ' +
|
||||
'symmetry tactic tauto time timeout top transitivity trivial try tryif ' +
|
||||
'unfold unify until using vm_compute with'
|
||||
},
|
||||
contains: [
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
hljs.COMMENT('\\(\\*', '\\*\\)'),
|
||||
hljs.C_NUMBER_MODE,
|
||||
{
|
||||
className: 'type',
|
||||
excludeBegin: true,
|
||||
begin: '\\|\\s*',
|
||||
end: '\\w+'
|
||||
},
|
||||
{ // relevance booster
|
||||
begin: /[-=]>/
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = coq;
|
||||
102
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/crmsh.js
generated
vendored
Normal file
102
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/crmsh.js
generated
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
Language: crmsh
|
||||
Author: Kristoffer Gronlund <kgronlund@suse.com>
|
||||
Website: http://crmsh.github.io
|
||||
Description: Syntax Highlighting for the crmsh DSL
|
||||
Category: config
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function crmsh(hljs) {
|
||||
const RESOURCES = 'primitive rsc_template';
|
||||
const COMMANDS = 'group clone ms master location colocation order fencing_topology ' +
|
||||
'rsc_ticket acl_target acl_group user role ' +
|
||||
'tag xml';
|
||||
const PROPERTY_SETS = 'property rsc_defaults op_defaults';
|
||||
const KEYWORDS = 'params meta operations op rule attributes utilization';
|
||||
const OPERATORS = 'read write deny defined not_defined in_range date spec in ' +
|
||||
'ref reference attribute type xpath version and or lt gt tag ' +
|
||||
'lte gte eq ne \\';
|
||||
const TYPES = 'number string';
|
||||
const LITERALS = 'Master Started Slave Stopped start promote demote stop monitor true false';
|
||||
|
||||
return {
|
||||
name: 'crmsh',
|
||||
aliases: [
|
||||
'crm',
|
||||
'pcmk'
|
||||
],
|
||||
case_insensitive: true,
|
||||
keywords: {
|
||||
keyword: KEYWORDS + ' ' + OPERATORS + ' ' + TYPES,
|
||||
literal: LITERALS
|
||||
},
|
||||
contains: [
|
||||
hljs.HASH_COMMENT_MODE,
|
||||
{
|
||||
beginKeywords: 'node',
|
||||
starts: {
|
||||
end: '\\s*([\\w_-]+:)?',
|
||||
starts: {
|
||||
className: 'title',
|
||||
end: '\\s*[\\$\\w_][\\w_-]*'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
beginKeywords: RESOURCES,
|
||||
starts: {
|
||||
className: 'title',
|
||||
end: '\\s*[\\$\\w_][\\w_-]*',
|
||||
starts: {
|
||||
end: '\\s*@?[\\w_][\\w_\\.:-]*'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
begin: '\\b(' + COMMANDS.split(' ').join('|') + ')\\s+',
|
||||
keywords: COMMANDS,
|
||||
starts: {
|
||||
className: 'title',
|
||||
end: '[\\$\\w_][\\w_-]*'
|
||||
}
|
||||
},
|
||||
{
|
||||
beginKeywords: PROPERTY_SETS,
|
||||
starts: {
|
||||
className: 'title',
|
||||
end: '\\s*([\\w_-]+:)?'
|
||||
}
|
||||
},
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '(ocf|systemd|service|lsb):[\\w_:-]+',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'number',
|
||||
begin: '\\b\\d+(\\.\\d+)?(ms|s|h|m)?',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'literal',
|
||||
begin: '[-]?(infinity|inf)',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'attr',
|
||||
begin: /([A-Za-z$_#][\w_-]+)=/,
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'tag',
|
||||
begin: '</?',
|
||||
end: '/?>',
|
||||
relevance: 0
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = crmsh;
|
||||
608
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/css.js
generated
vendored
Normal file
608
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/css.js
generated
vendored
Normal file
@@ -0,0 +1,608 @@
|
||||
const MODES = (hljs) => {
|
||||
return {
|
||||
IMPORTANT: {
|
||||
className: 'meta',
|
||||
begin: '!important'
|
||||
},
|
||||
HEXCOLOR: {
|
||||
className: 'number',
|
||||
begin: '#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})'
|
||||
},
|
||||
ATTRIBUTE_SELECTOR_MODE: {
|
||||
className: 'selector-attr',
|
||||
begin: /\[/,
|
||||
end: /\]/,
|
||||
illegal: '$',
|
||||
contains: [
|
||||
hljs.APOS_STRING_MODE,
|
||||
hljs.QUOTE_STRING_MODE
|
||||
]
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
const 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',
|
||||
'p',
|
||||
'q',
|
||||
'quote',
|
||||
'samp',
|
||||
'section',
|
||||
'span',
|
||||
'strong',
|
||||
'summary',
|
||||
'sup',
|
||||
'table',
|
||||
'tbody',
|
||||
'td',
|
||||
'textarea',
|
||||
'tfoot',
|
||||
'th',
|
||||
'thead',
|
||||
'time',
|
||||
'tr',
|
||||
'ul',
|
||||
'var',
|
||||
'video'
|
||||
];
|
||||
|
||||
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'
|
||||
];
|
||||
|
||||
// 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()
|
||||
];
|
||||
|
||||
// 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'
|
||||
];
|
||||
|
||||
const ATTRIBUTES = [
|
||||
'align-content',
|
||||
'align-items',
|
||||
'align-self',
|
||||
'animation',
|
||||
'animation-delay',
|
||||
'animation-direction',
|
||||
'animation-duration',
|
||||
'animation-fill-mode',
|
||||
'animation-iteration-count',
|
||||
'animation-name',
|
||||
'animation-play-state',
|
||||
'animation-timing-function',
|
||||
'auto',
|
||||
'backface-visibility',
|
||||
'background',
|
||||
'background-attachment',
|
||||
'background-clip',
|
||||
'background-color',
|
||||
'background-image',
|
||||
'background-origin',
|
||||
'background-position',
|
||||
'background-repeat',
|
||||
'background-size',
|
||||
'border',
|
||||
'border-bottom',
|
||||
'border-bottom-color',
|
||||
'border-bottom-left-radius',
|
||||
'border-bottom-right-radius',
|
||||
'border-bottom-style',
|
||||
'border-bottom-width',
|
||||
'border-collapse',
|
||||
'border-color',
|
||||
'border-image',
|
||||
'border-image-outset',
|
||||
'border-image-repeat',
|
||||
'border-image-slice',
|
||||
'border-image-source',
|
||||
'border-image-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-style',
|
||||
'border-top',
|
||||
'border-top-color',
|
||||
'border-top-left-radius',
|
||||
'border-top-right-radius',
|
||||
'border-top-style',
|
||||
'border-top-width',
|
||||
'border-width',
|
||||
'bottom',
|
||||
'box-decoration-break',
|
||||
'box-shadow',
|
||||
'box-sizing',
|
||||
'break-after',
|
||||
'break-before',
|
||||
'break-inside',
|
||||
'caption-side',
|
||||
'clear',
|
||||
'clip',
|
||||
'clip-path',
|
||||
'color',
|
||||
'column-count',
|
||||
'column-fill',
|
||||
'column-gap',
|
||||
'column-rule',
|
||||
'column-rule-color',
|
||||
'column-rule-style',
|
||||
'column-rule-width',
|
||||
'column-span',
|
||||
'column-width',
|
||||
'columns',
|
||||
'content',
|
||||
'counter-increment',
|
||||
'counter-reset',
|
||||
'cursor',
|
||||
'direction',
|
||||
'display',
|
||||
'empty-cells',
|
||||
'filter',
|
||||
'flex',
|
||||
'flex-basis',
|
||||
'flex-direction',
|
||||
'flex-flow',
|
||||
'flex-grow',
|
||||
'flex-shrink',
|
||||
'flex-wrap',
|
||||
'float',
|
||||
'font',
|
||||
'font-display',
|
||||
'font-family',
|
||||
'font-feature-settings',
|
||||
'font-kerning',
|
||||
'font-language-override',
|
||||
'font-size',
|
||||
'font-size-adjust',
|
||||
'font-smoothing',
|
||||
'font-stretch',
|
||||
'font-style',
|
||||
'font-variant',
|
||||
'font-variant-ligatures',
|
||||
'font-variation-settings',
|
||||
'font-weight',
|
||||
'height',
|
||||
'hyphens',
|
||||
'icon',
|
||||
'image-orientation',
|
||||
'image-rendering',
|
||||
'image-resolution',
|
||||
'ime-mode',
|
||||
'inherit',
|
||||
'initial',
|
||||
'justify-content',
|
||||
'left',
|
||||
'letter-spacing',
|
||||
'line-height',
|
||||
'list-style',
|
||||
'list-style-image',
|
||||
'list-style-position',
|
||||
'list-style-type',
|
||||
'margin',
|
||||
'margin-bottom',
|
||||
'margin-left',
|
||||
'margin-right',
|
||||
'margin-top',
|
||||
'marks',
|
||||
'mask',
|
||||
'max-height',
|
||||
'max-width',
|
||||
'min-height',
|
||||
'min-width',
|
||||
'nav-down',
|
||||
'nav-index',
|
||||
'nav-left',
|
||||
'nav-right',
|
||||
'nav-up',
|
||||
'none',
|
||||
'normal',
|
||||
'object-fit',
|
||||
'object-position',
|
||||
'opacity',
|
||||
'order',
|
||||
'orphans',
|
||||
'outline',
|
||||
'outline-color',
|
||||
'outline-offset',
|
||||
'outline-style',
|
||||
'outline-width',
|
||||
'overflow',
|
||||
'overflow-wrap',
|
||||
'overflow-x',
|
||||
'overflow-y',
|
||||
'padding',
|
||||
'padding-bottom',
|
||||
'padding-left',
|
||||
'padding-right',
|
||||
'padding-top',
|
||||
'page-break-after',
|
||||
'page-break-before',
|
||||
'page-break-inside',
|
||||
'perspective',
|
||||
'perspective-origin',
|
||||
'pointer-events',
|
||||
'position',
|
||||
'quotes',
|
||||
'resize',
|
||||
'right',
|
||||
'src', // @font-face
|
||||
'tab-size',
|
||||
'table-layout',
|
||||
'text-align',
|
||||
'text-align-last',
|
||||
'text-decoration',
|
||||
'text-decoration-color',
|
||||
'text-decoration-line',
|
||||
'text-decoration-style',
|
||||
'text-indent',
|
||||
'text-overflow',
|
||||
'text-rendering',
|
||||
'text-shadow',
|
||||
'text-transform',
|
||||
'text-underline-position',
|
||||
'top',
|
||||
'transform',
|
||||
'transform-origin',
|
||||
'transform-style',
|
||||
'transition',
|
||||
'transition-delay',
|
||||
'transition-duration',
|
||||
'transition-property',
|
||||
'transition-timing-function',
|
||||
'unicode-bidi',
|
||||
'vertical-align',
|
||||
'visibility',
|
||||
'white-space',
|
||||
'widows',
|
||||
'width',
|
||||
'word-break',
|
||||
'word-spacing',
|
||||
'word-wrap',
|
||||
'z-index'
|
||||
// reverse makes sure longer attributes `font-weight` are matched fully
|
||||
// instead of getting false positives on say `font`
|
||||
].reverse();
|
||||
|
||||
/**
|
||||
* @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;
|
||||
}
|
||||
|
||||
/*
|
||||
Language: CSS
|
||||
Category: common, css
|
||||
Website: https://developer.mozilla.org/en-US/docs/Web/CSS
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function css(hljs) {
|
||||
const modes = MODES(hljs);
|
||||
const FUNCTION_DISPATCH = {
|
||||
className: "built_in",
|
||||
begin: /[\w-]+(?=\()/
|
||||
};
|
||||
const VENDOR_PREFIX = {
|
||||
begin: /-(webkit|moz|ms|o)-(?=[a-z])/
|
||||
};
|
||||
const AT_MODIFIERS = "and or not only";
|
||||
const AT_PROPERTY_RE = /@-?\w[\w]*(-\w+)*/; // @-webkit-keyframes
|
||||
const IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*';
|
||||
const STRINGS = [
|
||||
hljs.APOS_STRING_MODE,
|
||||
hljs.QUOTE_STRING_MODE
|
||||
];
|
||||
|
||||
return {
|
||||
name: 'CSS',
|
||||
case_insensitive: true,
|
||||
illegal: /[=|'\$]/,
|
||||
keywords: {
|
||||
keyframePosition: "from to"
|
||||
},
|
||||
classNameAliases: {
|
||||
// for visual continuity with `tag {}` and because we
|
||||
// don't have a great class for this?
|
||||
keyframePosition: "selector-tag"
|
||||
},
|
||||
contains: [
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
VENDOR_PREFIX,
|
||||
// to recognize keyframe 40% etc which are outside the scope of our
|
||||
// attribute value mode
|
||||
hljs.CSS_NUMBER_MODE,
|
||||
{
|
||||
className: 'selector-id',
|
||||
begin: /#[A-Za-z0-9_-]+/,
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'selector-class',
|
||||
begin: '\\.' + IDENT_RE,
|
||||
relevance: 0
|
||||
},
|
||||
modes.ATTRIBUTE_SELECTOR_MODE,
|
||||
{
|
||||
className: 'selector-pseudo',
|
||||
variants: [
|
||||
{
|
||||
begin: ':(' + PSEUDO_CLASSES.join('|') + ')'
|
||||
},
|
||||
{
|
||||
begin: '::(' + PSEUDO_ELEMENTS.join('|') + ')'
|
||||
}
|
||||
]
|
||||
},
|
||||
// we may actually need this (12/2020)
|
||||
// { // pseudo-selector params
|
||||
// begin: /\(/,
|
||||
// end: /\)/,
|
||||
// contains: [ hljs.CSS_NUMBER_MODE ]
|
||||
// },
|
||||
{
|
||||
className: 'attribute',
|
||||
begin: '\\b(' + ATTRIBUTES.join('|') + ')\\b'
|
||||
},
|
||||
// attribute values
|
||||
{
|
||||
begin: ':',
|
||||
end: '[;}]',
|
||||
contains: [
|
||||
modes.HEXCOLOR,
|
||||
modes.IMPORTANT,
|
||||
hljs.CSS_NUMBER_MODE,
|
||||
...STRINGS,
|
||||
// needed to highlight these as strings and to avoid issues with
|
||||
// illegal characters that might be inside urls that would tigger the
|
||||
// languages illegal stack
|
||||
{
|
||||
begin: /(url|data-uri)\(/,
|
||||
end: /\)/,
|
||||
relevance: 0, // from keywords
|
||||
keywords: {
|
||||
built_in: "url data-uri"
|
||||
},
|
||||
contains: [
|
||||
{
|
||||
className: "string",
|
||||
// any character other than `)` as in `url()` will be the start
|
||||
// of a string, which ends with `)` (from the parent mode)
|
||||
begin: /[^)]/,
|
||||
endsWithParent: true,
|
||||
excludeEnd: true
|
||||
}
|
||||
]
|
||||
},
|
||||
FUNCTION_DISPATCH
|
||||
]
|
||||
},
|
||||
{
|
||||
begin: lookahead(/@/),
|
||||
end: '[{;]',
|
||||
relevance: 0,
|
||||
illegal: /:/, // break on Less variables @var: ...
|
||||
contains: [
|
||||
{
|
||||
className: 'keyword',
|
||||
begin: AT_PROPERTY_RE
|
||||
},
|
||||
{
|
||||
begin: /\s/,
|
||||
endsWithParent: true,
|
||||
excludeEnd: true,
|
||||
relevance: 0,
|
||||
keywords: {
|
||||
$pattern: /[a-z-]+/,
|
||||
keyword: AT_MODIFIERS,
|
||||
attribute: MEDIA_FEATURES.join(" ")
|
||||
},
|
||||
contains: [
|
||||
{
|
||||
begin: /[a-z-]+(?=:)/,
|
||||
className: "attribute"
|
||||
},
|
||||
...STRINGS,
|
||||
hljs.CSS_NUMBER_MODE
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'selector-tag',
|
||||
begin: '\\b(' + TAGS.join('|') + ')\\b'
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = css;
|
||||
34
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/dockerfile.js
generated
vendored
Normal file
34
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/dockerfile.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
Language: Dockerfile
|
||||
Requires: bash.js
|
||||
Author: Alexis Hénaut <alexis@henaut.net>
|
||||
Description: language definition for Dockerfile files
|
||||
Website: https://docs.docker.com/engine/reference/builder/
|
||||
Category: config
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function dockerfile(hljs) {
|
||||
return {
|
||||
name: 'Dockerfile',
|
||||
aliases: ['docker'],
|
||||
case_insensitive: true,
|
||||
keywords: 'from maintainer expose env arg user onbuild stopsignal',
|
||||
contains: [
|
||||
hljs.HASH_COMMENT_MODE,
|
||||
hljs.APOS_STRING_MODE,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
hljs.NUMBER_MODE,
|
||||
{
|
||||
beginKeywords: 'run cmd entrypoint volume add copy workdir label healthcheck shell',
|
||||
starts: {
|
||||
end: /[^\\]$/,
|
||||
subLanguage: 'bash'
|
||||
}
|
||||
}
|
||||
],
|
||||
illegal: '</'
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = dockerfile;
|
||||
45
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/dust.js
generated
vendored
Normal file
45
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/dust.js
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
Language: Dust
|
||||
Requires: xml.js
|
||||
Author: Michael Allen <michael.allen@benefitfocus.com>
|
||||
Description: Matcher for dust.js templates.
|
||||
Website: https://www.dustjs.com
|
||||
Category: template
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function dust(hljs) {
|
||||
const EXPRESSION_KEYWORDS = 'if eq ne lt lte gt gte select default math sep';
|
||||
return {
|
||||
name: 'Dust',
|
||||
aliases: ['dst'],
|
||||
case_insensitive: true,
|
||||
subLanguage: 'xml',
|
||||
contains: [
|
||||
{
|
||||
className: 'template-tag',
|
||||
begin: /\{[#\/]/,
|
||||
end: /\}/,
|
||||
illegal: /;/,
|
||||
contains: [{
|
||||
className: 'name',
|
||||
begin: /[a-zA-Z\.-]+/,
|
||||
starts: {
|
||||
endsWithParent: true,
|
||||
relevance: 0,
|
||||
contains: [hljs.QUOTE_STRING_MODE]
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
className: 'template-variable',
|
||||
begin: /\{/,
|
||||
end: /\}/,
|
||||
illegal: /;/,
|
||||
keywords: EXPRESSION_KEYWORDS
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = dust;
|
||||
86
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/erlang-repl.js
generated
vendored
Normal file
86
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/erlang-repl.js
generated
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
/**
|
||||
* @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) } args
|
||||
* @returns {string}
|
||||
*/
|
||||
function concat(...args) {
|
||||
const joined = args.map((x) => source(x)).join("");
|
||||
return joined;
|
||||
}
|
||||
|
||||
/*
|
||||
Language: Erlang REPL
|
||||
Author: Sergey Ignatov <sergey@ignatov.spb.su>
|
||||
Website: https://www.erlang.org
|
||||
Category: functional
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function erlangRepl(hljs) {
|
||||
return {
|
||||
name: 'Erlang REPL',
|
||||
keywords: {
|
||||
built_in:
|
||||
'spawn spawn_link self',
|
||||
keyword:
|
||||
'after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if ' +
|
||||
'let not of or orelse|10 query receive rem try when xor'
|
||||
},
|
||||
contains: [
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '^[0-9]+> ',
|
||||
relevance: 10
|
||||
},
|
||||
hljs.COMMENT('%', '$'),
|
||||
{
|
||||
className: 'number',
|
||||
begin: '\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)',
|
||||
relevance: 0
|
||||
},
|
||||
hljs.APOS_STRING_MODE,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
{
|
||||
begin: concat(
|
||||
/\?(::)?/,
|
||||
/([A-Z]\w*)/, // at least one identifier
|
||||
/((::)[A-Z]\w*)*/ // perhaps more
|
||||
)
|
||||
},
|
||||
{
|
||||
begin: '->'
|
||||
},
|
||||
{
|
||||
begin: 'ok'
|
||||
},
|
||||
{
|
||||
begin: '!'
|
||||
},
|
||||
{
|
||||
begin: '(\\b[a-z\'][a-zA-Z0-9_\']*:[a-z\'][a-zA-Z0-9_\']*)|(\\b[a-z\'][a-zA-Z0-9_\']*)',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
begin: '[A-Z][a-zA-Z0-9_\']*',
|
||||
relevance: 0
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = erlangRepl;
|
||||
159
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/fortran.js
generated
vendored
Normal file
159
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/fortran.js
generated
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
/**
|
||||
* @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) } args
|
||||
* @returns {string}
|
||||
*/
|
||||
function concat(...args) {
|
||||
const joined = args.map((x) => source(x)).join("");
|
||||
return joined;
|
||||
}
|
||||
|
||||
/*
|
||||
Language: Fortran
|
||||
Author: Anthony Scemama <scemama@irsamc.ups-tlse.fr>
|
||||
Website: https://en.wikipedia.org/wiki/Fortran
|
||||
Category: scientific
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function fortran(hljs) {
|
||||
const PARAMS = {
|
||||
className: 'params',
|
||||
begin: '\\(',
|
||||
end: '\\)'
|
||||
};
|
||||
|
||||
const COMMENT = {
|
||||
variants: [
|
||||
hljs.COMMENT('!', '$', {
|
||||
relevance: 0
|
||||
}),
|
||||
// allow FORTRAN 77 style comments
|
||||
hljs.COMMENT('^C[ ]', '$', {
|
||||
relevance: 0
|
||||
}),
|
||||
hljs.COMMENT('^C$', '$', {
|
||||
relevance: 0
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
// regex in both fortran and irpf90 should match
|
||||
const OPTIONAL_NUMBER_SUFFIX = /(_[a-z_\d]+)?/;
|
||||
const OPTIONAL_NUMBER_EXP = /([de][+-]?\d+)?/;
|
||||
const NUMBER = {
|
||||
className: 'number',
|
||||
variants: [
|
||||
{
|
||||
begin: concat(/\b\d+/, /\.(\d*)/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX)
|
||||
},
|
||||
{
|
||||
begin: concat(/\b\d+/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX)
|
||||
},
|
||||
{
|
||||
begin: concat(/\.\d+/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX)
|
||||
}
|
||||
],
|
||||
relevance: 0
|
||||
};
|
||||
|
||||
const FUNCTION_DEF = {
|
||||
className: 'function',
|
||||
beginKeywords: 'subroutine function program',
|
||||
illegal: '[${=\\n]',
|
||||
contains: [
|
||||
hljs.UNDERSCORE_TITLE_MODE,
|
||||
PARAMS
|
||||
]
|
||||
};
|
||||
|
||||
const STRING = {
|
||||
className: 'string',
|
||||
relevance: 0,
|
||||
variants: [
|
||||
hljs.APOS_STRING_MODE,
|
||||
hljs.QUOTE_STRING_MODE
|
||||
]
|
||||
};
|
||||
|
||||
const KEYWORDS = {
|
||||
literal: '.False. .True.',
|
||||
keyword: 'kind do concurrent local shared while private call intrinsic where elsewhere ' +
|
||||
'type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then block endblock endassociate ' +
|
||||
'public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. ' +
|
||||
'goto save else use module select case ' +
|
||||
'access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit ' +
|
||||
'continue format pause cycle exit ' +
|
||||
'c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg ' +
|
||||
'synchronous nopass non_overridable pass protected volatile abstract extends import ' +
|
||||
'non_intrinsic value deferred generic final enumerator class associate bind enum ' +
|
||||
'c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t ' +
|
||||
'c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double ' +
|
||||
'c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr ' +
|
||||
'c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer ' +
|
||||
'c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor ' +
|
||||
'numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ' +
|
||||
'ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive ' +
|
||||
'pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure impure ' +
|
||||
'integer real character complex logical codimension dimension allocatable|10 parameter ' +
|
||||
'external implicit|10 none double precision assign intent optional pointer ' +
|
||||
'target in out common equivalence data',
|
||||
built_in: 'alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint ' +
|
||||
'dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl ' +
|
||||
'algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama ' +
|
||||
'iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod ' +
|
||||
'qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log ' +
|
||||
'log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate ' +
|
||||
'adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product ' +
|
||||
'eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul ' +
|
||||
'maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product ' +
|
||||
'radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind ' +
|
||||
'set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer ' +
|
||||
'dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ' +
|
||||
'ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode ' +
|
||||
'is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of ' +
|
||||
'acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 ' +
|
||||
'atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits ' +
|
||||
'bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr ' +
|
||||
'num_images parity popcnt poppar shifta shiftl shiftr this_image sync change team co_broadcast co_max co_min co_sum co_reduce'
|
||||
};
|
||||
return {
|
||||
name: 'Fortran',
|
||||
case_insensitive: true,
|
||||
aliases: [
|
||||
'f90',
|
||||
'f95'
|
||||
],
|
||||
keywords: KEYWORDS,
|
||||
illegal: /\/\*/,
|
||||
contains: [
|
||||
STRING,
|
||||
FUNCTION_DEF,
|
||||
// allow `C = value` for assignments so they aren't misdetected
|
||||
// as Fortran 77 style comments
|
||||
{
|
||||
begin: /^C\s*=(?!=)/,
|
||||
relevance: 0
|
||||
},
|
||||
COMMENT,
|
||||
NUMBER
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = fortran;
|
||||
74
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/go.js
generated
vendored
Normal file
74
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/go.js
generated
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
Language: Go
|
||||
Author: Stephan Kountso aka StepLg <steplg@gmail.com>
|
||||
Contributors: Evgeny Stepanischev <imbolk@gmail.com>
|
||||
Description: Google go language (golang). For info about language
|
||||
Website: http://golang.org/
|
||||
Category: common, system
|
||||
*/
|
||||
|
||||
function go(hljs) {
|
||||
const GO_KEYWORDS = {
|
||||
keyword:
|
||||
'break default func interface select case map struct chan else goto package switch ' +
|
||||
'const fallthrough if range type continue for import return var go defer ' +
|
||||
'bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 ' +
|
||||
'uint16 uint32 uint64 int uint uintptr rune',
|
||||
literal:
|
||||
'true false iota nil',
|
||||
built_in:
|
||||
'append cap close complex copy imag len make new panic print println real recover delete'
|
||||
};
|
||||
return {
|
||||
name: 'Go',
|
||||
aliases: ['golang'],
|
||||
keywords: GO_KEYWORDS,
|
||||
illegal: '</',
|
||||
contains: [
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
{
|
||||
className: 'string',
|
||||
variants: [
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
hljs.APOS_STRING_MODE,
|
||||
{
|
||||
begin: '`',
|
||||
end: '`'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'number',
|
||||
variants: [
|
||||
{
|
||||
begin: hljs.C_NUMBER_RE + '[i]',
|
||||
relevance: 1
|
||||
},
|
||||
hljs.C_NUMBER_MODE
|
||||
]
|
||||
},
|
||||
{
|
||||
begin: /:=/ // relevance booster
|
||||
},
|
||||
{
|
||||
className: 'function',
|
||||
beginKeywords: 'func',
|
||||
end: '\\s*(\\{|$)',
|
||||
excludeEnd: true,
|
||||
contains: [
|
||||
hljs.TITLE_MODE,
|
||||
{
|
||||
className: 'params',
|
||||
begin: /\(/,
|
||||
end: /\)/,
|
||||
keywords: GO_KEYWORDS,
|
||||
illegal: /["']/
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = go;
|
||||
44
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/gradle.js
generated
vendored
Normal file
44
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/gradle.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
Language: Gradle
|
||||
Description: Gradle is an open-source build automation tool focused on flexibility and performance.
|
||||
Website: https://gradle.org
|
||||
Author: Damian Mee <mee.damian@gmail.com>
|
||||
*/
|
||||
|
||||
function gradle(hljs) {
|
||||
return {
|
||||
name: 'Gradle',
|
||||
case_insensitive: true,
|
||||
keywords: {
|
||||
keyword:
|
||||
'task project allprojects subprojects artifacts buildscript configurations ' +
|
||||
'dependencies repositories sourceSets description delete from into include ' +
|
||||
'exclude source classpath destinationDir includes options sourceCompatibility ' +
|
||||
'targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant ' +
|
||||
'def abstract break case catch continue default do else extends final finally ' +
|
||||
'for if implements instanceof native new private protected public return static ' +
|
||||
'switch synchronized throw throws transient try volatile while strictfp package ' +
|
||||
'import false null super this true antlrtask checkstyle codenarc copy boolean ' +
|
||||
'byte char class double float int interface long short void compile runTime ' +
|
||||
'file fileTree abs any append asList asWritable call collect compareTo count ' +
|
||||
'div dump each eachByte eachFile eachLine every find findAll flatten getAt ' +
|
||||
'getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods ' +
|
||||
'isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter ' +
|
||||
'newReader newWriter next plus pop power previous print println push putAt read ' +
|
||||
'readBytes readLines reverse reverseEach round size sort splitEachLine step subMap ' +
|
||||
'times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader ' +
|
||||
'withStream withWriter withWriterAppend write writeLine'
|
||||
},
|
||||
contains: [
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
hljs.APOS_STRING_MODE,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
hljs.NUMBER_MODE,
|
||||
hljs.REGEXP_MODE
|
||||
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = gradle;
|
||||
173
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/haskell.js
generated
vendored
Normal file
173
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/haskell.js
generated
vendored
Normal file
@@ -0,0 +1,173 @@
|
||||
/*
|
||||
Language: Haskell
|
||||
Author: Jeremy Hull <sourdrums@gmail.com>
|
||||
Contributors: Zena Treep <zena.treep@gmail.com>
|
||||
Website: https://www.haskell.org
|
||||
Category: functional
|
||||
*/
|
||||
|
||||
function haskell(hljs) {
|
||||
const COMMENT = {
|
||||
variants: [
|
||||
hljs.COMMENT('--', '$'),
|
||||
hljs.COMMENT(
|
||||
/\{-/,
|
||||
/-\}/,
|
||||
{
|
||||
contains: ['self']
|
||||
}
|
||||
)
|
||||
]
|
||||
};
|
||||
|
||||
const PRAGMA = {
|
||||
className: 'meta',
|
||||
begin: /\{-#/,
|
||||
end: /#-\}/
|
||||
};
|
||||
|
||||
const PREPROCESSOR = {
|
||||
className: 'meta',
|
||||
begin: '^#',
|
||||
end: '$'
|
||||
};
|
||||
|
||||
const CONSTRUCTOR = {
|
||||
className: 'type',
|
||||
begin: '\\b[A-Z][\\w\']*', // TODO: other constructors (build-in, infix).
|
||||
relevance: 0
|
||||
};
|
||||
|
||||
const LIST = {
|
||||
begin: '\\(',
|
||||
end: '\\)',
|
||||
illegal: '"',
|
||||
contains: [
|
||||
PRAGMA,
|
||||
PREPROCESSOR,
|
||||
{
|
||||
className: 'type',
|
||||
begin: '\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?'
|
||||
},
|
||||
hljs.inherit(hljs.TITLE_MODE, {
|
||||
begin: '[_a-z][\\w\']*'
|
||||
}),
|
||||
COMMENT
|
||||
]
|
||||
};
|
||||
|
||||
const RECORD = {
|
||||
begin: /\{/,
|
||||
end: /\}/,
|
||||
contains: LIST.contains
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'Haskell',
|
||||
aliases: ['hs'],
|
||||
keywords:
|
||||
'let in if then else case of where do module import hiding ' +
|
||||
'qualified type data newtype deriving class instance as default ' +
|
||||
'infix infixl infixr foreign export ccall stdcall cplusplus ' +
|
||||
'jvm dotnet safe unsafe family forall mdo proc rec',
|
||||
contains: [
|
||||
// Top-level constructions.
|
||||
{
|
||||
beginKeywords: 'module',
|
||||
end: 'where',
|
||||
keywords: 'module where',
|
||||
contains: [
|
||||
LIST,
|
||||
COMMENT
|
||||
],
|
||||
illegal: '\\W\\.|;'
|
||||
},
|
||||
{
|
||||
begin: '\\bimport\\b',
|
||||
end: '$',
|
||||
keywords: 'import qualified as hiding',
|
||||
contains: [
|
||||
LIST,
|
||||
COMMENT
|
||||
],
|
||||
illegal: '\\W\\.|;'
|
||||
},
|
||||
{
|
||||
className: 'class',
|
||||
begin: '^(\\s*)?(class|instance)\\b',
|
||||
end: 'where',
|
||||
keywords: 'class family instance where',
|
||||
contains: [
|
||||
CONSTRUCTOR,
|
||||
LIST,
|
||||
COMMENT
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'class',
|
||||
begin: '\\b(data|(new)?type)\\b',
|
||||
end: '$',
|
||||
keywords: 'data family type newtype deriving',
|
||||
contains: [
|
||||
PRAGMA,
|
||||
CONSTRUCTOR,
|
||||
LIST,
|
||||
RECORD,
|
||||
COMMENT
|
||||
]
|
||||
},
|
||||
{
|
||||
beginKeywords: 'default',
|
||||
end: '$',
|
||||
contains: [
|
||||
CONSTRUCTOR,
|
||||
LIST,
|
||||
COMMENT
|
||||
]
|
||||
},
|
||||
{
|
||||
beginKeywords: 'infix infixl infixr',
|
||||
end: '$',
|
||||
contains: [
|
||||
hljs.C_NUMBER_MODE,
|
||||
COMMENT
|
||||
]
|
||||
},
|
||||
{
|
||||
begin: '\\bforeign\\b',
|
||||
end: '$',
|
||||
keywords: 'foreign import export ccall stdcall cplusplus jvm ' +
|
||||
'dotnet safe unsafe',
|
||||
contains: [
|
||||
CONSTRUCTOR,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
COMMENT
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '#!\\/usr\\/bin\\/env\ runhaskell',
|
||||
end: '$'
|
||||
},
|
||||
// "Whitespaces".
|
||||
PRAGMA,
|
||||
PREPROCESSOR,
|
||||
|
||||
// Literals and names.
|
||||
|
||||
// TODO: characters.
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
hljs.C_NUMBER_MODE,
|
||||
CONSTRUCTOR,
|
||||
hljs.inherit(hljs.TITLE_MODE, {
|
||||
begin: '^[_a-z][\\w\']*'
|
||||
}),
|
||||
COMMENT,
|
||||
{ // No markup, relevance booster
|
||||
begin: '->|<-'
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = haskell;
|
||||
352
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/htmlbars.js
generated
vendored
Normal file
352
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/htmlbars.js
generated
vendored
Normal file
@@ -0,0 +1,352 @@
|
||||
/**
|
||||
* @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 anyNumberOfTimes(re) {
|
||||
return concat('(', re, ')*');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {RegExp | string } re
|
||||
* @returns {string}
|
||||
*/
|
||||
function optional(re) {
|
||||
return concat('(', re, ')?');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {...(RegExp | string) } args
|
||||
* @returns {string}
|
||||
*/
|
||||
function concat(...args) {
|
||||
const joined = args.map((x) => source(x)).join("");
|
||||
return joined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Any of the passed expresssions may match
|
||||
*
|
||||
* Creates a huge this | this | that | that match
|
||||
* @param {(RegExp | string)[] } args
|
||||
* @returns {string}
|
||||
*/
|
||||
function either(...args) {
|
||||
const joined = '(' + args.map((x) => source(x)).join("|") + ")";
|
||||
return joined;
|
||||
}
|
||||
|
||||
/*
|
||||
Language: Handlebars
|
||||
Requires: xml.js
|
||||
Author: Robin Ward <robin.ward@gmail.com>
|
||||
Description: Matcher for Handlebars as well as EmberJS additions.
|
||||
Website: https://handlebarsjs.com
|
||||
Category: template
|
||||
*/
|
||||
|
||||
function handlebars(hljs) {
|
||||
const BUILT_INS = {
|
||||
'builtin-name': [
|
||||
'action',
|
||||
'bindattr',
|
||||
'collection',
|
||||
'component',
|
||||
'concat',
|
||||
'debugger',
|
||||
'each',
|
||||
'each-in',
|
||||
'get',
|
||||
'hash',
|
||||
'if',
|
||||
'in',
|
||||
'input',
|
||||
'link-to',
|
||||
'loc',
|
||||
'log',
|
||||
'lookup',
|
||||
'mut',
|
||||
'outlet',
|
||||
'partial',
|
||||
'query-params',
|
||||
'render',
|
||||
'template',
|
||||
'textarea',
|
||||
'unbound',
|
||||
'unless',
|
||||
'view',
|
||||
'with',
|
||||
'yield'
|
||||
]
|
||||
};
|
||||
|
||||
const LITERALS = {
|
||||
literal: [
|
||||
'true',
|
||||
'false',
|
||||
'undefined',
|
||||
'null'
|
||||
]
|
||||
};
|
||||
|
||||
// as defined in https://handlebarsjs.com/guide/expressions.html#literal-segments
|
||||
// this regex matches literal segments like ' abc ' or [ abc ] as well as helpers and paths
|
||||
// like a/b, ./abc/cde, and abc.bcd
|
||||
|
||||
const DOUBLE_QUOTED_ID_REGEX = /""|"[^"]+"/;
|
||||
const SINGLE_QUOTED_ID_REGEX = /''|'[^']+'/;
|
||||
const BRACKET_QUOTED_ID_REGEX = /\[\]|\[[^\]]+\]/;
|
||||
const PLAIN_ID_REGEX = /[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/;
|
||||
const PATH_DELIMITER_REGEX = /(\.|\/)/;
|
||||
const ANY_ID = either(
|
||||
DOUBLE_QUOTED_ID_REGEX,
|
||||
SINGLE_QUOTED_ID_REGEX,
|
||||
BRACKET_QUOTED_ID_REGEX,
|
||||
PLAIN_ID_REGEX
|
||||
);
|
||||
|
||||
const IDENTIFIER_REGEX = concat(
|
||||
optional(/\.|\.\/|\//), // relative or absolute path
|
||||
ANY_ID,
|
||||
anyNumberOfTimes(concat(
|
||||
PATH_DELIMITER_REGEX,
|
||||
ANY_ID
|
||||
))
|
||||
);
|
||||
|
||||
// identifier followed by a equal-sign (without the equal sign)
|
||||
const HASH_PARAM_REGEX = concat(
|
||||
'(',
|
||||
BRACKET_QUOTED_ID_REGEX, '|',
|
||||
PLAIN_ID_REGEX,
|
||||
')(?==)'
|
||||
);
|
||||
|
||||
const HELPER_NAME_OR_PATH_EXPRESSION = {
|
||||
begin: IDENTIFIER_REGEX,
|
||||
lexemes: /[\w.\/]+/
|
||||
};
|
||||
|
||||
const HELPER_PARAMETER = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, {
|
||||
keywords: LITERALS
|
||||
});
|
||||
|
||||
const SUB_EXPRESSION = {
|
||||
begin: /\(/,
|
||||
end: /\)/
|
||||
// the "contains" is added below when all necessary sub-modes are defined
|
||||
};
|
||||
|
||||
const HASH = {
|
||||
// fka "attribute-assignment", parameters of the form 'key=value'
|
||||
className: 'attr',
|
||||
begin: HASH_PARAM_REGEX,
|
||||
relevance: 0,
|
||||
starts: {
|
||||
begin: /=/,
|
||||
end: /=/,
|
||||
starts: {
|
||||
contains: [
|
||||
hljs.NUMBER_MODE,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
hljs.APOS_STRING_MODE,
|
||||
HELPER_PARAMETER,
|
||||
SUB_EXPRESSION
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const BLOCK_PARAMS = {
|
||||
// parameters of the form '{{#with x as | y |}}...{{/with}}'
|
||||
begin: /as\s+\|/,
|
||||
keywords: {
|
||||
keyword: 'as'
|
||||
},
|
||||
end: /\|/,
|
||||
contains: [
|
||||
{
|
||||
// define sub-mode in order to prevent highlighting of block-parameter named "as"
|
||||
begin: /\w+/
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
const HELPER_PARAMETERS = {
|
||||
contains: [
|
||||
hljs.NUMBER_MODE,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
hljs.APOS_STRING_MODE,
|
||||
BLOCK_PARAMS,
|
||||
HASH,
|
||||
HELPER_PARAMETER,
|
||||
SUB_EXPRESSION
|
||||
],
|
||||
returnEnd: true
|
||||
// the property "end" is defined through inheritance when the mode is used. If depends
|
||||
// on the surrounding mode, but "endsWithParent" does not work here (i.e. it includes the
|
||||
// end-token of the surrounding mode)
|
||||
};
|
||||
|
||||
const SUB_EXPRESSION_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, {
|
||||
className: 'name',
|
||||
keywords: BUILT_INS,
|
||||
starts: hljs.inherit(HELPER_PARAMETERS, {
|
||||
end: /\)/
|
||||
})
|
||||
});
|
||||
|
||||
SUB_EXPRESSION.contains = [SUB_EXPRESSION_CONTENTS];
|
||||
|
||||
const OPENING_BLOCK_MUSTACHE_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, {
|
||||
keywords: BUILT_INS,
|
||||
className: 'name',
|
||||
starts: hljs.inherit(HELPER_PARAMETERS, {
|
||||
end: /\}\}/
|
||||
})
|
||||
});
|
||||
|
||||
const CLOSING_BLOCK_MUSTACHE_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, {
|
||||
keywords: BUILT_INS,
|
||||
className: 'name'
|
||||
});
|
||||
|
||||
const BASIC_MUSTACHE_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, {
|
||||
className: 'name',
|
||||
keywords: BUILT_INS,
|
||||
starts: hljs.inherit(HELPER_PARAMETERS, {
|
||||
end: /\}\}/
|
||||
})
|
||||
});
|
||||
|
||||
const ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH = {
|
||||
begin: /\\\{\{/,
|
||||
skip: true
|
||||
};
|
||||
const PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH = {
|
||||
begin: /\\\\(?=\{\{)/,
|
||||
skip: true
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'Handlebars',
|
||||
aliases: [
|
||||
'hbs',
|
||||
'html.hbs',
|
||||
'html.handlebars',
|
||||
'htmlbars'
|
||||
],
|
||||
case_insensitive: true,
|
||||
subLanguage: 'xml',
|
||||
contains: [
|
||||
ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH,
|
||||
PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH,
|
||||
hljs.COMMENT(/\{\{!--/, /--\}\}/),
|
||||
hljs.COMMENT(/\{\{!/, /\}\}/),
|
||||
{
|
||||
// open raw block "{{{{raw}}}} content not evaluated {{{{/raw}}}}"
|
||||
className: 'template-tag',
|
||||
begin: /\{\{\{\{(?!\/)/,
|
||||
end: /\}\}\}\}/,
|
||||
contains: [OPENING_BLOCK_MUSTACHE_CONTENTS],
|
||||
starts: {
|
||||
end: /\{\{\{\{\//,
|
||||
returnEnd: true,
|
||||
subLanguage: 'xml'
|
||||
}
|
||||
},
|
||||
{
|
||||
// close raw block
|
||||
className: 'template-tag',
|
||||
begin: /\{\{\{\{\//,
|
||||
end: /\}\}\}\}/,
|
||||
contains: [CLOSING_BLOCK_MUSTACHE_CONTENTS]
|
||||
},
|
||||
{
|
||||
// open block statement
|
||||
className: 'template-tag',
|
||||
begin: /\{\{#/,
|
||||
end: /\}\}/,
|
||||
contains: [OPENING_BLOCK_MUSTACHE_CONTENTS]
|
||||
},
|
||||
{
|
||||
className: 'template-tag',
|
||||
begin: /\{\{(?=else\}\})/,
|
||||
end: /\}\}/,
|
||||
keywords: 'else'
|
||||
},
|
||||
{
|
||||
className: 'template-tag',
|
||||
begin: /\{\{(?=else if)/,
|
||||
end: /\}\}/,
|
||||
keywords: 'else if'
|
||||
},
|
||||
{
|
||||
// closing block statement
|
||||
className: 'template-tag',
|
||||
begin: /\{\{\//,
|
||||
end: /\}\}/,
|
||||
contains: [CLOSING_BLOCK_MUSTACHE_CONTENTS]
|
||||
},
|
||||
{
|
||||
// template variable or helper-call that is NOT html-escaped
|
||||
className: 'template-variable',
|
||||
begin: /\{\{\{/,
|
||||
end: /\}\}\}/,
|
||||
contains: [BASIC_MUSTACHE_CONTENTS]
|
||||
},
|
||||
{
|
||||
// template variable or helper-call that is html-escaped
|
||||
className: 'template-variable',
|
||||
begin: /\{\{/,
|
||||
end: /\}\}/,
|
||||
contains: [BASIC_MUSTACHE_CONTENTS]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
/*
|
||||
Language: HTMLBars (legacy)
|
||||
Requires: xml.js
|
||||
Description: Matcher for Handlebars as well as EmberJS additions.
|
||||
Website: https://github.com/tildeio/htmlbars
|
||||
Category: template
|
||||
*/
|
||||
|
||||
function htmlbars(hljs) {
|
||||
const definition = handlebars(hljs);
|
||||
|
||||
definition.name = "HTMLbars";
|
||||
|
||||
// HACK: This lets handlebars do the auto-detection if it's been loaded (by
|
||||
// default the build script will load in alphabetical order) and if not (perhaps
|
||||
// an install is only using `htmlbars`, not `handlebars`) then this will still
|
||||
// allow HTMLBars to participate in the auto-detection
|
||||
|
||||
// worse case someone will have HTMLbars and handlebars competing for the same
|
||||
// content and will need to change their setup to only require handlebars, but
|
||||
// I don't consider this a breaking change
|
||||
if (hljs.getLanguage("handlebars")) {
|
||||
definition.disableAutodetect = true;
|
||||
}
|
||||
|
||||
return definition;
|
||||
}
|
||||
|
||||
module.exports = htmlbars;
|
||||
141
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/irpf90.js
generated
vendored
Normal file
141
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/irpf90.js
generated
vendored
Normal file
@@ -0,0 +1,141 @@
|
||||
/**
|
||||
* @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) } args
|
||||
* @returns {string}
|
||||
*/
|
||||
function concat(...args) {
|
||||
const joined = args.map((x) => source(x)).join("");
|
||||
return joined;
|
||||
}
|
||||
|
||||
/*
|
||||
Language: IRPF90
|
||||
Author: Anthony Scemama <scemama@irsamc.ups-tlse.fr>
|
||||
Description: IRPF90 is an open-source Fortran code generator
|
||||
Website: http://irpf90.ups-tlse.fr
|
||||
Category: scientific
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function irpf90(hljs) {
|
||||
const PARAMS = {
|
||||
className: 'params',
|
||||
begin: '\\(',
|
||||
end: '\\)'
|
||||
};
|
||||
|
||||
// regex in both fortran and irpf90 should match
|
||||
const OPTIONAL_NUMBER_SUFFIX = /(_[a-z_\d]+)?/;
|
||||
const OPTIONAL_NUMBER_EXP = /([de][+-]?\d+)?/;
|
||||
const NUMBER = {
|
||||
className: 'number',
|
||||
variants: [
|
||||
{
|
||||
begin: concat(/\b\d+/, /\.(\d*)/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX)
|
||||
},
|
||||
{
|
||||
begin: concat(/\b\d+/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX)
|
||||
},
|
||||
{
|
||||
begin: concat(/\.\d+/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX)
|
||||
}
|
||||
],
|
||||
relevance: 0
|
||||
};
|
||||
|
||||
const F_KEYWORDS = {
|
||||
literal: '.False. .True.',
|
||||
keyword: 'kind do while private call intrinsic where elsewhere ' +
|
||||
'type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then ' +
|
||||
'public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. ' +
|
||||
'goto save else use module select case ' +
|
||||
'access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit ' +
|
||||
'continue format pause cycle exit ' +
|
||||
'c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg ' +
|
||||
'synchronous nopass non_overridable pass protected volatile abstract extends import ' +
|
||||
'non_intrinsic value deferred generic final enumerator class associate bind enum ' +
|
||||
'c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t ' +
|
||||
'c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double ' +
|
||||
'c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr ' +
|
||||
'c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer ' +
|
||||
'c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor ' +
|
||||
'numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ' +
|
||||
'ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive ' +
|
||||
'pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure ' +
|
||||
'integer real character complex logical dimension allocatable|10 parameter ' +
|
||||
'external implicit|10 none double precision assign intent optional pointer ' +
|
||||
'target in out common equivalence data ' +
|
||||
// IRPF90 special keywords
|
||||
'begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch ' +
|
||||
'soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read',
|
||||
built_in: 'alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint ' +
|
||||
'dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl ' +
|
||||
'algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama ' +
|
||||
'iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod ' +
|
||||
'qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log ' +
|
||||
'log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate ' +
|
||||
'adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product ' +
|
||||
'eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul ' +
|
||||
'maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product ' +
|
||||
'radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind ' +
|
||||
'set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer ' +
|
||||
'dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ' +
|
||||
'ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode ' +
|
||||
'is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of ' +
|
||||
'acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 ' +
|
||||
'atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits ' +
|
||||
'bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr ' +
|
||||
'num_images parity popcnt poppar shifta shiftl shiftr this_image ' +
|
||||
// IRPF90 special built_ins
|
||||
'IRP_ALIGN irp_here'
|
||||
};
|
||||
return {
|
||||
name: 'IRPF90',
|
||||
case_insensitive: true,
|
||||
keywords: F_KEYWORDS,
|
||||
illegal: /\/\*/,
|
||||
contains: [
|
||||
hljs.inherit(hljs.APOS_STRING_MODE, {
|
||||
className: 'string',
|
||||
relevance: 0
|
||||
}),
|
||||
hljs.inherit(hljs.QUOTE_STRING_MODE, {
|
||||
className: 'string',
|
||||
relevance: 0
|
||||
}),
|
||||
{
|
||||
className: 'function',
|
||||
beginKeywords: 'subroutine function program',
|
||||
illegal: '[${=\\n]',
|
||||
contains: [
|
||||
hljs.UNDERSCORE_TITLE_MODE,
|
||||
PARAMS
|
||||
]
|
||||
},
|
||||
hljs.COMMENT('!', '$', {
|
||||
relevance: 0
|
||||
}),
|
||||
hljs.COMMENT('begin_doc', 'end_doc', {
|
||||
relevance: 10
|
||||
}),
|
||||
NUMBER
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = irpf90;
|
||||
50
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/julia-repl.js
generated
vendored
Normal file
50
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/julia-repl.js
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
Language: Julia REPL
|
||||
Description: Julia REPL sessions
|
||||
Author: Morten Piibeleht <morten.piibeleht@gmail.com>
|
||||
Website: https://julialang.org
|
||||
Requires: julia.js
|
||||
|
||||
The Julia REPL code blocks look something like the following:
|
||||
|
||||
julia> function foo(x)
|
||||
x + 1
|
||||
end
|
||||
foo (generic function with 1 method)
|
||||
|
||||
They start on a new line with "julia>". Usually there should also be a space after this, but
|
||||
we also allow the code to start right after the > character. The code may run over multiple
|
||||
lines, but the additional lines must start with six spaces (i.e. be indented to match
|
||||
"julia>"). The rest of the code is assumed to be output from the executed code and will be
|
||||
left un-highlighted.
|
||||
|
||||
Using simply spaces to identify line continuations may get a false-positive if the output
|
||||
also prints out six spaces, but such cases should be rare.
|
||||
*/
|
||||
|
||||
function juliaRepl(hljs) {
|
||||
return {
|
||||
name: 'Julia REPL',
|
||||
contains: [
|
||||
{
|
||||
className: 'meta',
|
||||
begin: /^julia>/,
|
||||
relevance: 10,
|
||||
starts: {
|
||||
// end the highlighting if we are on a new line and the line does not have at
|
||||
// least six spaces in the beginning
|
||||
end: /^(?![ ]{6})/,
|
||||
subLanguage: 'julia'
|
||||
},
|
||||
// jldoctest Markdown blocks are used in the Julia manual and package docs indicate
|
||||
// code snippets that should be verified when the documentation is built. They can be
|
||||
// either REPL-like or script-like, but are usually REPL-like and therefore we apply
|
||||
// julia-repl highlighting to them. More information can be found in Documenter's
|
||||
// manual: https://juliadocs.github.io/Documenter.jl/latest/man/doctests.html
|
||||
aliases: ['jldoctest']
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = juliaRepl;
|
||||
187
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/lasso.js
generated
vendored
Normal file
187
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/lasso.js
generated
vendored
Normal file
@@ -0,0 +1,187 @@
|
||||
/*
|
||||
Language: Lasso
|
||||
Author: Eric Knibbe <eric@lassosoft.com>
|
||||
Description: Lasso is a language and server platform for database-driven web applications. This definition handles Lasso 9 syntax and LassoScript for Lasso 8.6 and earlier.
|
||||
Website: http://www.lassosoft.com/What-Is-Lasso
|
||||
*/
|
||||
|
||||
function lasso(hljs) {
|
||||
const LASSO_IDENT_RE = '[a-zA-Z_][\\w.]*';
|
||||
const LASSO_ANGLE_RE = '<\\?(lasso(script)?|=)';
|
||||
const LASSO_CLOSE_RE = '\\]|\\?>';
|
||||
const LASSO_KEYWORDS = {
|
||||
$pattern: LASSO_IDENT_RE + '|&[lg]t;',
|
||||
literal:
|
||||
'true false none minimal full all void and or not ' +
|
||||
'bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft',
|
||||
built_in:
|
||||
'array date decimal duration integer map pair string tag xml null ' +
|
||||
'boolean bytes keyword list locale queue set stack staticarray ' +
|
||||
'local var variable global data self inherited currentcapture givenblock',
|
||||
keyword:
|
||||
'cache database_names database_schemanames database_tablenames ' +
|
||||
'define_tag define_type email_batch encode_set html_comment handle ' +
|
||||
'handle_error header if inline iterate ljax_target link ' +
|
||||
'link_currentaction link_currentgroup link_currentrecord link_detail ' +
|
||||
'link_firstgroup link_firstrecord link_lastgroup link_lastrecord ' +
|
||||
'link_nextgroup link_nextrecord link_prevgroup link_prevrecord log ' +
|
||||
'loop namespace_using output_none portal private protect records ' +
|
||||
'referer referrer repeating resultset rows search_args ' +
|
||||
'search_arguments select sort_args sort_arguments thread_atomic ' +
|
||||
'value_list while abort case else fail_if fail_ifnot fail if_empty ' +
|
||||
'if_false if_null if_true loop_abort loop_continue loop_count params ' +
|
||||
'params_up return return_value run_children soap_definetag ' +
|
||||
'soap_lastrequest soap_lastresponse tag_name ascending average by ' +
|
||||
'define descending do equals frozen group handle_failure import in ' +
|
||||
'into join let match max min on order parent protected provide public ' +
|
||||
'require returnhome skip split_thread sum take thread to trait type ' +
|
||||
'where with yield yieldhome'
|
||||
};
|
||||
const HTML_COMMENT = hljs.COMMENT(
|
||||
'<!--',
|
||||
'-->',
|
||||
{
|
||||
relevance: 0
|
||||
}
|
||||
);
|
||||
const LASSO_NOPROCESS = {
|
||||
className: 'meta',
|
||||
begin: '\\[noprocess\\]',
|
||||
starts: {
|
||||
end: '\\[/noprocess\\]',
|
||||
returnEnd: true,
|
||||
contains: [HTML_COMMENT]
|
||||
}
|
||||
};
|
||||
const LASSO_START = {
|
||||
className: 'meta',
|
||||
begin: '\\[/noprocess|' + LASSO_ANGLE_RE
|
||||
};
|
||||
const LASSO_DATAMEMBER = {
|
||||
className: 'symbol',
|
||||
begin: '\'' + LASSO_IDENT_RE + '\''
|
||||
};
|
||||
const LASSO_CODE = [
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
hljs.inherit(hljs.C_NUMBER_MODE, {
|
||||
begin: hljs.C_NUMBER_RE + '|(-?infinity|NaN)\\b'
|
||||
}),
|
||||
hljs.inherit(hljs.APOS_STRING_MODE, {
|
||||
illegal: null
|
||||
}),
|
||||
hljs.inherit(hljs.QUOTE_STRING_MODE, {
|
||||
illegal: null
|
||||
}),
|
||||
{
|
||||
className: 'string',
|
||||
begin: '`',
|
||||
end: '`'
|
||||
},
|
||||
{ // variables
|
||||
variants: [
|
||||
{
|
||||
begin: '[#$]' + LASSO_IDENT_RE
|
||||
},
|
||||
{
|
||||
begin: '#',
|
||||
end: '\\d+',
|
||||
illegal: '\\W'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'type',
|
||||
begin: '::\\s*',
|
||||
end: LASSO_IDENT_RE,
|
||||
illegal: '\\W'
|
||||
},
|
||||
{
|
||||
className: 'params',
|
||||
variants: [
|
||||
{
|
||||
begin: '-(?!infinity)' + LASSO_IDENT_RE,
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
begin: '(\\.\\.\\.)'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
begin: /(->|\.)\s*/,
|
||||
relevance: 0,
|
||||
contains: [LASSO_DATAMEMBER]
|
||||
},
|
||||
{
|
||||
className: 'class',
|
||||
beginKeywords: 'define',
|
||||
returnEnd: true,
|
||||
end: '\\(|=>',
|
||||
contains: [
|
||||
hljs.inherit(hljs.TITLE_MODE, {
|
||||
begin: LASSO_IDENT_RE + '(=(?!>))?|[-+*/%](?!>)'
|
||||
})
|
||||
]
|
||||
}
|
||||
];
|
||||
return {
|
||||
name: 'Lasso',
|
||||
aliases: [
|
||||
'ls',
|
||||
'lassoscript'
|
||||
],
|
||||
case_insensitive: true,
|
||||
keywords: LASSO_KEYWORDS,
|
||||
contains: [
|
||||
{
|
||||
className: 'meta',
|
||||
begin: LASSO_CLOSE_RE,
|
||||
relevance: 0,
|
||||
starts: { // markup
|
||||
end: '\\[|' + LASSO_ANGLE_RE,
|
||||
returnEnd: true,
|
||||
relevance: 0,
|
||||
contains: [HTML_COMMENT]
|
||||
}
|
||||
},
|
||||
LASSO_NOPROCESS,
|
||||
LASSO_START,
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '\\[no_square_brackets',
|
||||
starts: {
|
||||
end: '\\[/no_square_brackets\\]', // not implemented in the language
|
||||
keywords: LASSO_KEYWORDS,
|
||||
contains: [
|
||||
{
|
||||
className: 'meta',
|
||||
begin: LASSO_CLOSE_RE,
|
||||
relevance: 0,
|
||||
starts: {
|
||||
end: '\\[noprocess\\]|' + LASSO_ANGLE_RE,
|
||||
returnEnd: true,
|
||||
contains: [HTML_COMMENT]
|
||||
}
|
||||
},
|
||||
LASSO_NOPROCESS,
|
||||
LASSO_START
|
||||
].concat(LASSO_CODE)
|
||||
}
|
||||
},
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '\\[',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '^#!',
|
||||
end: 'lasso9$',
|
||||
relevance: 10
|
||||
}
|
||||
].concat(LASSO_CODE)
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = lasso;
|
||||
49
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/leaf.js
generated
vendored
Normal file
49
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/leaf.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
Language: Leaf
|
||||
Author: Hale Chan <halechan@qq.com>
|
||||
Description: Based on the Leaf reference from https://vapor.github.io/documentation/guide/leaf.html.
|
||||
*/
|
||||
|
||||
function leaf(hljs) {
|
||||
return {
|
||||
name: 'Leaf',
|
||||
contains: [
|
||||
{
|
||||
className: 'function',
|
||||
begin: '#+' + '[A-Za-z_0-9]*' + '\\(',
|
||||
end: / \{/,
|
||||
returnBegin: true,
|
||||
excludeEnd: true,
|
||||
contains: [
|
||||
{
|
||||
className: 'keyword',
|
||||
begin: '#+'
|
||||
},
|
||||
{
|
||||
className: 'title',
|
||||
begin: '[A-Za-z_][A-Za-z_0-9]*'
|
||||
},
|
||||
{
|
||||
className: 'params',
|
||||
begin: '\\(',
|
||||
end: '\\)',
|
||||
endsParent: true,
|
||||
contains: [
|
||||
{
|
||||
className: 'string',
|
||||
begin: '"',
|
||||
end: '"'
|
||||
},
|
||||
{
|
||||
className: 'variable',
|
||||
begin: '[A-Za-z_][A-Za-z_0-9]*'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = leaf;
|
||||
111
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/lisp.js
generated
vendored
Normal file
111
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/lisp.js
generated
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
Language: Lisp
|
||||
Description: Generic lisp syntax
|
||||
Author: Vasily Polovnyov <vast@whiteants.net>
|
||||
Category: lisp
|
||||
*/
|
||||
|
||||
function lisp(hljs) {
|
||||
var LISP_IDENT_RE = '[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*';
|
||||
var MEC_RE = '\\|[^]*?\\|';
|
||||
var LISP_SIMPLE_NUMBER_RE = '(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?';
|
||||
var LITERAL = {
|
||||
className: 'literal',
|
||||
begin: '\\b(t{1}|nil)\\b'
|
||||
};
|
||||
var NUMBER = {
|
||||
className: 'number',
|
||||
variants: [
|
||||
{begin: LISP_SIMPLE_NUMBER_RE, relevance: 0},
|
||||
{begin: '#(b|B)[0-1]+(/[0-1]+)?'},
|
||||
{begin: '#(o|O)[0-7]+(/[0-7]+)?'},
|
||||
{begin: '#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?'},
|
||||
{begin: '#(c|C)\\(' + LISP_SIMPLE_NUMBER_RE + ' +' + LISP_SIMPLE_NUMBER_RE, end: '\\)'}
|
||||
]
|
||||
};
|
||||
var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null});
|
||||
var COMMENT = hljs.COMMENT(
|
||||
';', '$',
|
||||
{
|
||||
relevance: 0
|
||||
}
|
||||
);
|
||||
var VARIABLE = {
|
||||
begin: '\\*', end: '\\*'
|
||||
};
|
||||
var KEYWORD = {
|
||||
className: 'symbol',
|
||||
begin: '[:&]' + LISP_IDENT_RE
|
||||
};
|
||||
var IDENT = {
|
||||
begin: LISP_IDENT_RE,
|
||||
relevance: 0
|
||||
};
|
||||
var MEC = {
|
||||
begin: MEC_RE
|
||||
};
|
||||
var QUOTED_LIST = {
|
||||
begin: '\\(', end: '\\)',
|
||||
contains: ['self', LITERAL, STRING, NUMBER, IDENT]
|
||||
};
|
||||
var QUOTED = {
|
||||
contains: [NUMBER, STRING, VARIABLE, KEYWORD, QUOTED_LIST, IDENT],
|
||||
variants: [
|
||||
{
|
||||
begin: '[\'`]\\(', end: '\\)'
|
||||
},
|
||||
{
|
||||
begin: '\\(quote ', end: '\\)',
|
||||
keywords: {name: 'quote'}
|
||||
},
|
||||
{
|
||||
begin: '\'' + MEC_RE
|
||||
}
|
||||
]
|
||||
};
|
||||
var QUOTED_ATOM = {
|
||||
variants: [
|
||||
{begin: '\'' + LISP_IDENT_RE},
|
||||
{begin: '#\'' + LISP_IDENT_RE + '(::' + LISP_IDENT_RE + ')*'}
|
||||
]
|
||||
};
|
||||
var LIST = {
|
||||
begin: '\\(\\s*', end: '\\)'
|
||||
};
|
||||
var BODY = {
|
||||
endsWithParent: true,
|
||||
relevance: 0
|
||||
};
|
||||
LIST.contains = [
|
||||
{
|
||||
className: 'name',
|
||||
variants: [
|
||||
{
|
||||
begin: LISP_IDENT_RE,
|
||||
relevance: 0,
|
||||
},
|
||||
{begin: MEC_RE}
|
||||
]
|
||||
},
|
||||
BODY
|
||||
];
|
||||
BODY.contains = [QUOTED, QUOTED_ATOM, LIST, LITERAL, NUMBER, STRING, COMMENT, VARIABLE, KEYWORD, MEC, IDENT];
|
||||
|
||||
return {
|
||||
name: 'Lisp',
|
||||
illegal: /\S/,
|
||||
contains: [
|
||||
NUMBER,
|
||||
hljs.SHEBANG(),
|
||||
LITERAL,
|
||||
STRING,
|
||||
COMMENT,
|
||||
QUOTED,
|
||||
QUOTED_ATOM,
|
||||
LIST,
|
||||
IDENT
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = lisp;
|
||||
95
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/lsl.js
generated
vendored
Normal file
95
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/lsl.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
109
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/mipsasm.js
generated
vendored
Normal file
109
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/mipsasm.js
generated
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
Language: MIPS Assembly
|
||||
Author: Nebuleon Fumika <nebuleon.fumika@gmail.com>
|
||||
Description: MIPS Assembly (up to MIPS32R2)
|
||||
Website: https://en.wikipedia.org/wiki/MIPS_architecture
|
||||
Category: assembler
|
||||
*/
|
||||
|
||||
function mipsasm(hljs) {
|
||||
// local labels: %?[FB]?[AT]?\d{1,2}\w+
|
||||
return {
|
||||
name: 'MIPS Assembly',
|
||||
case_insensitive: true,
|
||||
aliases: [ 'mips' ],
|
||||
keywords: {
|
||||
$pattern: '\\.?' + hljs.IDENT_RE,
|
||||
meta:
|
||||
// GNU preprocs
|
||||
'.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ',
|
||||
built_in:
|
||||
'$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 ' + // integer registers
|
||||
'$16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 ' + // integer registers
|
||||
'zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 ' + // integer register aliases
|
||||
't0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 ' + // integer register aliases
|
||||
'k0 k1 gp sp fp ra ' + // integer register aliases
|
||||
'$f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 ' + // floating-point registers
|
||||
'$f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 ' + // floating-point registers
|
||||
'Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi ' + // Coprocessor 0 registers
|
||||
'HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId ' + // Coprocessor 0 registers
|
||||
'EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ' + // Coprocessor 0 registers
|
||||
'ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt ' // Coprocessor 0 registers
|
||||
},
|
||||
contains: [
|
||||
{
|
||||
className: 'keyword',
|
||||
begin: '\\b(' + // mnemonics
|
||||
// 32-bit integer instructions
|
||||
'addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|' +
|
||||
'bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|' +
|
||||
'll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|' +
|
||||
'multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|' +
|
||||
'srlv?|subu?|sw[lr]?|xori?|wsbh|' +
|
||||
// floating-point instructions
|
||||
'abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|' +
|
||||
'c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|' +
|
||||
'(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|' +
|
||||
'cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|' +
|
||||
'div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|' +
|
||||
'msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|' +
|
||||
'p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|' +
|
||||
'swx?c1|' +
|
||||
// system control instructions
|
||||
'break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|' +
|
||||
'rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|' +
|
||||
'tlti?u?|tnei?|wait|wrpgpr' +
|
||||
')',
|
||||
end: '\\s'
|
||||
},
|
||||
// lines ending with ; or # aren't really comments, probably auto-detect fail
|
||||
hljs.COMMENT('[;#](?!\\s*$)', '$'),
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
{
|
||||
className: 'string',
|
||||
begin: '\'',
|
||||
end: '[^\\\\]\'',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'title',
|
||||
begin: '\\|',
|
||||
end: '\\|',
|
||||
illegal: '\\n',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'number',
|
||||
variants: [
|
||||
{ // hex
|
||||
begin: '0x[0-9a-f]+'
|
||||
},
|
||||
{ // bare number
|
||||
begin: '\\b-?\\d+'
|
||||
}
|
||||
],
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'symbol',
|
||||
variants: [
|
||||
{ // GNU MIPS syntax
|
||||
begin: '^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:'
|
||||
},
|
||||
{ // numbered local labels
|
||||
begin: '^\\s*[0-9]+:'
|
||||
},
|
||||
{ // number local label reference (backwards, forwards)
|
||||
begin: '[0-9]+[bf]'
|
||||
}
|
||||
],
|
||||
relevance: 0
|
||||
}
|
||||
],
|
||||
// forward slashes are not allowed
|
||||
illegal: /\//
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = mipsasm;
|
||||
147
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/moonscript.js
generated
vendored
Normal file
147
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/moonscript.js
generated
vendored
Normal file
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
Language: MoonScript
|
||||
Author: Billy Quith <chinbillybilbo@gmail.com>
|
||||
Description: MoonScript is a programming language that transcompiles to Lua.
|
||||
Origin: coffeescript.js
|
||||
Website: http://moonscript.org/
|
||||
Category: scripting
|
||||
*/
|
||||
|
||||
function moonscript(hljs) {
|
||||
const KEYWORDS = {
|
||||
keyword:
|
||||
// Moonscript keywords
|
||||
'if then not for in while do return else elseif break continue switch and or ' +
|
||||
'unless when class extends super local import export from using',
|
||||
literal:
|
||||
'true false nil',
|
||||
built_in:
|
||||
'_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load ' +
|
||||
'loadfile loadstring module next pairs pcall print rawequal rawget rawset require ' +
|
||||
'select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug ' +
|
||||
'io math os package string table'
|
||||
};
|
||||
const JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';
|
||||
const SUBST = {
|
||||
className: 'subst',
|
||||
begin: /#\{/,
|
||||
end: /\}/,
|
||||
keywords: KEYWORDS
|
||||
};
|
||||
const EXPRESSIONS = [
|
||||
hljs.inherit(hljs.C_NUMBER_MODE,
|
||||
{
|
||||
starts: {
|
||||
end: '(\\s*/)?',
|
||||
relevance: 0
|
||||
}
|
||||
}), // a number tries to eat the following slash to prevent treating it as a regexp
|
||||
{
|
||||
className: 'string',
|
||||
variants: [
|
||||
{
|
||||
begin: /'/,
|
||||
end: /'/,
|
||||
contains: [ hljs.BACKSLASH_ESCAPE ]
|
||||
},
|
||||
{
|
||||
begin: /"/,
|
||||
end: /"/,
|
||||
contains: [
|
||||
hljs.BACKSLASH_ESCAPE,
|
||||
SUBST
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'built_in',
|
||||
begin: '@__' + hljs.IDENT_RE
|
||||
},
|
||||
{
|
||||
begin: '@' + hljs.IDENT_RE // relevance booster on par with CoffeeScript
|
||||
},
|
||||
{
|
||||
begin: hljs.IDENT_RE + '\\\\' + hljs.IDENT_RE // inst\method
|
||||
}
|
||||
];
|
||||
SUBST.contains = EXPRESSIONS;
|
||||
|
||||
const TITLE = hljs.inherit(hljs.TITLE_MODE, {
|
||||
begin: JS_IDENT_RE
|
||||
});
|
||||
const POSSIBLE_PARAMS_RE = '(\\(.*\\)\\s*)?\\B[-=]>';
|
||||
const PARAMS = {
|
||||
className: 'params',
|
||||
begin: '\\([^\\(]',
|
||||
returnBegin: true,
|
||||
/* We need another contained nameless mode to not have every nested
|
||||
pair of parens to be called "params" */
|
||||
contains: [
|
||||
{
|
||||
begin: /\(/,
|
||||
end: /\)/,
|
||||
keywords: KEYWORDS,
|
||||
contains: [ 'self' ].concat(EXPRESSIONS)
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'MoonScript',
|
||||
aliases: [ 'moon' ],
|
||||
keywords: KEYWORDS,
|
||||
illegal: /\/\*/,
|
||||
contains: EXPRESSIONS.concat([
|
||||
hljs.COMMENT('--', '$'),
|
||||
{
|
||||
className: 'function', // function: -> =>
|
||||
begin: '^\\s*' + JS_IDENT_RE + '\\s*=\\s*' + POSSIBLE_PARAMS_RE,
|
||||
end: '[-=]>',
|
||||
returnBegin: true,
|
||||
contains: [
|
||||
TITLE,
|
||||
PARAMS
|
||||
]
|
||||
},
|
||||
{
|
||||
begin: /[\(,:=]\s*/, // anonymous function start
|
||||
relevance: 0,
|
||||
contains: [
|
||||
{
|
||||
className: 'function',
|
||||
begin: POSSIBLE_PARAMS_RE,
|
||||
end: '[-=]>',
|
||||
returnBegin: true,
|
||||
contains: [ PARAMS ]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'class',
|
||||
beginKeywords: 'class',
|
||||
end: '$',
|
||||
illegal: /[:="\[\]]/,
|
||||
contains: [
|
||||
{
|
||||
beginKeywords: 'extends',
|
||||
endsWithParent: true,
|
||||
illegal: /[:="\[\]]/,
|
||||
contains: [ TITLE ]
|
||||
},
|
||||
TITLE
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'name', // table
|
||||
begin: JS_IDENT_RE + ':',
|
||||
end: ':',
|
||||
returnBegin: true,
|
||||
returnEnd: true,
|
||||
relevance: 0
|
||||
}
|
||||
])
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = moonscript;
|
||||
37
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/node-repl.js
generated
vendored
Normal file
37
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/node-repl.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
Language: Node REPL
|
||||
Requires: javascript.js
|
||||
Author: Marat Nagayev <nagaevmt@yandex.ru>
|
||||
Category: scripting
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function nodeRepl(hljs) {
|
||||
return {
|
||||
name: 'Node REPL',
|
||||
contains: [
|
||||
{
|
||||
className: 'meta',
|
||||
starts: {
|
||||
// a space separates the REPL prefix from the actual code
|
||||
// this is purely for cleaner HTML output
|
||||
end: / |$/,
|
||||
starts: {
|
||||
end: '$',
|
||||
subLanguage: 'javascript'
|
||||
}
|
||||
},
|
||||
variants: [
|
||||
{
|
||||
begin: /^>(?=[ ]|$)/
|
||||
},
|
||||
{
|
||||
begin: /^\.\.\.(?=[ ]|$)/
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = nodeRepl;
|
||||
57
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/parser3.js
generated
vendored
Normal file
57
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/parser3.js
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Language: Parser3
|
||||
Requires: xml.js
|
||||
Author: Oleg Volchkov <oleg@volchkov.net>
|
||||
Website: https://www.parser.ru/en/
|
||||
Category: template
|
||||
*/
|
||||
|
||||
function parser3(hljs) {
|
||||
const CURLY_SUBCOMMENT = hljs.COMMENT(
|
||||
/\{/,
|
||||
/\}/,
|
||||
{
|
||||
contains: [ 'self' ]
|
||||
}
|
||||
);
|
||||
return {
|
||||
name: 'Parser3',
|
||||
subLanguage: 'xml',
|
||||
relevance: 0,
|
||||
contains: [
|
||||
hljs.COMMENT('^#', '$'),
|
||||
hljs.COMMENT(
|
||||
/\^rem\{/,
|
||||
/\}/,
|
||||
{
|
||||
relevance: 10,
|
||||
contains: [ CURLY_SUBCOMMENT ]
|
||||
}
|
||||
),
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '^@(?:BASE|USE|CLASS|OPTIONS)$',
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
className: 'title',
|
||||
begin: '@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$'
|
||||
},
|
||||
{
|
||||
className: 'variable',
|
||||
begin: /\$\{?[\w\-.:]+\}?/
|
||||
},
|
||||
{
|
||||
className: 'keyword',
|
||||
begin: /\^[\w\-.:]+/
|
||||
},
|
||||
{
|
||||
className: 'number',
|
||||
begin: '\\^#[0-9a-fA-F]+'
|
||||
},
|
||||
hljs.C_NUMBER_MODE
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = parser3;
|
||||
630
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/pgsql.js
generated
vendored
Normal file
630
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/pgsql.js
generated
vendored
Normal file
@@ -0,0 +1,630 @@
|
||||
/*
|
||||
Language: PostgreSQL and PL/pgSQL
|
||||
Author: Egor Rogov (e.rogov@postgrespro.ru)
|
||||
Website: https://www.postgresql.org/docs/11/sql.html
|
||||
Description:
|
||||
This language incorporates both PostgreSQL SQL dialect and PL/pgSQL language.
|
||||
It is based on PostgreSQL version 11. Some notes:
|
||||
- Text in double-dollar-strings is _always_ interpreted as some programming code. Text
|
||||
in ordinary quotes is _never_ interpreted that way and highlighted just as a string.
|
||||
- There are quite a bit "special cases". That's because many keywords are not strictly
|
||||
they are keywords in some contexts and ordinary identifiers in others. Only some
|
||||
of such cases are handled; you still can get some of your identifiers highlighted
|
||||
wrong way.
|
||||
- Function names deliberately are not highlighted. There is no way to tell function
|
||||
call from other constructs, hence we can't highlight _all_ function names. And
|
||||
some names highlighted while others not looks ugly.
|
||||
*/
|
||||
|
||||
function pgsql(hljs) {
|
||||
const COMMENT_MODE = hljs.COMMENT('--', '$');
|
||||
const UNQUOTED_IDENT = '[a-zA-Z_][a-zA-Z_0-9$]*';
|
||||
const DOLLAR_STRING = '\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$';
|
||||
const LABEL = '<<\\s*' + UNQUOTED_IDENT + '\\s*>>';
|
||||
|
||||
const SQL_KW =
|
||||
// https://www.postgresql.org/docs/11/static/sql-keywords-appendix.html
|
||||
// https://www.postgresql.org/docs/11/static/sql-commands.html
|
||||
// SQL commands (starting words)
|
||||
'ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE ' +
|
||||
'DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY ' +
|
||||
'PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW ' +
|
||||
'START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES ' +
|
||||
// SQL commands (others)
|
||||
'AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN ' +
|
||||
'WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS ' +
|
||||
'FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM ' +
|
||||
'TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS ' +
|
||||
'METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION ' +
|
||||
'INDEX PROCEDURE ASSERTION ' +
|
||||
// additional reserved key words
|
||||
'ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK ' +
|
||||
'COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS ' +
|
||||
'DEFERRABLE RANGE ' +
|
||||
'DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ' +
|
||||
'ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT ' +
|
||||
'NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY ' +
|
||||
'REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN ' +
|
||||
'TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH ' +
|
||||
// some of non-reserved (which are used in clauses or as PL/pgSQL keyword)
|
||||
'BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN ' +
|
||||
'BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT ' +
|
||||
'TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN ' +
|
||||
'EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH ' +
|
||||
'REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ' +
|
||||
'ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED ' +
|
||||
'INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 ' +
|
||||
'INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ' +
|
||||
'ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES ' +
|
||||
'RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS ' +
|
||||
'UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF ' +
|
||||
// some parameters of VACUUM/ANALYZE/EXPLAIN
|
||||
'FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING ' +
|
||||
//
|
||||
'RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED ' +
|
||||
'OF NOTHING NONE EXCLUDE ATTRIBUTE ' +
|
||||
// from GRANT (not keywords actually)
|
||||
'USAGE ROUTINES ' +
|
||||
// actually literals, but look better this way (due to IS TRUE, IS FALSE, ISNULL etc)
|
||||
'TRUE FALSE NAN INFINITY ';
|
||||
|
||||
const ROLE_ATTRS = // only those not in keywrods already
|
||||
'SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT ' +
|
||||
'LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ';
|
||||
|
||||
const PLPGSQL_KW =
|
||||
'ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS ' +
|
||||
'STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT ' +
|
||||
'OPEN ';
|
||||
|
||||
const TYPES =
|
||||
// https://www.postgresql.org/docs/11/static/datatype.html
|
||||
'BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR ' +
|
||||
'CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 ' +
|
||||
'MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 ' +
|
||||
'SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 ' +
|
||||
'TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR ' +
|
||||
'INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ' +
|
||||
// pseudotypes
|
||||
'ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL ' +
|
||||
'RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR ' +
|
||||
// spec. type
|
||||
'NAME ' +
|
||||
// OID-types
|
||||
'OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 ' +
|
||||
'REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ';// +
|
||||
|
||||
const TYPES_RE =
|
||||
TYPES.trim()
|
||||
.split(' ')
|
||||
.map(function(val) { return val.split('|')[0]; })
|
||||
.join('|');
|
||||
|
||||
const SQL_BI =
|
||||
'CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP ' +
|
||||
'CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ';
|
||||
|
||||
const PLPGSQL_BI =
|
||||
'FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 ' +
|
||||
'TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ' +
|
||||
// get diagnostics
|
||||
'ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME ' +
|
||||
'PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 ' +
|
||||
'PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ';
|
||||
|
||||
const PLPGSQL_EXCEPTIONS =
|
||||
// exceptions https://www.postgresql.org/docs/current/static/errcodes-appendix.html
|
||||
'SQLSTATE SQLERRM|10 ' +
|
||||
'SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING ' +
|
||||
'NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED ' +
|
||||
'STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED ' +
|
||||
'SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE ' +
|
||||
'SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION ' +
|
||||
'TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED ' +
|
||||
'INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR ' +
|
||||
'INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION ' +
|
||||
'STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION ' +
|
||||
'DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW ' +
|
||||
'DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW ' +
|
||||
'INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION ' +
|
||||
'INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION ' +
|
||||
'INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST ' +
|
||||
'INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE ' +
|
||||
'NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE ' +
|
||||
'INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE ' +
|
||||
'INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT ' +
|
||||
'INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH ' +
|
||||
'NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE ' +
|
||||
'SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION ' +
|
||||
'SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING ' +
|
||||
'FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION ' +
|
||||
'BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT ' +
|
||||
'INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION ' +
|
||||
'INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION ' +
|
||||
'UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE ' +
|
||||
'INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE ' +
|
||||
'HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION ' +
|
||||
'INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION ' +
|
||||
'NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION ' +
|
||||
'SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION ' +
|
||||
'IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME ' +
|
||||
'TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD ' +
|
||||
'DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST ' +
|
||||
'INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT ' +
|
||||
'MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED ' +
|
||||
'READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION ' +
|
||||
'CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED ' +
|
||||
'PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED ' +
|
||||
'EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED ' +
|
||||
'TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED ' +
|
||||
'SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME ' +
|
||||
'INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION ' +
|
||||
'SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED ' +
|
||||
'SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE ' +
|
||||
'GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME ' +
|
||||
'NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH ' +
|
||||
'INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN ' +
|
||||
'UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT ' +
|
||||
'DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION ' +
|
||||
'DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS ' +
|
||||
'DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS ' +
|
||||
'INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION ' +
|
||||
'INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION ' +
|
||||
'INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION ' +
|
||||
'INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL ' +
|
||||
'OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED ' +
|
||||
'STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE ' +
|
||||
'OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION ' +
|
||||
'QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED ' +
|
||||
'SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR ' +
|
||||
'LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED ' +
|
||||
'FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION ' +
|
||||
'FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER ' +
|
||||
'FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS ' +
|
||||
'FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX ' +
|
||||
'FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH ' +
|
||||
'FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES ' +
|
||||
'FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE ' +
|
||||
'FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION ' +
|
||||
'FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR ' +
|
||||
'RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED ' +
|
||||
'INDEX_CORRUPTED ';
|
||||
|
||||
const FUNCTIONS =
|
||||
// https://www.postgresql.org/docs/11/static/functions-aggregate.html
|
||||
'ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG ' +
|
||||
'JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG ' +
|
||||
'CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE ' +
|
||||
'REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP ' +
|
||||
'PERCENTILE_CONT PERCENTILE_DISC ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-window.html
|
||||
'ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-comparison.html
|
||||
'NUM_NONNULLS NUM_NULLS ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-math.html
|
||||
'ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT ' +
|
||||
'TRUNC WIDTH_BUCKET ' +
|
||||
'RANDOM SETSEED ' +
|
||||
'ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-string.html
|
||||
'BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ' +
|
||||
'ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP ' +
|
||||
'LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 ' +
|
||||
'QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY ' +
|
||||
'REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR ' +
|
||||
'TO_ASCII TO_HEX TRANSLATE ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-binarystring.html
|
||||
'OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-formatting.html
|
||||
'TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-datetime.html
|
||||
'AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL ' +
|
||||
'MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 ' +
|
||||
'TIMEOFDAY TRANSACTION_TIMESTAMP|10 ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-enum.html
|
||||
'ENUM_FIRST ENUM_LAST ENUM_RANGE ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-geometry.html
|
||||
'AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH ' +
|
||||
'BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-net.html
|
||||
'ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY ' +
|
||||
'INET_MERGE MACADDR8_SET7BIT ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-textsearch.html
|
||||
'ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY ' +
|
||||
'QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE ' +
|
||||
'TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY ' +
|
||||
'TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-xml.html
|
||||
'XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT ' +
|
||||
'XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT ' +
|
||||
'XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES ' +
|
||||
'TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA ' +
|
||||
'QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA ' +
|
||||
'CURSOR_TO_XML CURSOR_TO_XMLSCHEMA ' +
|
||||
'SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA ' +
|
||||
'DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA ' +
|
||||
'XMLATTRIBUTES ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-json.html
|
||||
'TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT ' +
|
||||
'JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH ' +
|
||||
'JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH ' +
|
||||
'JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET ' +
|
||||
'JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT ' +
|
||||
'JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET ' +
|
||||
'JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-sequence.html
|
||||
'CURRVAL LASTVAL NEXTVAL SETVAL ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-conditional.html
|
||||
'COALESCE NULLIF GREATEST LEAST ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-array.html
|
||||
'ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ' +
|
||||
'ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY ' +
|
||||
'STRING_TO_ARRAY UNNEST ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-range.html
|
||||
'ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-srf.html
|
||||
'GENERATE_SERIES GENERATE_SUBSCRIPTS ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-info.html
|
||||
'CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT ' +
|
||||
'INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE ' +
|
||||
'TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE ' +
|
||||
'COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION ' +
|
||||
'TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX ' +
|
||||
'TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-admin.html
|
||||
'CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE ' +
|
||||
'GIN_CLEAN_PENDING_LIST ' +
|
||||
// https://www.postgresql.org/docs/11/static/functions-trigger.html
|
||||
'SUPPRESS_REDUNDANT_UPDATES_TRIGGER ' +
|
||||
// ihttps://www.postgresql.org/docs/devel/static/lo-funcs.html
|
||||
'LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE ' +
|
||||
//
|
||||
'GROUPING CAST ';
|
||||
|
||||
const FUNCTIONS_RE =
|
||||
FUNCTIONS.trim()
|
||||
.split(' ')
|
||||
.map(function(val) { return val.split('|')[0]; })
|
||||
.join('|');
|
||||
|
||||
return {
|
||||
name: 'PostgreSQL',
|
||||
aliases: [
|
||||
'postgres',
|
||||
'postgresql'
|
||||
],
|
||||
case_insensitive: true,
|
||||
keywords: {
|
||||
keyword:
|
||||
SQL_KW + PLPGSQL_KW + ROLE_ATTRS,
|
||||
built_in:
|
||||
SQL_BI + PLPGSQL_BI + PLPGSQL_EXCEPTIONS
|
||||
},
|
||||
// Forbid some cunstructs from other languages to improve autodetect. In fact
|
||||
// "[a-z]:" is legal (as part of array slice), but improbabal.
|
||||
illegal: /:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,
|
||||
contains: [
|
||||
// special handling of some words, which are reserved only in some contexts
|
||||
{
|
||||
className: 'keyword',
|
||||
variants: [
|
||||
{
|
||||
begin: /\bTEXT\s*SEARCH\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/
|
||||
},
|
||||
{
|
||||
begin: /\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bNULLS\s+(FIRST|LAST)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bEVENT\s+TRIGGER\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(MAPPING|OR)\s+REPLACE\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(SHARE|EXCLUSIVE)\s+MODE\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bPRESERVE\s+ROWS\b/
|
||||
},
|
||||
{
|
||||
begin: /\bDISCARD\s+PLANS\b/
|
||||
},
|
||||
{
|
||||
begin: /\bREFERENCING\s+(OLD|NEW)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bSKIP\s+LOCKED\b/
|
||||
},
|
||||
{
|
||||
begin: /\bGROUPING\s+SETS\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(WITH|WITHOUT)\s+HOLD\b/
|
||||
},
|
||||
{
|
||||
begin: /\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/
|
||||
},
|
||||
{
|
||||
begin: /\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/
|
||||
},
|
||||
{
|
||||
begin: /\bIS\s+(NOT\s+)?UNKNOWN\b/
|
||||
},
|
||||
{
|
||||
begin: /\bSECURITY\s+LABEL\b/
|
||||
},
|
||||
{
|
||||
begin: /\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bWITH\s+(NO\s+)?DATA\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(FOREIGN|SET)\s+DATA\b/
|
||||
},
|
||||
{
|
||||
begin: /\bSET\s+(CATALOG|CONSTRAINTS)\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(WITH|FOR)\s+ORDINALITY\b/
|
||||
},
|
||||
{
|
||||
begin: /\bIS\s+(NOT\s+)?DOCUMENT\b/
|
||||
},
|
||||
{
|
||||
begin: /\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(STRIP|PRESERVE)\s+WHITESPACE\b/
|
||||
},
|
||||
{
|
||||
begin: /\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bAT\s+TIME\s+ZONE\b/
|
||||
},
|
||||
{
|
||||
begin: /\bGRANTED\s+BY\b/
|
||||
},
|
||||
{
|
||||
begin: /\bRETURN\s+(QUERY|NEXT)\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(ATTACH|DETACH)\s+PARTITION\b/
|
||||
},
|
||||
{
|
||||
begin: /\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/
|
||||
},
|
||||
{
|
||||
begin: /\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/
|
||||
},
|
||||
{
|
||||
begin: /\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/
|
||||
}
|
||||
]
|
||||
},
|
||||
// functions named as keywords, followed by '('
|
||||
{
|
||||
begin: /\b(FORMAT|FAMILY|VERSION)\s*\(/
|
||||
// keywords: { built_in: 'FORMAT FAMILY VERSION' }
|
||||
},
|
||||
// INCLUDE ( ... ) in index_parameters in CREATE TABLE
|
||||
{
|
||||
begin: /\bINCLUDE\s*\(/,
|
||||
keywords: 'INCLUDE'
|
||||
},
|
||||
// not highlight RANGE if not in frame_clause (not 100% correct, but seems satisfactory)
|
||||
{
|
||||
begin: /\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/
|
||||
},
|
||||
// disable highlighting in commands CREATE AGGREGATE/COLLATION/DATABASE/OPERTOR/TEXT SEARCH .../TYPE
|
||||
// and in PL/pgSQL RAISE ... USING
|
||||
{
|
||||
begin: /\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/
|
||||
},
|
||||
// PG_smth; HAS_some_PRIVILEGE
|
||||
{
|
||||
// className: 'built_in',
|
||||
begin: /\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,
|
||||
relevance: 10
|
||||
},
|
||||
// extract
|
||||
{
|
||||
begin: /\bEXTRACT\s*\(/,
|
||||
end: /\bFROM\b/,
|
||||
returnEnd: true,
|
||||
keywords: {
|
||||
// built_in: 'EXTRACT',
|
||||
type: 'CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS ' +
|
||||
'MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR ' +
|
||||
'TIMEZONE_MINUTE WEEK YEAR'
|
||||
}
|
||||
},
|
||||
// xmlelement, xmlpi - special NAME
|
||||
{
|
||||
begin: /\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,
|
||||
keywords: {
|
||||
// built_in: 'XMLELEMENT XMLPI',
|
||||
keyword: 'NAME'
|
||||
}
|
||||
},
|
||||
// xmlparse, xmlserialize
|
||||
{
|
||||
begin: /\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,
|
||||
keywords: {
|
||||
// built_in: 'XMLPARSE XMLSERIALIZE',
|
||||
keyword: 'DOCUMENT CONTENT'
|
||||
}
|
||||
},
|
||||
// Sequences. We actually skip everything between CACHE|INCREMENT|MAXVALUE|MINVALUE and
|
||||
// nearest following numeric constant. Without with trick we find a lot of "keywords"
|
||||
// in 'avrasm' autodetection test...
|
||||
{
|
||||
beginKeywords: 'CACHE INCREMENT MAXVALUE MINVALUE',
|
||||
end: hljs.C_NUMBER_RE,
|
||||
returnEnd: true,
|
||||
keywords: 'BY CACHE INCREMENT MAXVALUE MINVALUE'
|
||||
},
|
||||
// WITH|WITHOUT TIME ZONE as part of datatype
|
||||
{
|
||||
className: 'type',
|
||||
begin: /\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/
|
||||
},
|
||||
// INTERVAL optional fields
|
||||
{
|
||||
className: 'type',
|
||||
begin: /\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/
|
||||
},
|
||||
// Pseudo-types which allowed only as return type
|
||||
{
|
||||
begin: /\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,
|
||||
keywords: {
|
||||
keyword: 'RETURNS',
|
||||
type: 'LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER'
|
||||
}
|
||||
},
|
||||
// Known functions - only when followed by '('
|
||||
{
|
||||
begin: '\\b(' + FUNCTIONS_RE + ')\\s*\\('
|
||||
// keywords: { built_in: FUNCTIONS }
|
||||
},
|
||||
// Types
|
||||
{
|
||||
begin: '\\.(' + TYPES_RE + ')\\b' // prevent highlight as type, say, 'oid' in 'pgclass.oid'
|
||||
},
|
||||
{
|
||||
begin: '\\b(' + TYPES_RE + ')\\s+PATH\\b', // in XMLTABLE
|
||||
keywords: {
|
||||
keyword: 'PATH', // hopefully no one would use PATH type in XMLTABLE...
|
||||
type: TYPES.replace('PATH ', '')
|
||||
}
|
||||
},
|
||||
{
|
||||
className: 'type',
|
||||
begin: '\\b(' + TYPES_RE + ')\\b'
|
||||
},
|
||||
// Strings, see https://www.postgresql.org/docs/11/static/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS
|
||||
{
|
||||
className: 'string',
|
||||
begin: '\'',
|
||||
end: '\'',
|
||||
contains: [
|
||||
{
|
||||
begin: '\'\''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'string',
|
||||
begin: '(e|E|u&|U&)\'',
|
||||
end: '\'',
|
||||
contains: [
|
||||
{
|
||||
begin: '\\\\.'
|
||||
}
|
||||
],
|
||||
relevance: 10
|
||||
},
|
||||
hljs.END_SAME_AS_BEGIN({
|
||||
begin: DOLLAR_STRING,
|
||||
end: DOLLAR_STRING,
|
||||
contains: [
|
||||
{
|
||||
// actually we want them all except SQL; listed are those with known implementations
|
||||
// and XML + JSON just in case
|
||||
subLanguage: [
|
||||
'pgsql',
|
||||
'perl',
|
||||
'python',
|
||||
'tcl',
|
||||
'r',
|
||||
'lua',
|
||||
'java',
|
||||
'php',
|
||||
'ruby',
|
||||
'bash',
|
||||
'scheme',
|
||||
'xml',
|
||||
'json'
|
||||
],
|
||||
endsWithParent: true
|
||||
}
|
||||
]
|
||||
}),
|
||||
// identifiers in quotes
|
||||
{
|
||||
begin: '"',
|
||||
end: '"',
|
||||
contains: [
|
||||
{
|
||||
begin: '""'
|
||||
}
|
||||
]
|
||||
},
|
||||
// numbers
|
||||
hljs.C_NUMBER_MODE,
|
||||
// comments
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
COMMENT_MODE,
|
||||
// PL/pgSQL staff
|
||||
// %ROWTYPE, %TYPE, $n
|
||||
{
|
||||
className: 'meta',
|
||||
variants: [
|
||||
{ // %TYPE, %ROWTYPE
|
||||
begin: '%(ROW)?TYPE',
|
||||
relevance: 10
|
||||
},
|
||||
{ // $n
|
||||
begin: '\\$\\d+'
|
||||
},
|
||||
{ // #compiler option
|
||||
begin: '^#\\w',
|
||||
end: '$'
|
||||
}
|
||||
]
|
||||
},
|
||||
// <<labeles>>
|
||||
{
|
||||
className: 'symbol',
|
||||
begin: LABEL,
|
||||
relevance: 10
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = pgsql;
|
||||
19
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/plaintext.js
generated
vendored
Normal file
19
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/plaintext.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
Language: Plain text
|
||||
Author: Egor Rogov (e.rogov@postgrespro.ru)
|
||||
Description: Plain text without any highlighting.
|
||||
Category: common
|
||||
*/
|
||||
|
||||
function plaintext(hljs) {
|
||||
return {
|
||||
name: 'Plain text',
|
||||
aliases: [
|
||||
'text',
|
||||
'txt'
|
||||
],
|
||||
disableAutodetect: true
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = plaintext;
|
||||
446
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/python.js
generated
vendored
Normal file
446
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/python.js
generated
vendored
Normal file
@@ -0,0 +1,446 @@
|
||||
/**
|
||||
* @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;
|
||||
}
|
||||
|
||||
/*
|
||||
Language: Python
|
||||
Description: Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.
|
||||
Website: https://www.python.org
|
||||
Category: common
|
||||
*/
|
||||
|
||||
function python(hljs) {
|
||||
const RESERVED_WORDS = [
|
||||
'and',
|
||||
'as',
|
||||
'assert',
|
||||
'async',
|
||||
'await',
|
||||
'break',
|
||||
'class',
|
||||
'continue',
|
||||
'def',
|
||||
'del',
|
||||
'elif',
|
||||
'else',
|
||||
'except',
|
||||
'finally',
|
||||
'for',
|
||||
'from',
|
||||
'global',
|
||||
'if',
|
||||
'import',
|
||||
'in',
|
||||
'is',
|
||||
'lambda',
|
||||
'nonlocal|10',
|
||||
'not',
|
||||
'or',
|
||||
'pass',
|
||||
'raise',
|
||||
'return',
|
||||
'try',
|
||||
'while',
|
||||
'with',
|
||||
'yield'
|
||||
];
|
||||
|
||||
const BUILT_INS = [
|
||||
'__import__',
|
||||
'abs',
|
||||
'all',
|
||||
'any',
|
||||
'ascii',
|
||||
'bin',
|
||||
'bool',
|
||||
'breakpoint',
|
||||
'bytearray',
|
||||
'bytes',
|
||||
'callable',
|
||||
'chr',
|
||||
'classmethod',
|
||||
'compile',
|
||||
'complex',
|
||||
'delattr',
|
||||
'dict',
|
||||
'dir',
|
||||
'divmod',
|
||||
'enumerate',
|
||||
'eval',
|
||||
'exec',
|
||||
'filter',
|
||||
'float',
|
||||
'format',
|
||||
'frozenset',
|
||||
'getattr',
|
||||
'globals',
|
||||
'hasattr',
|
||||
'hash',
|
||||
'help',
|
||||
'hex',
|
||||
'id',
|
||||
'input',
|
||||
'int',
|
||||
'isinstance',
|
||||
'issubclass',
|
||||
'iter',
|
||||
'len',
|
||||
'list',
|
||||
'locals',
|
||||
'map',
|
||||
'max',
|
||||
'memoryview',
|
||||
'min',
|
||||
'next',
|
||||
'object',
|
||||
'oct',
|
||||
'open',
|
||||
'ord',
|
||||
'pow',
|
||||
'print',
|
||||
'property',
|
||||
'range',
|
||||
'repr',
|
||||
'reversed',
|
||||
'round',
|
||||
'set',
|
||||
'setattr',
|
||||
'slice',
|
||||
'sorted',
|
||||
'staticmethod',
|
||||
'str',
|
||||
'sum',
|
||||
'super',
|
||||
'tuple',
|
||||
'type',
|
||||
'vars',
|
||||
'zip'
|
||||
];
|
||||
|
||||
const LITERALS = [
|
||||
'__debug__',
|
||||
'Ellipsis',
|
||||
'False',
|
||||
'None',
|
||||
'NotImplemented',
|
||||
'True'
|
||||
];
|
||||
|
||||
// https://docs.python.org/3/library/typing.html
|
||||
// TODO: Could these be supplemented by a CamelCase matcher in certain
|
||||
// contexts, leaving these remaining only for relevance hinting?
|
||||
const TYPES = [
|
||||
"Any",
|
||||
"Callable",
|
||||
"Coroutine",
|
||||
"Dict",
|
||||
"List",
|
||||
"Literal",
|
||||
"Generic",
|
||||
"Optional",
|
||||
"Sequence",
|
||||
"Set",
|
||||
"Tuple",
|
||||
"Type",
|
||||
"Union"
|
||||
];
|
||||
|
||||
const KEYWORDS = {
|
||||
$pattern: /[A-Za-z]\w+|__\w+__/,
|
||||
keyword: RESERVED_WORDS,
|
||||
built_in: BUILT_INS,
|
||||
literal: LITERALS,
|
||||
type: TYPES
|
||||
};
|
||||
|
||||
const PROMPT = {
|
||||
className: 'meta',
|
||||
begin: /^(>>>|\.\.\.) /
|
||||
};
|
||||
|
||||
const SUBST = {
|
||||
className: 'subst',
|
||||
begin: /\{/,
|
||||
end: /\}/,
|
||||
keywords: KEYWORDS,
|
||||
illegal: /#/
|
||||
};
|
||||
|
||||
const LITERAL_BRACKET = {
|
||||
begin: /\{\{/,
|
||||
relevance: 0
|
||||
};
|
||||
|
||||
const STRING = {
|
||||
className: 'string',
|
||||
contains: [ hljs.BACKSLASH_ESCAPE ],
|
||||
variants: [
|
||||
{
|
||||
begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,
|
||||
end: /'''/,
|
||||
contains: [
|
||||
hljs.BACKSLASH_ESCAPE,
|
||||
PROMPT
|
||||
],
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,
|
||||
end: /"""/,
|
||||
contains: [
|
||||
hljs.BACKSLASH_ESCAPE,
|
||||
PROMPT
|
||||
],
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
begin: /([fF][rR]|[rR][fF]|[fF])'''/,
|
||||
end: /'''/,
|
||||
contains: [
|
||||
hljs.BACKSLASH_ESCAPE,
|
||||
PROMPT,
|
||||
LITERAL_BRACKET,
|
||||
SUBST
|
||||
]
|
||||
},
|
||||
{
|
||||
begin: /([fF][rR]|[rR][fF]|[fF])"""/,
|
||||
end: /"""/,
|
||||
contains: [
|
||||
hljs.BACKSLASH_ESCAPE,
|
||||
PROMPT,
|
||||
LITERAL_BRACKET,
|
||||
SUBST
|
||||
]
|
||||
},
|
||||
{
|
||||
begin: /([uU]|[rR])'/,
|
||||
end: /'/,
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
begin: /([uU]|[rR])"/,
|
||||
end: /"/,
|
||||
relevance: 10
|
||||
},
|
||||
{
|
||||
begin: /([bB]|[bB][rR]|[rR][bB])'/,
|
||||
end: /'/
|
||||
},
|
||||
{
|
||||
begin: /([bB]|[bB][rR]|[rR][bB])"/,
|
||||
end: /"/
|
||||
},
|
||||
{
|
||||
begin: /([fF][rR]|[rR][fF]|[fF])'/,
|
||||
end: /'/,
|
||||
contains: [
|
||||
hljs.BACKSLASH_ESCAPE,
|
||||
LITERAL_BRACKET,
|
||||
SUBST
|
||||
]
|
||||
},
|
||||
{
|
||||
begin: /([fF][rR]|[rR][fF]|[fF])"/,
|
||||
end: /"/,
|
||||
contains: [
|
||||
hljs.BACKSLASH_ESCAPE,
|
||||
LITERAL_BRACKET,
|
||||
SUBST
|
||||
]
|
||||
},
|
||||
hljs.APOS_STRING_MODE,
|
||||
hljs.QUOTE_STRING_MODE
|
||||
]
|
||||
};
|
||||
|
||||
// https://docs.python.org/3.9/reference/lexical_analysis.html#numeric-literals
|
||||
const digitpart = '[0-9](_?[0-9])*';
|
||||
const pointfloat = `(\\b(${digitpart}))?\\.(${digitpart})|\\b(${digitpart})\\.`;
|
||||
const NUMBER = {
|
||||
className: 'number',
|
||||
relevance: 0,
|
||||
variants: [
|
||||
// exponentfloat, pointfloat
|
||||
// https://docs.python.org/3.9/reference/lexical_analysis.html#floating-point-literals
|
||||
// optionally imaginary
|
||||
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
||||
// Note: no leading \b because floats can start with a decimal point
|
||||
// and we don't want to mishandle e.g. `fn(.5)`,
|
||||
// no trailing \b for pointfloat because it can end with a decimal point
|
||||
// and we don't want to mishandle e.g. `0..hex()`; this should be safe
|
||||
// because both MUST contain a decimal point and so cannot be confused with
|
||||
// the interior part of an identifier
|
||||
{
|
||||
begin: `(\\b(${digitpart})|(${pointfloat}))[eE][+-]?(${digitpart})[jJ]?\\b`
|
||||
},
|
||||
{
|
||||
begin: `(${pointfloat})[jJ]?`
|
||||
},
|
||||
|
||||
// decinteger, bininteger, octinteger, hexinteger
|
||||
// https://docs.python.org/3.9/reference/lexical_analysis.html#integer-literals
|
||||
// optionally "long" in Python 2
|
||||
// https://docs.python.org/2.7/reference/lexical_analysis.html#integer-and-long-integer-literals
|
||||
// decinteger is optionally imaginary
|
||||
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
||||
{
|
||||
begin: '\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b'
|
||||
},
|
||||
{
|
||||
begin: '\\b0[bB](_?[01])+[lL]?\\b'
|
||||
},
|
||||
{
|
||||
begin: '\\b0[oO](_?[0-7])+[lL]?\\b'
|
||||
},
|
||||
{
|
||||
begin: '\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b'
|
||||
},
|
||||
|
||||
// imagnumber (digitpart-based)
|
||||
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
||||
{
|
||||
begin: `\\b(${digitpart})[jJ]\\b`
|
||||
}
|
||||
]
|
||||
};
|
||||
const COMMENT_TYPE = {
|
||||
className: "comment",
|
||||
begin: lookahead(/# type:/),
|
||||
end: /$/,
|
||||
keywords: KEYWORDS,
|
||||
contains: [
|
||||
{ // prevent keywords from coloring `type`
|
||||
begin: /# type:/
|
||||
},
|
||||
// comment within a datatype comment includes no keywords
|
||||
{
|
||||
begin: /#/,
|
||||
end: /\b\B/,
|
||||
endsWithParent: true
|
||||
}
|
||||
]
|
||||
};
|
||||
const PARAMS = {
|
||||
className: 'params',
|
||||
variants: [
|
||||
// Exclude params in functions without params
|
||||
{
|
||||
className: "",
|
||||
begin: /\(\s*\)/,
|
||||
skip: true
|
||||
},
|
||||
{
|
||||
begin: /\(/,
|
||||
end: /\)/,
|
||||
excludeBegin: true,
|
||||
excludeEnd: true,
|
||||
keywords: KEYWORDS,
|
||||
contains: [
|
||||
'self',
|
||||
PROMPT,
|
||||
NUMBER,
|
||||
STRING,
|
||||
hljs.HASH_COMMENT_MODE
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
SUBST.contains = [
|
||||
STRING,
|
||||
NUMBER,
|
||||
PROMPT
|
||||
];
|
||||
|
||||
return {
|
||||
name: 'Python',
|
||||
aliases: [
|
||||
'py',
|
||||
'gyp',
|
||||
'ipython'
|
||||
],
|
||||
keywords: KEYWORDS,
|
||||
illegal: /(<\/|->|\?)|=>/,
|
||||
contains: [
|
||||
PROMPT,
|
||||
NUMBER,
|
||||
{
|
||||
// very common convention
|
||||
begin: /\bself\b/
|
||||
},
|
||||
{
|
||||
// eat "if" prior to string so that it won't accidentally be
|
||||
// labeled as an f-string
|
||||
beginKeywords: "if",
|
||||
relevance: 0
|
||||
},
|
||||
STRING,
|
||||
COMMENT_TYPE,
|
||||
hljs.HASH_COMMENT_MODE,
|
||||
{
|
||||
variants: [
|
||||
{
|
||||
className: 'function',
|
||||
beginKeywords: 'def'
|
||||
},
|
||||
{
|
||||
className: 'class',
|
||||
beginKeywords: 'class'
|
||||
}
|
||||
],
|
||||
end: /:/,
|
||||
illegal: /[${=;\n,]/,
|
||||
contains: [
|
||||
hljs.UNDERSCORE_TITLE_MODE,
|
||||
PARAMS,
|
||||
{
|
||||
begin: /->/,
|
||||
endsWithParent: true,
|
||||
keywords: KEYWORDS
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'meta',
|
||||
begin: /^[\t ]*@/,
|
||||
end: /(?=#)|$/,
|
||||
contains: [
|
||||
NUMBER,
|
||||
PARAMS,
|
||||
STRING
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = python;
|
||||
321
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/reasonml.js
generated
vendored
Normal file
321
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/reasonml.js
generated
vendored
Normal file
@@ -0,0 +1,321 @@
|
||||
/*
|
||||
Language: ReasonML
|
||||
Description: Reason lets you write simple, fast and quality type safe code while leveraging both the JavaScript & OCaml ecosystems.
|
||||
Website: https://reasonml.github.io
|
||||
Author: Gidi Meir Morris <oss@gidi.io>
|
||||
Category: functional
|
||||
*/
|
||||
function reasonml(hljs) {
|
||||
function orReValues(ops) {
|
||||
return ops
|
||||
.map(function(op) {
|
||||
return op
|
||||
.split('')
|
||||
.map(function(char) {
|
||||
return '\\' + char;
|
||||
})
|
||||
.join('');
|
||||
})
|
||||
.join('|');
|
||||
}
|
||||
|
||||
const RE_IDENT = '~?[a-z$_][0-9a-zA-Z$_]*';
|
||||
const RE_MODULE_IDENT = '`?[A-Z$_][0-9a-zA-Z$_]*';
|
||||
|
||||
const RE_PARAM_TYPEPARAM = '\'?[a-z$_][0-9a-z$_]*';
|
||||
const RE_PARAM_TYPE = '\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*(' + RE_PARAM_TYPEPARAM + '\\s*(,' + RE_PARAM_TYPEPARAM + '\\s*)*)?\\))?';
|
||||
const RE_PARAM = RE_IDENT + '(' + RE_PARAM_TYPE + '){0,2}';
|
||||
const RE_OPERATOR = "(" + orReValues([
|
||||
'||',
|
||||
'++',
|
||||
'**',
|
||||
'+.',
|
||||
'*',
|
||||
'/',
|
||||
'*.',
|
||||
'/.',
|
||||
'...'
|
||||
]) + "|\\|>|&&|==|===)";
|
||||
const RE_OPERATOR_SPACED = "\\s+" + RE_OPERATOR + "\\s+";
|
||||
|
||||
const KEYWORDS = {
|
||||
keyword:
|
||||
'and as asr assert begin class constraint do done downto else end exception external ' +
|
||||
'for fun function functor if in include inherit initializer ' +
|
||||
'land lazy let lor lsl lsr lxor match method mod module mutable new nonrec ' +
|
||||
'object of open or private rec sig struct then to try type val virtual when while with',
|
||||
built_in:
|
||||
'array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ',
|
||||
literal:
|
||||
'true false'
|
||||
};
|
||||
|
||||
const RE_NUMBER = '\\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_]+)?)?)';
|
||||
|
||||
const NUMBER_MODE = {
|
||||
className: 'number',
|
||||
relevance: 0,
|
||||
variants: [
|
||||
{
|
||||
begin: RE_NUMBER
|
||||
},
|
||||
{
|
||||
begin: '\\(-' + RE_NUMBER + '\\)'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
const OPERATOR_MODE = {
|
||||
className: 'operator',
|
||||
relevance: 0,
|
||||
begin: RE_OPERATOR
|
||||
};
|
||||
const LIST_CONTENTS_MODES = [
|
||||
{
|
||||
className: 'identifier',
|
||||
relevance: 0,
|
||||
begin: RE_IDENT
|
||||
},
|
||||
OPERATOR_MODE,
|
||||
NUMBER_MODE
|
||||
];
|
||||
|
||||
const MODULE_ACCESS_CONTENTS = [
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
OPERATOR_MODE,
|
||||
{
|
||||
className: 'module',
|
||||
begin: "\\b" + RE_MODULE_IDENT,
|
||||
returnBegin: true,
|
||||
end: "\.",
|
||||
contains: [
|
||||
{
|
||||
className: 'identifier',
|
||||
begin: RE_MODULE_IDENT,
|
||||
relevance: 0
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
const PARAMS_CONTENTS = [
|
||||
{
|
||||
className: 'module',
|
||||
begin: "\\b" + RE_MODULE_IDENT,
|
||||
returnBegin: true,
|
||||
end: "\.",
|
||||
relevance: 0,
|
||||
contains: [
|
||||
{
|
||||
className: 'identifier',
|
||||
begin: RE_MODULE_IDENT,
|
||||
relevance: 0
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
const PARAMS_MODE = {
|
||||
begin: RE_IDENT,
|
||||
end: '(,|\\n|\\))',
|
||||
relevance: 0,
|
||||
contains: [
|
||||
OPERATOR_MODE,
|
||||
{
|
||||
className: 'typing',
|
||||
begin: ':',
|
||||
end: '(,|\\n)',
|
||||
returnBegin: true,
|
||||
relevance: 0,
|
||||
contains: PARAMS_CONTENTS
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
const FUNCTION_BLOCK_MODE = {
|
||||
className: 'function',
|
||||
relevance: 0,
|
||||
keywords: KEYWORDS,
|
||||
variants: [
|
||||
{
|
||||
begin: '\\s(\\(\\.?.*?\\)|' + RE_IDENT + ')\\s*=>',
|
||||
end: '\\s*=>',
|
||||
returnBegin: true,
|
||||
relevance: 0,
|
||||
contains: [
|
||||
{
|
||||
className: 'params',
|
||||
variants: [
|
||||
{
|
||||
begin: RE_IDENT
|
||||
},
|
||||
{
|
||||
begin: RE_PARAM
|
||||
},
|
||||
{
|
||||
begin: /\(\s*\)/
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
begin: '\\s\\(\\.?[^;\\|]*\\)\\s*=>',
|
||||
end: '\\s=>',
|
||||
returnBegin: true,
|
||||
relevance: 0,
|
||||
contains: [
|
||||
{
|
||||
className: 'params',
|
||||
relevance: 0,
|
||||
variants: [ PARAMS_MODE ]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
begin: '\\(\\.\\s' + RE_IDENT + '\\)\\s*=>'
|
||||
}
|
||||
]
|
||||
};
|
||||
MODULE_ACCESS_CONTENTS.push(FUNCTION_BLOCK_MODE);
|
||||
|
||||
const CONSTRUCTOR_MODE = {
|
||||
className: 'constructor',
|
||||
begin: RE_MODULE_IDENT + '\\(',
|
||||
end: '\\)',
|
||||
illegal: '\\n',
|
||||
keywords: KEYWORDS,
|
||||
contains: [
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
OPERATOR_MODE,
|
||||
{
|
||||
className: 'params',
|
||||
begin: '\\b' + RE_IDENT
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
const PATTERN_MATCH_BLOCK_MODE = {
|
||||
className: 'pattern-match',
|
||||
begin: '\\|',
|
||||
returnBegin: true,
|
||||
keywords: KEYWORDS,
|
||||
end: '=>',
|
||||
relevance: 0,
|
||||
contains: [
|
||||
CONSTRUCTOR_MODE,
|
||||
OPERATOR_MODE,
|
||||
{
|
||||
relevance: 0,
|
||||
className: 'constructor',
|
||||
begin: RE_MODULE_IDENT
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
const MODULE_ACCESS_MODE = {
|
||||
className: 'module-access',
|
||||
keywords: KEYWORDS,
|
||||
returnBegin: true,
|
||||
variants: [
|
||||
{
|
||||
begin: "\\b(" + RE_MODULE_IDENT + "\\.)+" + RE_IDENT
|
||||
},
|
||||
{
|
||||
begin: "\\b(" + RE_MODULE_IDENT + "\\.)+\\(",
|
||||
end: "\\)",
|
||||
returnBegin: true,
|
||||
contains: [
|
||||
FUNCTION_BLOCK_MODE,
|
||||
{
|
||||
begin: '\\(',
|
||||
end: '\\)',
|
||||
skip: true
|
||||
}
|
||||
].concat(MODULE_ACCESS_CONTENTS)
|
||||
},
|
||||
{
|
||||
begin: "\\b(" + RE_MODULE_IDENT + "\\.)+\\{",
|
||||
end: /\}/
|
||||
}
|
||||
],
|
||||
contains: MODULE_ACCESS_CONTENTS
|
||||
};
|
||||
|
||||
PARAMS_CONTENTS.push(MODULE_ACCESS_MODE);
|
||||
|
||||
return {
|
||||
name: 'ReasonML',
|
||||
aliases: [ 're' ],
|
||||
keywords: KEYWORDS,
|
||||
illegal: '(:-|:=|\\$\\{|\\+=)',
|
||||
contains: [
|
||||
hljs.COMMENT('/\\*', '\\*/', {
|
||||
illegal: '^(#,\\/\\/)'
|
||||
}),
|
||||
{
|
||||
className: 'character',
|
||||
begin: '\'(\\\\[^\']+|[^\'])\'',
|
||||
illegal: '\\n',
|
||||
relevance: 0
|
||||
},
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
{
|
||||
className: 'literal',
|
||||
begin: '\\(\\)',
|
||||
relevance: 0
|
||||
},
|
||||
{
|
||||
className: 'literal',
|
||||
begin: '\\[\\|',
|
||||
end: '\\|\\]',
|
||||
relevance: 0,
|
||||
contains: LIST_CONTENTS_MODES
|
||||
},
|
||||
{
|
||||
className: 'literal',
|
||||
begin: '\\[',
|
||||
end: '\\]',
|
||||
relevance: 0,
|
||||
contains: LIST_CONTENTS_MODES
|
||||
},
|
||||
CONSTRUCTOR_MODE,
|
||||
{
|
||||
className: 'operator',
|
||||
begin: RE_OPERATOR_SPACED,
|
||||
illegal: '-->',
|
||||
relevance: 0
|
||||
},
|
||||
NUMBER_MODE,
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
PATTERN_MATCH_BLOCK_MODE,
|
||||
FUNCTION_BLOCK_MODE,
|
||||
{
|
||||
className: 'module-def',
|
||||
begin: "\\bmodule\\s+" + RE_IDENT + "\\s+" + RE_MODULE_IDENT + "\\s+=\\s+\\{",
|
||||
end: /\}/,
|
||||
returnBegin: true,
|
||||
keywords: KEYWORDS,
|
||||
relevance: 0,
|
||||
contains: [
|
||||
{
|
||||
className: 'module',
|
||||
relevance: 0,
|
||||
begin: RE_MODULE_IDENT
|
||||
},
|
||||
{
|
||||
begin: /\{/,
|
||||
end: /\}/,
|
||||
skip: true
|
||||
}
|
||||
].concat(MODULE_ACCESS_CONTENTS)
|
||||
},
|
||||
MODULE_ACCESS_MODE
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = reasonml;
|
||||
172
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/routeros.js
generated
vendored
Normal file
172
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/routeros.js
generated
vendored
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
Language: Microtik RouterOS script
|
||||
Author: Ivan Dementev <ivan_div@mail.ru>
|
||||
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
|
||||
*/
|
||||
|
||||
// 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: 'Microtik 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: 'builtin-name', // 'function',
|
||||
begin: /\w+/
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'built_in',
|
||||
variants: [
|
||||
{
|
||||
begin: '(\\.\\./|/|\\s)((' + OBJECTS.split(' ').join('|') + ');?\\s)+'
|
||||
},
|
||||
{
|
||||
begin: /\.\./,
|
||||
relevance: 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = routeros;
|
||||
78
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/ruleslanguage.js
generated
vendored
Normal file
78
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/ruleslanguage.js
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
Language: Oracle Rules Language
|
||||
Author: Jason Jacobson <jason.a.jacobson@gmail.com>
|
||||
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 .]+'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = ruleslanguage;
|
||||
73
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/scilab.js
generated
vendored
Normal file
73
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/scilab.js
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
Language: Scilab
|
||||
Author: Sylvestre Ledru <sylvestre.ledru@scilab-enterprises.com>
|
||||
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)
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = scilab;
|
||||
545
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/scss.js
generated
vendored
Normal file
545
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/scss.js
generated
vendored
Normal file
@@ -0,0 +1,545 @@
|
||||
const MODES = (hljs) => {
|
||||
return {
|
||||
IMPORTANT: {
|
||||
className: 'meta',
|
||||
begin: '!important'
|
||||
},
|
||||
HEXCOLOR: {
|
||||
className: 'number',
|
||||
begin: '#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})'
|
||||
},
|
||||
ATTRIBUTE_SELECTOR_MODE: {
|
||||
className: 'selector-attr',
|
||||
begin: /\[/,
|
||||
end: /\]/,
|
||||
illegal: '$',
|
||||
contains: [
|
||||
hljs.APOS_STRING_MODE,
|
||||
hljs.QUOTE_STRING_MODE
|
||||
]
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
const 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',
|
||||
'p',
|
||||
'q',
|
||||
'quote',
|
||||
'samp',
|
||||
'section',
|
||||
'span',
|
||||
'strong',
|
||||
'summary',
|
||||
'sup',
|
||||
'table',
|
||||
'tbody',
|
||||
'td',
|
||||
'textarea',
|
||||
'tfoot',
|
||||
'th',
|
||||
'thead',
|
||||
'time',
|
||||
'tr',
|
||||
'ul',
|
||||
'var',
|
||||
'video'
|
||||
];
|
||||
|
||||
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'
|
||||
];
|
||||
|
||||
// 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()
|
||||
];
|
||||
|
||||
// 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'
|
||||
];
|
||||
|
||||
const ATTRIBUTES = [
|
||||
'align-content',
|
||||
'align-items',
|
||||
'align-self',
|
||||
'animation',
|
||||
'animation-delay',
|
||||
'animation-direction',
|
||||
'animation-duration',
|
||||
'animation-fill-mode',
|
||||
'animation-iteration-count',
|
||||
'animation-name',
|
||||
'animation-play-state',
|
||||
'animation-timing-function',
|
||||
'auto',
|
||||
'backface-visibility',
|
||||
'background',
|
||||
'background-attachment',
|
||||
'background-clip',
|
||||
'background-color',
|
||||
'background-image',
|
||||
'background-origin',
|
||||
'background-position',
|
||||
'background-repeat',
|
||||
'background-size',
|
||||
'border',
|
||||
'border-bottom',
|
||||
'border-bottom-color',
|
||||
'border-bottom-left-radius',
|
||||
'border-bottom-right-radius',
|
||||
'border-bottom-style',
|
||||
'border-bottom-width',
|
||||
'border-collapse',
|
||||
'border-color',
|
||||
'border-image',
|
||||
'border-image-outset',
|
||||
'border-image-repeat',
|
||||
'border-image-slice',
|
||||
'border-image-source',
|
||||
'border-image-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-style',
|
||||
'border-top',
|
||||
'border-top-color',
|
||||
'border-top-left-radius',
|
||||
'border-top-right-radius',
|
||||
'border-top-style',
|
||||
'border-top-width',
|
||||
'border-width',
|
||||
'bottom',
|
||||
'box-decoration-break',
|
||||
'box-shadow',
|
||||
'box-sizing',
|
||||
'break-after',
|
||||
'break-before',
|
||||
'break-inside',
|
||||
'caption-side',
|
||||
'clear',
|
||||
'clip',
|
||||
'clip-path',
|
||||
'color',
|
||||
'column-count',
|
||||
'column-fill',
|
||||
'column-gap',
|
||||
'column-rule',
|
||||
'column-rule-color',
|
||||
'column-rule-style',
|
||||
'column-rule-width',
|
||||
'column-span',
|
||||
'column-width',
|
||||
'columns',
|
||||
'content',
|
||||
'counter-increment',
|
||||
'counter-reset',
|
||||
'cursor',
|
||||
'direction',
|
||||
'display',
|
||||
'empty-cells',
|
||||
'filter',
|
||||
'flex',
|
||||
'flex-basis',
|
||||
'flex-direction',
|
||||
'flex-flow',
|
||||
'flex-grow',
|
||||
'flex-shrink',
|
||||
'flex-wrap',
|
||||
'float',
|
||||
'font',
|
||||
'font-display',
|
||||
'font-family',
|
||||
'font-feature-settings',
|
||||
'font-kerning',
|
||||
'font-language-override',
|
||||
'font-size',
|
||||
'font-size-adjust',
|
||||
'font-smoothing',
|
||||
'font-stretch',
|
||||
'font-style',
|
||||
'font-variant',
|
||||
'font-variant-ligatures',
|
||||
'font-variation-settings',
|
||||
'font-weight',
|
||||
'height',
|
||||
'hyphens',
|
||||
'icon',
|
||||
'image-orientation',
|
||||
'image-rendering',
|
||||
'image-resolution',
|
||||
'ime-mode',
|
||||
'inherit',
|
||||
'initial',
|
||||
'justify-content',
|
||||
'left',
|
||||
'letter-spacing',
|
||||
'line-height',
|
||||
'list-style',
|
||||
'list-style-image',
|
||||
'list-style-position',
|
||||
'list-style-type',
|
||||
'margin',
|
||||
'margin-bottom',
|
||||
'margin-left',
|
||||
'margin-right',
|
||||
'margin-top',
|
||||
'marks',
|
||||
'mask',
|
||||
'max-height',
|
||||
'max-width',
|
||||
'min-height',
|
||||
'min-width',
|
||||
'nav-down',
|
||||
'nav-index',
|
||||
'nav-left',
|
||||
'nav-right',
|
||||
'nav-up',
|
||||
'none',
|
||||
'normal',
|
||||
'object-fit',
|
||||
'object-position',
|
||||
'opacity',
|
||||
'order',
|
||||
'orphans',
|
||||
'outline',
|
||||
'outline-color',
|
||||
'outline-offset',
|
||||
'outline-style',
|
||||
'outline-width',
|
||||
'overflow',
|
||||
'overflow-wrap',
|
||||
'overflow-x',
|
||||
'overflow-y',
|
||||
'padding',
|
||||
'padding-bottom',
|
||||
'padding-left',
|
||||
'padding-right',
|
||||
'padding-top',
|
||||
'page-break-after',
|
||||
'page-break-before',
|
||||
'page-break-inside',
|
||||
'perspective',
|
||||
'perspective-origin',
|
||||
'pointer-events',
|
||||
'position',
|
||||
'quotes',
|
||||
'resize',
|
||||
'right',
|
||||
'src', // @font-face
|
||||
'tab-size',
|
||||
'table-layout',
|
||||
'text-align',
|
||||
'text-align-last',
|
||||
'text-decoration',
|
||||
'text-decoration-color',
|
||||
'text-decoration-line',
|
||||
'text-decoration-style',
|
||||
'text-indent',
|
||||
'text-overflow',
|
||||
'text-rendering',
|
||||
'text-shadow',
|
||||
'text-transform',
|
||||
'text-underline-position',
|
||||
'top',
|
||||
'transform',
|
||||
'transform-origin',
|
||||
'transform-style',
|
||||
'transition',
|
||||
'transition-delay',
|
||||
'transition-duration',
|
||||
'transition-property',
|
||||
'transition-timing-function',
|
||||
'unicode-bidi',
|
||||
'vertical-align',
|
||||
'visibility',
|
||||
'white-space',
|
||||
'widows',
|
||||
'width',
|
||||
'word-break',
|
||||
'word-spacing',
|
||||
'word-wrap',
|
||||
'z-index'
|
||||
// reverse makes sure longer attributes `font-weight` are matched fully
|
||||
// instead of getting false positives on say `font`
|
||||
].reverse();
|
||||
|
||||
/*
|
||||
Language: SCSS
|
||||
Description: Scss is an extension of the syntax of CSS.
|
||||
Author: Kurt Emch <kurt@kurtemch.com>
|
||||
Website: https://sass-lang.com
|
||||
Category: common, css
|
||||
*/
|
||||
|
||||
/** @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'
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'SCSS',
|
||||
case_insensitive: true,
|
||||
illegal: '[=/|\']',
|
||||
contains: [
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_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: [ hljs.CSS_NUMBER_MODE ]
|
||||
},
|
||||
{
|
||||
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: ';',
|
||||
contains: [
|
||||
VARIABLE,
|
||||
modes.HEXCOLOR,
|
||||
hljs.CSS_NUMBER_MODE,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
hljs.APOS_STRING_MODE,
|
||||
modes.IMPORTANT
|
||||
]
|
||||
},
|
||||
// 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)',
|
||||
lexemes: AT_IDENTIFIER,
|
||||
keywords: '@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,
|
||||
hljs.CSS_NUMBER_MODE
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = scss;
|
||||
448
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/sqf.js
generated
vendored
Normal file
448
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/sqf.js
generated
vendored
Normal file
@@ -0,0 +1,448 @@
|
||||
/*
|
||||
Language: SQF
|
||||
Author: Søren Enevoldsen <senevoldsen90@gmail.com>
|
||||
Contributors: Marvin Saignat <contact@zgmrvn.com>, Dedmen Miller <dedmen@dedmen.de>
|
||||
Description: Scripting language for the Arma game series
|
||||
Website: https://community.bistudio.com/wiki/SQF_syntax
|
||||
Category: scripting
|
||||
*/
|
||||
|
||||
function sqf(hljs) {
|
||||
// In SQF, a variable start 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-Z0-9]+_fnc_\w*/
|
||||
};
|
||||
|
||||
// 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
|
||||
} ]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
// list of keywords from:
|
||||
// https://community.bistudio.com/wiki/PreProcessor_Commands
|
||||
const PREPROCESSOR = {
|
||||
className: 'meta',
|
||||
begin: /#\s*[a-z]+\b/,
|
||||
end: /$/,
|
||||
keywords: {
|
||||
'meta-keyword':
|
||||
'define undef ifdef ifndef else endif include'
|
||||
},
|
||||
contains: [
|
||||
{
|
||||
begin: /\\\n/,
|
||||
relevance: 0
|
||||
},
|
||||
hljs.inherit(STRINGS, {
|
||||
className: 'meta-string'
|
||||
}),
|
||||
{
|
||||
className: 'meta-string',
|
||||
begin: /<[^\n>]*>/,
|
||||
end: /$/,
|
||||
illegal: '\\n'
|
||||
},
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE
|
||||
]
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'SQF',
|
||||
case_insensitive: true,
|
||||
keywords: {
|
||||
keyword:
|
||||
'case catch default do else exit exitWith for forEach from if ' +
|
||||
'private switch then throw to try waitUntil while with',
|
||||
built_in:
|
||||
'abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames ' +
|
||||
'actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey ' +
|
||||
'add3DENConnection add3DENEventHandler add3DENLayer addAction addBackpack addBackpackCargo ' +
|
||||
'addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea ' +
|
||||
'addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler ' +
|
||||
'addForce 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 addOwnedMine addPlayerScores addPrimaryWeaponItem ' +
|
||||
'addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem ' +
|
||||
'addSwitchableUnit addTeamMember addToRemainsCollector addTorque addUniform addVehicle addVest ' +
|
||||
'addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponItem ' +
|
||||
'addWeaponPool addWeaponTurret admin agent agents AGLToASL aimedAtTarget aimPos airDensityRTD ' +
|
||||
'airplaneThrottle airportSide AISFinishHeal alive all3DENEntities allAirports allControls ' +
|
||||
'allCurators allCutLayers allDead allDeadMen allDisplays allGroups allMapMarkers allMines ' +
|
||||
'allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage ' +
|
||||
'allowDammage allowFileOperations allowFleeing allowGetIn allowSprint allPlayers allSimpleObjects ' +
|
||||
'allSites allTurrets allUnits allUnitsUAV allVariables ammo ammoOnPylon and animate animateBay ' +
|
||||
'animateDoor animatePylon animateSource animationNames animationPhase animationSourcePhase ' +
|
||||
'animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert ' +
|
||||
'assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret ' +
|
||||
'assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems ' +
|
||||
'assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam ' +
|
||||
'assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject ' +
|
||||
'attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines ' +
|
||||
'backpackSpaceFor behaviour benchmark binocular boundingBox boundingBoxReal boundingCenter ' +
|
||||
'breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode ' +
|
||||
'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 canFire canMove canSlingLoad canStand canSuspend ' +
|
||||
'canTriggerDynamicSimulation canUnloadInCombat canVehicleCargo captive captiveNum cbChecked ' +
|
||||
'cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility className ' +
|
||||
'clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons ' +
|
||||
'clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal ' +
|
||||
'clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool ' +
|
||||
'clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory ' +
|
||||
'collectiveRTD combatMode commandArtilleryFire commandChat commander commandFire commandFollow ' +
|
||||
'commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop ' +
|
||||
'commandSuppressiveFire commandTarget commandWatch comment commitOverlay compile compileFinal ' +
|
||||
'completedFSM composeText configClasses configFile configHierarchy configName configProperties ' +
|
||||
'configSourceAddonList configSourceMod configSourceModList confirmSensorTarget ' +
|
||||
'connectTerminalToUAV controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count ' +
|
||||
'countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity ' +
|
||||
'createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject ' +
|
||||
'createDisplay createGearDialog createGroup createGuardedPoint 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 ctrlAutoScrollDelay ' +
|
||||
'ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ' +
|
||||
'ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ' +
|
||||
'ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ' +
|
||||
'ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ' +
|
||||
'ctrlParent ctrlParentControlsGroup ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ' +
|
||||
'ctrlScale ctrlSetActiveColor ctrlSetAngle ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ' +
|
||||
'ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked 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 ctrlSetPixelPrecision ctrlSetPosition ctrlSetScale ' +
|
||||
'ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ' +
|
||||
'ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ' +
|
||||
'ctrlTextWidth ctrlType 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 currentTask currentTasks currentThrowable currentVisionMode currentWaypoint ' +
|
||||
'currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget ' +
|
||||
'customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime ' +
|
||||
'deActivateKey debriefingText debugFSM debugLog 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_captureFrame diag_captureFrameToFile diag_captureSlowFrame diag_codePerformance ' +
|
||||
'diag_drawMode diag_enable diag_enabled diag_fps diag_fpsMin diag_frameNo diag_lightNewLoad ' +
|
||||
'diag_list diag_log diag_logSlowFrame diag_mergeConfigFile diag_recordTurretLimits ' +
|
||||
'diag_setLightNew diag_tickTime diag_toggle dialog diarySubjectExists didJIP didJIPOwner ' +
|
||||
'difficulty difficultyEnabled difficultyEnabledRTD difficultyOption direction directSay disableAI ' +
|
||||
'disableCollisionWith disableConversation disableDebriefingStats disableMapIndicators ' +
|
||||
'disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment ' +
|
||||
'disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayParent ' +
|
||||
'displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam ' +
|
||||
'distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow ' +
|
||||
'doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse ' +
|
||||
'drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawPolygon drawRectangle ' +
|
||||
'drawTriangle driver drop dynamicSimulationDistance dynamicSimulationDistanceCoef ' +
|
||||
'dynamicSimulationEnabled dynamicSimulationSystemEnabled echo edit3DENMissionAttributes editObject ' +
|
||||
'editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature ' +
|
||||
'enableAimPrecision enableAttack enableAudioFeature enableAutoStartUpRTD enableAutoTrimRTD ' +
|
||||
'enableCamShake enableCaustics enableChannel enableCollisionWith enableCopilot ' +
|
||||
'enableDebriefingStats enableDiagLegend enableDynamicSimulation enableDynamicSimulationSystem ' +
|
||||
'enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights ' +
|
||||
'enableInfoPanelComponent enableIRLasers enableMimics enablePersonTurret enableRadio enableReload ' +
|
||||
'enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation ' +
|
||||
'enableSimulationGlobal enableStamina enableTeamSwitch enableTraffic enableUAVConnectability ' +
|
||||
'enableUAVWaypoints enableVehicleCargo enableVehicleSensor enableWeaponDisassembly ' +
|
||||
'endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities ' +
|
||||
'environmentEnabled estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack ' +
|
||||
'everyContainer exec execEditorScript execFSM execVM exp expectedDestination exportJIPMessages ' +
|
||||
'eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission ' +
|
||||
'fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition ' +
|
||||
'findEmptyPositionReady findIf findNearestEnemy finishMissionInit finite fire fireAtTarget ' +
|
||||
'firstBackpack flag flagAnimationPhase flagOwner flagSide flagTexture fleeing floor flyInHeight ' +
|
||||
'flyInHeightASL fog fogForecast fogParams forceAddUniform forcedMap forceEnd forceFlagTexture ' +
|
||||
'forceFollowRoad forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange ' +
|
||||
'forEachMember forEachMemberAgent forEachMemberTeam forgetTarget format formation ' +
|
||||
'formationDirection formationLeader formationMembers formationPosition formationTask formatText ' +
|
||||
'formLeader freeLook fromEditor fuel fullCrew gearIDCAmmoCount gearSlotAmmoCount gearSlotData ' +
|
||||
'get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity ' +
|
||||
'get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLayerEntities get3DENLinesVisible ' +
|
||||
'get3DENMissionAttribute get3DENMouseOver get3DENSelected getAimingCoef getAllEnvSoundControllers ' +
|
||||
'getAllHitPointsDamage getAllOwnedMines getAllSoundControllers getAmmoCargo getAnimAimPrecision ' +
|
||||
'getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA ' +
|
||||
'getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining ' +
|
||||
'getBurningValue getCameraViewDirection getCargoIndex getCenterOfMass getClientState ' +
|
||||
'getClientStateNumber getCompatiblePylonMagazines getConnectedUAV getContainerMaxLoad ' +
|
||||
'getCursorObjectParams getCustomAimCoef getDammage getDescription getDir getDirVisual ' +
|
||||
'getDLCAssetsUsage getDLCAssetsUsageByName getDLCs getEditorCamera getEditorMode ' +
|
||||
'getEditorObjectScope getElevationOffset getEnvSoundController getFatigue getForcedFlagTexture ' +
|
||||
'getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom ' +
|
||||
'getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos ' +
|
||||
'getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs ' +
|
||||
'getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber ' +
|
||||
'getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy ' +
|
||||
'getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs ' +
|
||||
'getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget ' +
|
||||
'getPlateNumber getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual ' +
|
||||
'getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getPylonMagazines getRelDir ' +
|
||||
'getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents ' +
|
||||
'getSlingLoad getSoundController getSoundControllerResult getSpeed getStamina getStatValue ' +
|
||||
'getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout ' +
|
||||
'getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo ' +
|
||||
'getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio ' +
|
||||
'goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId ' +
|
||||
'groupOwner groupRadio groupSelectedUnits groupSelectUnit gunner gusts halt handgunItems ' +
|
||||
'handgunMagazine handgunWeapon handsHit 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 inRangeOfArtillery insertEditorObject intersect is3DEN ' +
|
||||
'is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest ' +
|
||||
'isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDamageAllowed isDedicated ' +
|
||||
'isDLCAvailable isEngineOn isEqualTo isEqualType isEqualTypeAll isEqualTypeAny isEqualTypeArray ' +
|
||||
'isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader ' +
|
||||
'isGroupDeletedWhenEmpty isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn ' +
|
||||
'isKeyActive isKindOf isLaserOn isLightOn isLocalized isManualFire isMarkedForCollection ' +
|
||||
'isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad ' +
|
||||
'isPipEnabled isPlayer isRealTime isRemoteExecuted isRemoteExecutedJIP isServer isShowing3DIcons ' +
|
||||
'isSimpleObject isSprintAllowed isStaminaEnabled isSteamMission isStreamFriendlyUIEnabled 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 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 lbSortByValue lbText lbTextRight lbValue leader leaderboardDeInit ' +
|
||||
'leaderboardGetRows leaderboardInit leaderboardRequestRowsFriends 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 lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow ' +
|
||||
'lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData ' +
|
||||
'lnbSetPicture lnbSetText lnbSetValue lnbSize lnbSort lnbSortByValue lnbText lnbValue load loadAbs ' +
|
||||
'loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform ' +
|
||||
'loadVest local localize locationPosition lock lockCameraTo lockCargo lockDriver locked ' +
|
||||
'lockedCargo lockedDriver lockedTurret lockIdentity 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 markerColor markerDir markerPos markerShape markerSize markerText ' +
|
||||
'markerType max members menuAction menuAdd menuChecked menuClear menuCollapse menuData menuDelete ' +
|
||||
'menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData ' +
|
||||
'menuSetPicture menuSetValue menuShortcut menuShortcutText menuSize menuSort menuText menuURL ' +
|
||||
'menuValue min mineActive mineDetectedBy missionConfigFile missionDifficulty missionName ' +
|
||||
'missionNamespace 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 nameSound ' +
|
||||
'nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing ' +
|
||||
'nearestObject nearestObjects nearestTerrainObjects nearObjects nearObjectsReady nearRoads ' +
|
||||
'nearSupplies nearTargets needReload 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 openMap openSteamApp openYoutubeVideo or orderGetIn overcast ' +
|
||||
'overcastForecast owner param params parseNumber parseSimpleArray parseText parsingNamespace ' +
|
||||
'particlesQuality pickWeaponPool pitch pixelGrid pixelGridBase pixelGridNoUIScale pixelH pixelW ' +
|
||||
'playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide ' +
|
||||
'playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission ' +
|
||||
'playSound playSound3D 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 ' +
|
||||
'radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random ' +
|
||||
'rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl ' +
|
||||
'remoteExec remoteExecCall remoteExecutedOwner remove3DENConnection remove3DENEventHandler ' +
|
||||
'remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems ' +
|
||||
'removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas ' +
|
||||
'removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems ' +
|
||||
'removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers ' +
|
||||
'removeAllMusicEventHandlers removeAllOwnedMines removeAllPrimaryWeaponItems removeAllWeapons ' +
|
||||
'removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea ' +
|
||||
'removeCuratorEditableObjects removeCuratorEditingArea 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 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 ' +
|
||||
'ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW ' +
|
||||
'safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY save3DENInventory saveGame saveIdentity ' +
|
||||
'saveJoysticks 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 ' +
|
||||
'selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectRandomWeighted ' +
|
||||
'selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult ' +
|
||||
'sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName 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 ' +
|
||||
'setBleedingRemaining setBrakesRTD setCameraInterest setCamShakeDefParams setCamShakeParams ' +
|
||||
'setCamUseTI setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation ' +
|
||||
'setConvoySeparation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType ' +
|
||||
'setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setCustomAimCoef ' +
|
||||
'setCustomWeightRTD setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination ' +
|
||||
'setDetailMapBlendPars setDir setDirection setDrawIcon setDriveOnPath setDropInterval ' +
|
||||
'setDynamicSimulationDistance setDynamicSimulationDistanceCoef setEditorMode setEditorObjectScope ' +
|
||||
'setEffectCondition setEngineRPMRTD setFace setFaceAnimation setFatigue setFeatureType ' +
|
||||
'setFlagAnimationPhase setFlagOwner setFlagSide setFlagTexture setFog setFormation ' +
|
||||
'setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo ' +
|
||||
'setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId ' +
|
||||
'setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage ' +
|
||||
'setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setInfoPanel setLeader ' +
|
||||
'setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight ' +
|
||||
'setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare ' +
|
||||
'setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush ' +
|
||||
'setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal ' +
|
||||
'setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize ' +
|
||||
'setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass ' +
|
||||
'setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound ' +
|
||||
'setObjectArguments setObjectMaterial setObjectMaterialGlobal setObjectProxy setObjectTexture ' +
|
||||
'setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining ' +
|
||||
'setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom ' +
|
||||
'setPilotCameraDirection setPilotCameraRotation setPilotCameraTarget setPilotLight setPiPEffect ' +
|
||||
'setPitch setPlateNumber setPlayable setPlayerRespawnTime 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 setText ' +
|
||||
'setTimeMultiplier setTitleEffect setTrafficDensity setTrafficDistance setTrafficGap ' +
|
||||
'setTrafficSpeed setTriggerActivation setTriggerArea setTriggerStatements setTriggerText ' +
|
||||
'setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility 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 setWaypointLoiterRadius setWaypointLoiterType setWaypointName ' +
|
||||
'setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout ' +
|
||||
'setWaypointType setWaypointVisible setWeaponReloadingTime 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 shownUAVFeed shownWarrant shownWatch showPad showRadio ' +
|
||||
'showScoretable showSubtitles showUAVFeed showWarrant showWatch showWaypoint showWaypoints side ' +
|
||||
'sideChat sideEnemy sideFriendly 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 speed speedMode ' +
|
||||
'splitString sqrt squadParams stance startLoadingScreen step stop stopEngineRTD stopped str ' +
|
||||
'sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth ' +
|
||||
'switchableUnits switchAction switchCamera switchGesture switchLight switchMove ' +
|
||||
'synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd ' +
|
||||
'synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint systemChat systemOfUnits tan ' +
|
||||
'targetKnowledge targets targetsAggregate targetsQuery taskAlwaysVisible taskChildren ' +
|
||||
'taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset 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 ' +
|
||||
'toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle ' +
|
||||
'triggerAttachObject triggerAttachVehicle triggerDynamicSimulation triggerStatements triggerText ' +
|
||||
'triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear ' +
|
||||
'tvCollapse tvCollapseAll tvCount tvCurSel tvData tvDelete tvExpand tvExpandAll tvPicture ' +
|
||||
'tvSetColor tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled ' +
|
||||
'tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled ' +
|
||||
'tvSetPictureRightColorSelected tvSetText tvSetTooltip tvSetValue tvSort tvSortByValue tvText ' +
|
||||
'tvTooltip tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator ' +
|
||||
'unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems ' +
|
||||
'uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos ' +
|
||||
'unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement ' +
|
||||
'unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent ' +
|
||||
'useAudioTimeForMoves userInputDisabled vectorAdd vectorCos vectorCrossProduct vectorDiff ' +
|
||||
'vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo ' +
|
||||
'vectorMagnitude vectorMagnitudeSqr vectorModelToWorld vectorModelToWorldVisual vectorMultiply ' +
|
||||
'vectorNormalized vectorUp vectorUpVisual vectorWorldToModel vectorWorldToModelVisual vehicle ' +
|
||||
'vehicleCargoEnabled vehicleChat 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 waypointLoiterRadius waypointLoiterType waypointName ' +
|
||||
'waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed ' +
|
||||
'waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible ' +
|
||||
'weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered ' +
|
||||
'weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD WFSideText wind ',
|
||||
literal:
|
||||
'blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak ' +
|
||||
'locationNull nil objNull opfor pi resistance scriptNull sideAmbientLife sideEmpty sideLogic ' +
|
||||
'sideUnknown taskNull teamMemberNull true west'
|
||||
},
|
||||
contains: [
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
hljs.NUMBER_MODE,
|
||||
VARIABLE,
|
||||
FUNCTION,
|
||||
STRINGS,
|
||||
PREPROCESSOR
|
||||
],
|
||||
illegal: /#|^\$ /
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = sqf;
|
||||
55
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/tap.js
generated
vendored
Normal file
55
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/tap.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
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 <sergeyb@bronevichok.ru>
|
||||
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'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = tap;
|
||||
95
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/tp.js
generated
vendored
Normal file
95
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/tp.js
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
Language: TP
|
||||
Author: Jay Strybis <jay.strybis@gmail.com>
|
||||
Description: FANUC TP programming language (TPP).
|
||||
*/
|
||||
|
||||
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
|
||||
]
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'TP',
|
||||
keywords: {
|
||||
keyword:
|
||||
'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',
|
||||
literal:
|
||||
'ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET'
|
||||
},
|
||||
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_]+'
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = tp;
|
||||
24
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/vbscript-html.js
generated
vendored
Normal file
24
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/vbscript-html.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
Language: VBScript in HTML
|
||||
Requires: xml.js, vbscript.js
|
||||
Author: Ivan Sagalaev <maniac@softwaremaniacs.org>
|
||||
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'
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = vbscriptHtml;
|
||||
131
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/verilog.js
generated
vendored
Normal file
131
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/verilog.js
generated
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
Language: Verilog
|
||||
Author: Jon Evans <jon@craftyjon.com>
|
||||
Contributors: Boone Severson <boone.severson@gmail.com>
|
||||
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
|
||||
*/
|
||||
|
||||
function verilog(hljs) {
|
||||
const SV_KEYWORDS = {
|
||||
$pattern: /[\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'
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'Verilog',
|
||||
aliases: [
|
||||
'v',
|
||||
'sv',
|
||||
'svh'
|
||||
],
|
||||
case_insensitive: false,
|
||||
keywords: SV_KEYWORDS,
|
||||
contains: [
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
{
|
||||
className: 'number',
|
||||
contains: [ hljs.BACKSLASH_ESCAPE ],
|
||||
variants: [
|
||||
{
|
||||
begin: '\\b((\\d+\'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)'
|
||||
},
|
||||
{
|
||||
begin: '\\B((\'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)'
|
||||
},
|
||||
{
|
||||
begin: '\\b([0-9_])+',
|
||||
relevance: 0
|
||||
}
|
||||
]
|
||||
},
|
||||
/* parameters to instances */
|
||||
{
|
||||
className: 'variable',
|
||||
variants: [
|
||||
{
|
||||
begin: '#\\((?!parameter).+\\)'
|
||||
},
|
||||
{
|
||||
begin: '\\.\\w+',
|
||||
relevance: 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'meta',
|
||||
begin: '`',
|
||||
end: '$',
|
||||
keywords: {
|
||||
'meta-keyword':
|
||||
'define __FILE__ ' +
|
||||
'__LINE__ begin_keywords celldefine default_nettype define ' +
|
||||
'else elsif end_keywords endcelldefine endif ifdef ifndef ' +
|
||||
'include line nounconnected_drive pragma resetall timescale ' +
|
||||
'unconnected_drive undef undefineall'
|
||||
},
|
||||
relevance: 0
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = verilog;
|
||||
123
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/vim.js
generated
vendored
Normal file
123
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/vim.js
generated
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
Language: Vim Script
|
||||
Author: Jun Yang <yangjvn@126.com>
|
||||
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_]*/
|
||||
},
|
||||
{
|
||||
className: 'function',
|
||||
beginKeywords: 'function function!',
|
||||
end: '$',
|
||||
relevance: 0,
|
||||
contains: [
|
||||
hljs.TITLE_MODE,
|
||||
{
|
||||
className: 'params',
|
||||
begin: '\\(',
|
||||
end: '\\)'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'symbol',
|
||||
begin: /<[\w-]+>/
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = vim;
|
||||
92
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/xl.js
generated
vendored
Normal file
92
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/xl.js
generated
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
Language: XL
|
||||
Author: Christophe de Dinechin <christophe@taodyne.com>
|
||||
Description: An extensible programming language, based on parse tree rewriting
|
||||
Website: http://xlr.sf.net
|
||||
*/
|
||||
|
||||
function xl(hljs) {
|
||||
const BUILTIN_MODULES =
|
||||
'ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo ' +
|
||||
'StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts';
|
||||
|
||||
const XL_KEYWORDS = {
|
||||
$pattern: /[a-zA-Z][a-zA-Z0-9_?]*/,
|
||||
keyword:
|
||||
'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',
|
||||
literal:
|
||||
'true false nil',
|
||||
built_in:
|
||||
'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 ' +
|
||||
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: XL_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: XL_KEYWORDS
|
||||
}
|
||||
})
|
||||
]
|
||||
};
|
||||
return {
|
||||
name: 'XL',
|
||||
aliases: [ 'tao' ],
|
||||
keywords: XL_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
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = xl;
|
||||
140
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/zephir.js
generated
vendored
Normal file
140
frontend/node_modules/lowlight/node_modules/highlight.js/lib/languages/zephir.js
generated
vendored
Normal file
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
Language: Zephir
|
||||
Description: Zephir, an open source, high-level language designed to ease the creation and maintainability of extensions for PHP with a focus on type and memory safety.
|
||||
Author: Oleg Efimov <efimovov@gmail.com>
|
||||
Website: https://zephir-lang.com/en
|
||||
Audit: 2020
|
||||
*/
|
||||
|
||||
/** @type LanguageFn */
|
||||
function zephir(hljs) {
|
||||
const STRING = {
|
||||
className: 'string',
|
||||
contains: [ hljs.BACKSLASH_ESCAPE ],
|
||||
variants: [
|
||||
hljs.inherit(hljs.APOS_STRING_MODE, {
|
||||
illegal: null
|
||||
}),
|
||||
hljs.inherit(hljs.QUOTE_STRING_MODE, {
|
||||
illegal: null
|
||||
})
|
||||
]
|
||||
};
|
||||
const TITLE_MODE = hljs.UNDERSCORE_TITLE_MODE;
|
||||
const NUMBER = {
|
||||
variants: [
|
||||
hljs.BINARY_NUMBER_MODE,
|
||||
hljs.C_NUMBER_MODE
|
||||
]
|
||||
};
|
||||
const KEYWORDS =
|
||||
// classes and objects
|
||||
'namespace class interface use extends ' +
|
||||
'function return ' +
|
||||
'abstract final public protected private static deprecated ' +
|
||||
// error handling
|
||||
'throw try catch Exception ' +
|
||||
// keyword-ish things their website does NOT seem to highlight (in their own snippets)
|
||||
// 'typeof fetch in ' +
|
||||
// operators/helpers
|
||||
'echo empty isset instanceof unset ' +
|
||||
// assignment/variables
|
||||
'let var new const self ' +
|
||||
// control
|
||||
'require ' +
|
||||
'if else elseif switch case default ' +
|
||||
'do while loop for continue break ' +
|
||||
'likely unlikely ' +
|
||||
// magic constants
|
||||
// https://github.com/phalcon/zephir/blob/master/Library/Expression/Constants.php
|
||||
'__LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ ' +
|
||||
// types - https://docs.zephir-lang.com/0.12/en/types
|
||||
'array boolean float double integer object resource string ' +
|
||||
'char long unsigned bool int uint ulong uchar ' +
|
||||
// built-ins
|
||||
'true false null undefined';
|
||||
|
||||
return {
|
||||
name: 'Zephir',
|
||||
aliases: [ 'zep' ],
|
||||
keywords: KEYWORDS,
|
||||
contains: [
|
||||
hljs.C_LINE_COMMENT_MODE,
|
||||
hljs.COMMENT(
|
||||
/\/\*/,
|
||||
/\*\//,
|
||||
{
|
||||
contains: [
|
||||
{
|
||||
className: 'doctag',
|
||||
begin: /@[A-Za-z]+/
|
||||
}
|
||||
]
|
||||
}
|
||||
),
|
||||
{
|
||||
className: 'string',
|
||||
begin: /<<<['"]?\w+['"]?$/,
|
||||
end: /^\w+;/,
|
||||
contains: [ hljs.BACKSLASH_ESCAPE ]
|
||||
},
|
||||
{
|
||||
// swallow composed identifiers to avoid parsing them as keywords
|
||||
begin: /(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/
|
||||
},
|
||||
{
|
||||
className: 'function',
|
||||
beginKeywords: 'function fn',
|
||||
end: /[;{]/,
|
||||
excludeEnd: true,
|
||||
illegal: /\$|\[|%/,
|
||||
contains: [
|
||||
TITLE_MODE,
|
||||
{
|
||||
className: 'params',
|
||||
begin: /\(/,
|
||||
end: /\)/,
|
||||
keywords: KEYWORDS,
|
||||
contains: [
|
||||
'self',
|
||||
hljs.C_BLOCK_COMMENT_MODE,
|
||||
STRING,
|
||||
NUMBER
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
className: 'class',
|
||||
beginKeywords: 'class interface',
|
||||
end: /\{/,
|
||||
excludeEnd: true,
|
||||
illegal: /[:($"]/,
|
||||
contains: [
|
||||
{
|
||||
beginKeywords: 'extends implements'
|
||||
},
|
||||
TITLE_MODE
|
||||
]
|
||||
},
|
||||
{
|
||||
beginKeywords: 'namespace',
|
||||
end: /;/,
|
||||
illegal: /[.']/,
|
||||
contains: [ TITLE_MODE ]
|
||||
},
|
||||
{
|
||||
beginKeywords: 'use',
|
||||
end: /;/,
|
||||
contains: [ TITLE_MODE ]
|
||||
},
|
||||
{
|
||||
begin: /=>/ // No markup, just a relevance booster
|
||||
},
|
||||
STRING,
|
||||
NUMBER
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = zephir;
|
||||
89
frontend/node_modules/lowlight/node_modules/highlight.js/scss/an-old-hope.scss
generated
vendored
Normal file
89
frontend/node_modules/lowlight/node_modules/highlight.js/scss/an-old-hope.scss
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
|
||||
An Old Hope – Star Wars Syntax (c) Gustavo Costa <gusbemacbe@gmail.com>
|
||||
Original theme - Ocean Dark Theme – by https://github.com/gavsiu
|
||||
Based on Jesse Leite's Atom syntax theme 'An Old Hope' – https://github.com/JesseLeite/an-old-hope-syntax-atom
|
||||
|
||||
*/
|
||||
|
||||
/* Death Star Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote
|
||||
{
|
||||
color: #B6B18B;
|
||||
}
|
||||
|
||||
/* Darth Vader */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-regexp,
|
||||
.hljs-deletion
|
||||
{
|
||||
color: #EB3C54;
|
||||
}
|
||||
|
||||
/* Threepio */
|
||||
.hljs-number,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params,
|
||||
.hljs-meta,
|
||||
.hljs-link
|
||||
{
|
||||
color: #E7CE56;
|
||||
}
|
||||
|
||||
/* Luke Skywalker */
|
||||
.hljs-attribute
|
||||
{
|
||||
color: #EE7C2B;
|
||||
}
|
||||
|
||||
/* Obi Wan Kenobi */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-addition
|
||||
{
|
||||
color: #4FB4D7;
|
||||
}
|
||||
|
||||
/* Yoda */
|
||||
.hljs-title,
|
||||
.hljs-section
|
||||
{
|
||||
color: #78BB65;
|
||||
}
|
||||
|
||||
/* Mace Windu */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag
|
||||
{
|
||||
color: #B45EA4;
|
||||
}
|
||||
|
||||
/* Millenium Falcon */
|
||||
.hljs
|
||||
{
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #1C1D21;
|
||||
color: #c0c5ce;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis
|
||||
{
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong
|
||||
{
|
||||
font-weight: bold;
|
||||
}
|
||||
66
frontend/node_modules/lowlight/node_modules/highlight.js/scss/androidstudio.scss
generated
vendored
Normal file
66
frontend/node_modules/lowlight/node_modules/highlight.js/scss/androidstudio.scss
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
Date: 24 Fev 2015
|
||||
Author: Pedro Oliveira <kanytu@gmail . com>
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
color: #a9b7c6;
|
||||
background: #282b2e;
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-number,
|
||||
.hljs-literal,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #6897BB;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-deletion {
|
||||
color: #cc7832;
|
||||
}
|
||||
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-link {
|
||||
color: #629755;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #808080;
|
||||
}
|
||||
|
||||
.hljs-meta {
|
||||
color: #bbb529;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-attribute,
|
||||
.hljs-addition {
|
||||
color: #6A8759;
|
||||
}
|
||||
|
||||
.hljs-section,
|
||||
.hljs-title,
|
||||
.hljs-type {
|
||||
color: #ffc66d;
|
||||
}
|
||||
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #e8bf6a;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
85
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-cave-light.scss
generated
vendored
Normal file
85
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-cave-light.scss
generated
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
/* Base16 Atelier Cave Light - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Cave Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #655f6d;
|
||||
}
|
||||
|
||||
/* Atelier-Cave Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #be4678;
|
||||
}
|
||||
|
||||
/* Atelier-Cave Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #aa573c;
|
||||
}
|
||||
|
||||
/* Atelier-Cave Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #2a9292;
|
||||
}
|
||||
|
||||
/* Atelier-Cave Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #576ddb;
|
||||
}
|
||||
|
||||
/* Atelier-Cave Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #955ae7;
|
||||
}
|
||||
|
||||
.hljs-deletion,
|
||||
.hljs-addition {
|
||||
color: #19171c;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background-color: #be4678;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background-color: #2a9292;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #efecf4;
|
||||
color: #585260;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-dune-light.scss
generated
vendored
Normal file
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-dune-light.scss
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/* Base16 Atelier Dune Light - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Dune Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #7d7a68;
|
||||
}
|
||||
|
||||
/* Atelier-Dune Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #d73737;
|
||||
}
|
||||
|
||||
/* Atelier-Dune Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #b65611;
|
||||
}
|
||||
|
||||
/* Atelier-Dune Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #60ac39;
|
||||
}
|
||||
|
||||
/* Atelier-Dune Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #6684e1;
|
||||
}
|
||||
|
||||
/* Atelier-Dune Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #b854d4;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #fefbec;
|
||||
color: #6e6b5e;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
84
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-estuary-dark.scss
generated
vendored
Normal file
84
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-estuary-dark.scss
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
/* Base16 Atelier Estuary Dark - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/estuary) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Estuary Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #878573;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #ba6236;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #ae7313;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #7d9726;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #36a166;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #5f9182;
|
||||
}
|
||||
|
||||
.hljs-deletion,
|
||||
.hljs-addition {
|
||||
color: #22221b;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background-color: #ba6236;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background-color: #7d9726;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #22221b;
|
||||
color: #929181;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
84
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-estuary-light.scss
generated
vendored
Normal file
84
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-estuary-light.scss
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
/* Base16 Atelier Estuary Light - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/estuary) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Estuary Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #6c6b5a;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #ba6236;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #ae7313;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #7d9726;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #36a166;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #5f9182;
|
||||
}
|
||||
|
||||
.hljs-deletion,
|
||||
.hljs-addition {
|
||||
color: #22221b;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background-color: #ba6236;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background-color: #7d9726;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #f4f3ec;
|
||||
color: #5f5e4e;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-forest-light.scss
generated
vendored
Normal file
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-forest-light.scss
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/* Base16 Atelier Forest Light - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Forest Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #766e6b;
|
||||
}
|
||||
|
||||
/* Atelier-Forest Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #f22c40;
|
||||
}
|
||||
|
||||
/* Atelier-Forest Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #df5320;
|
||||
}
|
||||
|
||||
/* Atelier-Forest Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #7b9726;
|
||||
}
|
||||
|
||||
/* Atelier-Forest Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #407ee7;
|
||||
}
|
||||
|
||||
/* Atelier-Forest Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #6666ea;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #f1efee;
|
||||
color: #68615e;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
84
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-plateau-light.scss
generated
vendored
Normal file
84
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-plateau-light.scss
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
/* Base16 Atelier Plateau Light - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/plateau) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Plateau Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #655d5d;
|
||||
}
|
||||
|
||||
/* Atelier-Plateau Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #ca4949;
|
||||
}
|
||||
|
||||
/* Atelier-Plateau Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #b45a3c;
|
||||
}
|
||||
|
||||
/* Atelier-Plateau Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #4b8b8b;
|
||||
}
|
||||
|
||||
/* Atelier-Plateau Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #7272ca;
|
||||
}
|
||||
|
||||
/* Atelier-Plateau Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #8464c4;
|
||||
}
|
||||
|
||||
.hljs-deletion,
|
||||
.hljs-addition {
|
||||
color: #1b1818;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background-color: #ca4949;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background-color: #4b8b8b;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #f4ecec;
|
||||
color: #585050;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-seaside-dark.scss
generated
vendored
Normal file
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-seaside-dark.scss
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/* Base16 Atelier Seaside Dark - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Seaside Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #809980;
|
||||
}
|
||||
|
||||
/* Atelier-Seaside Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #e6193c;
|
||||
}
|
||||
|
||||
/* Atelier-Seaside Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #87711d;
|
||||
}
|
||||
|
||||
/* Atelier-Seaside Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #29a329;
|
||||
}
|
||||
|
||||
/* Atelier-Seaside Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #3d62f5;
|
||||
}
|
||||
|
||||
/* Atelier-Seaside Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #ad2bee;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #131513;
|
||||
color: #8ca68c;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-seaside-light.scss
generated
vendored
Normal file
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-seaside-light.scss
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/* Base16 Atelier Seaside Light - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Seaside Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #687d68;
|
||||
}
|
||||
|
||||
/* Atelier-Seaside Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #e6193c;
|
||||
}
|
||||
|
||||
/* Atelier-Seaside Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #87711d;
|
||||
}
|
||||
|
||||
/* Atelier-Seaside Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #29a329;
|
||||
}
|
||||
|
||||
/* Atelier-Seaside Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #3d62f5;
|
||||
}
|
||||
|
||||
/* Atelier-Seaside Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #ad2bee;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #f4fbf4;
|
||||
color: #5e6e5e;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-sulphurpool-dark.scss
generated
vendored
Normal file
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-sulphurpool-dark.scss
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/* Base16 Atelier Sulphurpool Dark - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Sulphurpool Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #898ea4;
|
||||
}
|
||||
|
||||
/* Atelier-Sulphurpool Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #c94922;
|
||||
}
|
||||
|
||||
/* Atelier-Sulphurpool Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #c76b29;
|
||||
}
|
||||
|
||||
/* Atelier-Sulphurpool Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #ac9739;
|
||||
}
|
||||
|
||||
/* Atelier-Sulphurpool Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #3d8fd1;
|
||||
}
|
||||
|
||||
/* Atelier-Sulphurpool Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #6679cc;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #202746;
|
||||
color: #979db4;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-sulphurpool-light.scss
generated
vendored
Normal file
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atelier-sulphurpool-light.scss
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/* Base16 Atelier Sulphurpool Light - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Sulphurpool Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #6b7394;
|
||||
}
|
||||
|
||||
/* Atelier-Sulphurpool Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #c94922;
|
||||
}
|
||||
|
||||
/* Atelier-Sulphurpool Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #c76b29;
|
||||
}
|
||||
|
||||
/* Atelier-Sulphurpool Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #ac9739;
|
||||
}
|
||||
|
||||
/* Atelier-Sulphurpool Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #3d8fd1;
|
||||
}
|
||||
|
||||
/* Atelier-Sulphurpool Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #6679cc;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #f5f7ff;
|
||||
color: #5e6687;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
96
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atom-one-dark.scss
generated
vendored
Normal file
96
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atom-one-dark.scss
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
|
||||
Atom One Dark by Daniel Gamage
|
||||
Original One Dark Syntax theme from https://github.com/atom/one-dark-syntax
|
||||
|
||||
base: #282c34
|
||||
mono-1: #abb2bf
|
||||
mono-2: #818896
|
||||
mono-3: #5c6370
|
||||
hue-1: #56b6c2
|
||||
hue-2: #61aeee
|
||||
hue-3: #c678dd
|
||||
hue-4: #98c379
|
||||
hue-5: #e06c75
|
||||
hue-5-2: #be5046
|
||||
hue-6: #d19a66
|
||||
hue-6-2: #e6c07b
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
color: #abb2bf;
|
||||
background: #282c34;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #5c6370;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-doctag,
|
||||
.hljs-keyword,
|
||||
.hljs-formula {
|
||||
color: #c678dd;
|
||||
}
|
||||
|
||||
.hljs-section,
|
||||
.hljs-name,
|
||||
.hljs-selector-tag,
|
||||
.hljs-deletion,
|
||||
.hljs-subst {
|
||||
color: #e06c75;
|
||||
}
|
||||
|
||||
.hljs-literal {
|
||||
color: #56b6c2;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-regexp,
|
||||
.hljs-addition,
|
||||
.hljs-attribute,
|
||||
.hljs-meta-string {
|
||||
color: #98c379;
|
||||
}
|
||||
|
||||
.hljs-built_in,
|
||||
.hljs-class .hljs-title {
|
||||
color: #e6c07b;
|
||||
}
|
||||
|
||||
.hljs-attr,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-type,
|
||||
.hljs-selector-class,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-number {
|
||||
color: #d19a66;
|
||||
}
|
||||
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-link,
|
||||
.hljs-meta,
|
||||
.hljs-selector-id,
|
||||
.hljs-title {
|
||||
color: #61aeee;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-link {
|
||||
text-decoration: underline;
|
||||
}
|
||||
96
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atom-one-light.scss
generated
vendored
Normal file
96
frontend/node_modules/lowlight/node_modules/highlight.js/scss/atom-one-light.scss
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
|
||||
Atom One Light by Daniel Gamage
|
||||
Original One Light Syntax theme from https://github.com/atom/one-light-syntax
|
||||
|
||||
base: #fafafa
|
||||
mono-1: #383a42
|
||||
mono-2: #686b77
|
||||
mono-3: #a0a1a7
|
||||
hue-1: #0184bb
|
||||
hue-2: #4078f2
|
||||
hue-3: #a626a4
|
||||
hue-4: #50a14f
|
||||
hue-5: #e45649
|
||||
hue-5-2: #c91243
|
||||
hue-6: #986801
|
||||
hue-6-2: #c18401
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
color: #383a42;
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #a0a1a7;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-doctag,
|
||||
.hljs-keyword,
|
||||
.hljs-formula {
|
||||
color: #a626a4;
|
||||
}
|
||||
|
||||
.hljs-section,
|
||||
.hljs-name,
|
||||
.hljs-selector-tag,
|
||||
.hljs-deletion,
|
||||
.hljs-subst {
|
||||
color: #e45649;
|
||||
}
|
||||
|
||||
.hljs-literal {
|
||||
color: #0184bb;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-regexp,
|
||||
.hljs-addition,
|
||||
.hljs-attribute,
|
||||
.hljs-meta-string {
|
||||
color: #50a14f;
|
||||
}
|
||||
|
||||
.hljs-built_in,
|
||||
.hljs-class .hljs-title {
|
||||
color: #c18401;
|
||||
}
|
||||
|
||||
.hljs-attr,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-type,
|
||||
.hljs-selector-class,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-number {
|
||||
color: #986801;
|
||||
}
|
||||
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-link,
|
||||
.hljs-meta,
|
||||
.hljs-selector-id,
|
||||
.hljs-title {
|
||||
color: #4078f2;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-link {
|
||||
text-decoration: underline;
|
||||
}
|
||||
60
frontend/node_modules/lowlight/node_modules/highlight.js/scss/codepen-embed.scss
generated
vendored
Normal file
60
frontend/node_modules/lowlight/node_modules/highlight.js/scss/codepen-embed.scss
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
codepen.io Embed Theme
|
||||
Author: Justin Perry <http://github.com/ourmaninamsterdam>
|
||||
Original theme - https://github.com/chriskempson/tomorrow-theme
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #222;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-tag,
|
||||
.hljs-regexp,
|
||||
.hljs-meta,
|
||||
.hljs-number,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-params,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-link,
|
||||
.hljs-deletion {
|
||||
color: #ab875d;
|
||||
}
|
||||
|
||||
.hljs-section,
|
||||
.hljs-title,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-type,
|
||||
.hljs-attribute {
|
||||
color: #9b869b;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-addition {
|
||||
color: #8f9c6c;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
97
frontend/node_modules/lowlight/node_modules/highlight.js/scss/docco.scss
generated
vendored
Normal file
97
frontend/node_modules/lowlight/node_modules/highlight.js/scss/docco.scss
generated
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine (@thingsinjars)
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
color: #000;
|
||||
background: #f8f8ff;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #408080;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-literal,
|
||||
.hljs-subst {
|
||||
color: #954121;
|
||||
}
|
||||
|
||||
.hljs-number {
|
||||
color: #40a070;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-doctag {
|
||||
color: #219161;
|
||||
}
|
||||
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-section,
|
||||
.hljs-type {
|
||||
color: #19469d;
|
||||
}
|
||||
|
||||
.hljs-params {
|
||||
color: #00f;
|
||||
}
|
||||
|
||||
.hljs-title {
|
||||
color: #458;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-attribute {
|
||||
color: #000080;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.hljs-variable,
|
||||
.hljs-template-variable {
|
||||
color: #008080;
|
||||
}
|
||||
|
||||
.hljs-regexp,
|
||||
.hljs-link {
|
||||
color: #b68;
|
||||
}
|
||||
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #990073;
|
||||
}
|
||||
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name {
|
||||
color: #0086b3;
|
||||
}
|
||||
|
||||
.hljs-meta {
|
||||
color: #999;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background: #fdd;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background: #dfd;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
71
frontend/node_modules/lowlight/node_modules/highlight.js/scss/far.scss
generated
vendored
Normal file
71
frontend/node_modules/lowlight/node_modules/highlight.js/scss/far.scss
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
|
||||
FAR Style (c) MajestiC <majestic2k@gmail.com>
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #000080;
|
||||
}
|
||||
|
||||
.hljs,
|
||||
.hljs-subst {
|
||||
color: #0ff;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-attribute,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-template-tag,
|
||||
.hljs-template-variable,
|
||||
.hljs-addition {
|
||||
color: #ff0;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-section,
|
||||
.hljs-type,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-variable {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote,
|
||||
.hljs-doctag,
|
||||
.hljs-deletion {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.hljs-number,
|
||||
.hljs-regexp,
|
||||
.hljs-literal,
|
||||
.hljs-link {
|
||||
color: #0f0;
|
||||
}
|
||||
|
||||
.hljs-meta {
|
||||
color: #008080;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-name,
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
89
frontend/node_modules/lowlight/node_modules/highlight.js/scss/foundation.scss
generated
vendored
Normal file
89
frontend/node_modules/lowlight/node_modules/highlight.js/scss/foundation.scss
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
Description: Foundation 4 docs style for highlight.js
|
||||
Author: Dan Allen <dan.j.allen@gmail.com>
|
||||
Website: http://foundation.zurb.com/docs/
|
||||
Version: 1.0
|
||||
Date: 2013-04-02
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #eee;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.hljs-link,
|
||||
.hljs-emphasis,
|
||||
.hljs-attribute,
|
||||
.hljs-addition {
|
||||
color: #070;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong,
|
||||
.hljs-string,
|
||||
.hljs-deletion {
|
||||
color: #d14;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-quote,
|
||||
.hljs-comment {
|
||||
color: #998;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-section,
|
||||
.hljs-title {
|
||||
color: #900;
|
||||
}
|
||||
|
||||
.hljs-class .hljs-title,
|
||||
.hljs-type {
|
||||
color: #458;
|
||||
}
|
||||
|
||||
.hljs-variable,
|
||||
.hljs-template-variable {
|
||||
color: #336699;
|
||||
}
|
||||
|
||||
.hljs-bullet {
|
||||
color: #997700;
|
||||
}
|
||||
|
||||
.hljs-meta {
|
||||
color: #3344bb;
|
||||
}
|
||||
|
||||
.hljs-code,
|
||||
.hljs-number,
|
||||
.hljs-literal,
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #099;
|
||||
}
|
||||
|
||||
.hljs-regexp {
|
||||
background-color: #fff0ff;
|
||||
color: #880088;
|
||||
}
|
||||
|
||||
.hljs-symbol {
|
||||
color: #990073;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #007700;
|
||||
}
|
||||
89
frontend/node_modules/lowlight/node_modules/highlight.js/scss/googlecode.scss
generated
vendored
Normal file
89
frontend/node_modules/lowlight/node_modules/highlight.js/scss/googlecode.scss
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
|
||||
Google Code style (c) Aahan Krish <geekpanth3r@gmail.com>
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: white;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #800;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-section,
|
||||
.hljs-title,
|
||||
.hljs-name {
|
||||
color: #008;
|
||||
}
|
||||
|
||||
.hljs-variable,
|
||||
.hljs-template-variable {
|
||||
color: #660;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-regexp {
|
||||
color: #080;
|
||||
}
|
||||
|
||||
.hljs-literal,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-meta,
|
||||
.hljs-number,
|
||||
.hljs-link {
|
||||
color: #066;
|
||||
}
|
||||
|
||||
.hljs-title,
|
||||
.hljs-doctag,
|
||||
.hljs-type,
|
||||
.hljs-attr,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-params {
|
||||
color: #606;
|
||||
}
|
||||
|
||||
.hljs-attribute,
|
||||
.hljs-subst {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.hljs-formula {
|
||||
background-color: #eee;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #9B703F
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background-color: #baeeba;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background-color: #ffc8bd;
|
||||
}
|
||||
|
||||
.hljs-doctag,
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
108
frontend/node_modules/lowlight/node_modules/highlight.js/scss/gruvbox-dark.scss
generated
vendored
Normal file
108
frontend/node_modules/lowlight/node_modules/highlight.js/scss/gruvbox-dark.scss
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
|
||||
Gruvbox style (dark) (c) Pavel Pertsev (original style at https://github.com/morhetz/gruvbox)
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #282828;
|
||||
}
|
||||
|
||||
.hljs,
|
||||
.hljs-subst {
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
/* Gruvbox Red */
|
||||
.hljs-deletion,
|
||||
.hljs-formula,
|
||||
.hljs-keyword,
|
||||
.hljs-link,
|
||||
.hljs-selector-tag {
|
||||
color: #fb4934;
|
||||
}
|
||||
|
||||
/* Gruvbox Blue */
|
||||
.hljs-built_in,
|
||||
.hljs-emphasis,
|
||||
.hljs-name,
|
||||
.hljs-quote,
|
||||
.hljs-strong,
|
||||
.hljs-title,
|
||||
.hljs-variable {
|
||||
color: #83a598;
|
||||
}
|
||||
|
||||
/* Gruvbox Yellow */
|
||||
.hljs-attr,
|
||||
.hljs-params,
|
||||
.hljs-template-tag,
|
||||
.hljs-type {
|
||||
color: #fabd2f;
|
||||
}
|
||||
|
||||
/* Gruvbox Purple */
|
||||
.hljs-builtin-name,
|
||||
.hljs-doctag,
|
||||
.hljs-literal,
|
||||
.hljs-number {
|
||||
color: #8f3f71;
|
||||
}
|
||||
|
||||
/* Gruvbox Orange */
|
||||
.hljs-code,
|
||||
.hljs-meta,
|
||||
.hljs-regexp,
|
||||
.hljs-selector-id,
|
||||
.hljs-template-variable {
|
||||
color: #fe8019;
|
||||
}
|
||||
|
||||
/* Gruvbox Green */
|
||||
.hljs-addition,
|
||||
.hljs-meta-string,
|
||||
.hljs-section,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-class,
|
||||
.hljs-string,
|
||||
.hljs-symbol {
|
||||
color: #b8bb26;
|
||||
}
|
||||
|
||||
/* Gruvbox Aqua */
|
||||
.hljs-attribute,
|
||||
.hljs-bullet,
|
||||
.hljs-class,
|
||||
.hljs-function,
|
||||
.hljs-function .hljs-keyword,
|
||||
.hljs-meta-keyword,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-tag {
|
||||
color: #8ec07c;
|
||||
}
|
||||
|
||||
/* Gruvbox Gray */
|
||||
.hljs-comment {
|
||||
color: #928374;
|
||||
}
|
||||
|
||||
/* Gruvbox Purple */
|
||||
.hljs-link_label,
|
||||
.hljs-literal,
|
||||
.hljs-number {
|
||||
color: #d3869b;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-section,
|
||||
.hljs-strong,
|
||||
.hljs-tag {
|
||||
font-weight: bold;
|
||||
}
|
||||
111
frontend/node_modules/lowlight/node_modules/highlight.js/scss/isbl-editor-light.scss
generated
vendored
Normal file
111
frontend/node_modules/lowlight/node_modules/highlight.js/scss/isbl-editor-light.scss
generated
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
|
||||
ISBL Editor style light color schemec (c) Dmitriy Tarasov <dimatar@gmail.com>
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: white;
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* Base color: saturation 0; */
|
||||
|
||||
.hljs-subst {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.hljs-comment {
|
||||
color: #555555;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-attribute,
|
||||
.hljs-selector-tag,
|
||||
.hljs-meta-keyword,
|
||||
.hljs-doctag,
|
||||
.hljs-name {
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
/* User color: hue: 0 */
|
||||
|
||||
.hljs-string {
|
||||
color: #000080;
|
||||
}
|
||||
|
||||
.hljs-type,
|
||||
.hljs-number,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-quote,
|
||||
.hljs-template-tag,
|
||||
.hljs-deletion {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #fb2c00;
|
||||
}
|
||||
|
||||
.hljs-title>.hljs-built_in {
|
||||
color: #008080;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.hljs-regexp,
|
||||
.hljs-symbol,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-link,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo {
|
||||
color: #5e1700;
|
||||
}
|
||||
|
||||
/* Language color: hue: 90; */
|
||||
|
||||
.hljs-built_in,
|
||||
.hljs-literal {
|
||||
color: #000080;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-bullet,
|
||||
.hljs-code,
|
||||
.hljs-addition {
|
||||
color: #397300;
|
||||
}
|
||||
|
||||
.hljs-class {
|
||||
color: #6f1C00;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Meta color: hue: 200 */
|
||||
|
||||
.hljs-meta {
|
||||
color: #1f7199;
|
||||
}
|
||||
|
||||
.hljs-meta-string {
|
||||
color: #4d99bf;
|
||||
}
|
||||
|
||||
|
||||
/* Misc effects */
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
74
frontend/node_modules/lowlight/node_modules/highlight.js/scss/kimbie.light.scss
generated
vendored
Normal file
74
frontend/node_modules/lowlight/node_modules/highlight.js/scss/kimbie.light.scss
generated
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
Name: Kimbie (light)
|
||||
Author: Jan T. Sott
|
||||
License: Creative Commons Attribution-ShareAlike 4.0 Unported License
|
||||
URL: https://github.com/idleberg/Kimbie-highlight.js
|
||||
*/
|
||||
|
||||
/* Kimbie Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #a57a4c;
|
||||
}
|
||||
|
||||
/* Kimbie Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-regexp,
|
||||
.hljs-meta {
|
||||
color: #dc3958;
|
||||
}
|
||||
|
||||
/* Kimbie Orange */
|
||||
.hljs-number,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params,
|
||||
.hljs-deletion,
|
||||
.hljs-link {
|
||||
color: #f79a32;
|
||||
}
|
||||
|
||||
/* Kimbie Yellow */
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-attribute {
|
||||
color: #f06431;
|
||||
}
|
||||
|
||||
/* Kimbie Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-addition {
|
||||
color: #889b4a;
|
||||
}
|
||||
|
||||
/* Kimbie Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-function {
|
||||
color: #98676a;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #fbebd4;
|
||||
color: #84613d;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
88
frontend/node_modules/lowlight/node_modules/highlight.js/scss/lioshi.scss
generated
vendored
Normal file
88
frontend/node_modules/lowlight/node_modules/highlight.js/scss/lioshi.scss
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
/* lioshi Theme */
|
||||
/* Original theme - https://github.com/lioshi/vscode-lioshi-theme */
|
||||
|
||||
/* Comment */
|
||||
.hljs-comment {
|
||||
color: #8d8d8d;
|
||||
}
|
||||
|
||||
/* quote */
|
||||
.hljs-quote {
|
||||
color: #b3c7d8;
|
||||
}
|
||||
|
||||
/* Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-regexp,
|
||||
.hljs-deletion {
|
||||
color: #cc6666;
|
||||
}
|
||||
|
||||
/* Orange */
|
||||
.hljs-number,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-subst
|
||||
.hljs-link {
|
||||
color: #de935f;
|
||||
}
|
||||
|
||||
/* Yellow */
|
||||
.hljs-attribute {
|
||||
color: #f0c674;
|
||||
}
|
||||
|
||||
/* Green */
|
||||
.hljs-string,
|
||||
.hljs-bullet,
|
||||
.hljs-params,
|
||||
.hljs-addition {
|
||||
color: #b5bd68;
|
||||
}
|
||||
|
||||
/* Blue */
|
||||
.hljs-title,
|
||||
.hljs-meta,
|
||||
.hljs-section {
|
||||
color: #81a2be;
|
||||
}
|
||||
|
||||
/* Purple */
|
||||
.hljs-selector-tag,
|
||||
.hljs-keyword,
|
||||
.hljs-function,
|
||||
.hljs-class {
|
||||
color: #be94bb;
|
||||
}
|
||||
|
||||
/* Purple light */
|
||||
.hljs-symbol {
|
||||
color: #dbc4d9;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #303030;
|
||||
color: #c5c8c6;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
71
frontend/node_modules/lowlight/node_modules/highlight.js/scss/monokai.scss
generated
vendored
Normal file
71
frontend/node_modules/lowlight/node_modules/highlight.js/scss/monokai.scss
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
Monokai style - ported by Luigi Maselli - http://grigio.org
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #272822;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-literal,
|
||||
.hljs-strong,
|
||||
.hljs-name {
|
||||
color: #f92672;
|
||||
}
|
||||
|
||||
.hljs-code {
|
||||
color: #66d9ef;
|
||||
}
|
||||
|
||||
.hljs-class .hljs-title {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.hljs-attribute,
|
||||
.hljs-symbol,
|
||||
.hljs-regexp,
|
||||
.hljs-link {
|
||||
color: #bf79db;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-bullet,
|
||||
.hljs-subst,
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-emphasis,
|
||||
.hljs-type,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-addition,
|
||||
.hljs-variable,
|
||||
.hljs-template-tag,
|
||||
.hljs-template-variable {
|
||||
color: #a6e22e;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote,
|
||||
.hljs-deletion,
|
||||
.hljs-meta {
|
||||
color: #75715e;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-literal,
|
||||
.hljs-doctag,
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-type,
|
||||
.hljs-selector-id {
|
||||
font-weight: bold;
|
||||
}
|
||||
106
frontend/node_modules/lowlight/node_modules/highlight.js/scss/nnfx-dark.scss
generated
vendored
Normal file
106
frontend/node_modules/lowlight/node_modules/highlight.js/scss/nnfx-dark.scss
generated
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
/**
|
||||
* nnfx dark - a theme inspired by Netscape Navigator/Firefox
|
||||
*
|
||||
* @version 1.0.0
|
||||
* @author (c) 2020 Jim Mason <jmason@ibinx.com>
|
||||
* @license https://creativecommons.org/licenses/by-sa/4.0 CC BY-SA 4.0
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #333;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.xml .hljs-meta {
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
color: #69f;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
font-style: italic;
|
||||
color: #9c6;
|
||||
}
|
||||
|
||||
.hljs-name,
|
||||
.hljs-keyword {
|
||||
color: #a7a;
|
||||
}
|
||||
|
||||
.hljs-name,
|
||||
.hljs-attr {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-string {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.hljs-variable,
|
||||
.hljs-template-variable {
|
||||
color: #588;
|
||||
}
|
||||
|
||||
.hljs-code,
|
||||
.hljs-string,
|
||||
.hljs-meta-string,
|
||||
.hljs-number,
|
||||
.hljs-regexp,
|
||||
.hljs-link {
|
||||
color: #bce;
|
||||
}
|
||||
|
||||
.hljs-title,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name {
|
||||
color: #d40;
|
||||
}
|
||||
|
||||
.hljs-section,
|
||||
.hljs-meta {
|
||||
color: #a85;
|
||||
}
|
||||
|
||||
.hljs-class .hljs-title,
|
||||
.hljs-type {
|
||||
color: #96c;
|
||||
}
|
||||
|
||||
.hljs-function .hljs-title,
|
||||
.hljs-attr,
|
||||
.hljs-subst {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.hljs-formula {
|
||||
background-color: #eee;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background-color: #797;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background-color: #c99;
|
||||
}
|
||||
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #964;
|
||||
}
|
||||
|
||||
.hljs-doctag,
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
88
frontend/node_modules/lowlight/node_modules/highlight.js/scss/obsidian.scss
generated
vendored
Normal file
88
frontend/node_modules/lowlight/node_modules/highlight.js/scss/obsidian.scss
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* Obsidian style
|
||||
* ported by Alexander Marenin (http://github.com/ioncreature)
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #282b2e;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-literal,
|
||||
.hljs-selector-id {
|
||||
color: #93c763;
|
||||
}
|
||||
|
||||
.hljs-number {
|
||||
color: #ffcd22;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
color: #e0e2e4;
|
||||
}
|
||||
|
||||
.hljs-attribute {
|
||||
color: #668bb0;
|
||||
}
|
||||
|
||||
.hljs-code,
|
||||
.hljs-class .hljs-title,
|
||||
.hljs-section {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.hljs-regexp,
|
||||
.hljs-link {
|
||||
color: #d39745;
|
||||
}
|
||||
|
||||
.hljs-meta {
|
||||
color: #557182;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-bullet,
|
||||
.hljs-subst,
|
||||
.hljs-emphasis,
|
||||
.hljs-type,
|
||||
.hljs-built_in,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-addition,
|
||||
.hljs-variable,
|
||||
.hljs-template-tag,
|
||||
.hljs-template-variable {
|
||||
color: #8cbbad;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-symbol {
|
||||
color: #ec7600;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote,
|
||||
.hljs-deletion {
|
||||
color: #818e96;
|
||||
}
|
||||
|
||||
.hljs-selector-class {
|
||||
color: #A082BD
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-literal,
|
||||
.hljs-doctag,
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-type,
|
||||
.hljs-name,
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
74
frontend/node_modules/lowlight/node_modules/highlight.js/scss/ocean.scss
generated
vendored
Normal file
74
frontend/node_modules/lowlight/node_modules/highlight.js/scss/ocean.scss
generated
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
/* Ocean Dark Theme */
|
||||
/* https://github.com/gavsiu */
|
||||
/* Original theme - https://github.com/chriskempson/base16 */
|
||||
|
||||
/* Ocean Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #65737e;
|
||||
}
|
||||
|
||||
/* Ocean Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-regexp,
|
||||
.hljs-deletion {
|
||||
color: #bf616a;
|
||||
}
|
||||
|
||||
/* Ocean Orange */
|
||||
.hljs-number,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params,
|
||||
.hljs-meta,
|
||||
.hljs-link {
|
||||
color: #d08770;
|
||||
}
|
||||
|
||||
/* Ocean Yellow */
|
||||
.hljs-attribute {
|
||||
color: #ebcb8b;
|
||||
}
|
||||
|
||||
/* Ocean Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-addition {
|
||||
color: #a3be8c;
|
||||
}
|
||||
|
||||
/* Ocean Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #8fa1b3;
|
||||
}
|
||||
|
||||
/* Ocean Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #b48ead;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #2b303b;
|
||||
color: #c0c5ce;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
72
frontend/node_modules/lowlight/node_modules/highlight.js/scss/paraiso-dark.scss
generated
vendored
Normal file
72
frontend/node_modules/lowlight/node_modules/highlight.js/scss/paraiso-dark.scss
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
Paraíso (dark)
|
||||
Created by Jan T. Sott (http://github.com/idleberg)
|
||||
Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
|
||||
*/
|
||||
|
||||
/* Paraíso Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #8d8687;
|
||||
}
|
||||
|
||||
/* Paraíso Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-meta {
|
||||
color: #ef6155;
|
||||
}
|
||||
|
||||
/* Paraíso Orange */
|
||||
.hljs-number,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params,
|
||||
.hljs-deletion {
|
||||
color: #f99b15;
|
||||
}
|
||||
|
||||
/* Paraíso Yellow */
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-attribute {
|
||||
color: #fec418;
|
||||
}
|
||||
|
||||
/* Paraíso Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-addition {
|
||||
color: #48b685;
|
||||
}
|
||||
|
||||
/* Paraíso Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #815ba4;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #2f1e2e;
|
||||
color: #a39e9b;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
96
frontend/node_modules/lowlight/node_modules/highlight.js/scss/purebasic.scss
generated
vendored
Normal file
96
frontend/node_modules/lowlight/node_modules/highlight.js/scss/purebasic.scss
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
|
||||
PureBASIC native IDE style ( version 1.0 - April 2016 )
|
||||
|
||||
by Tristano Ajmone <tajmone@gmail.com>
|
||||
|
||||
Public Domain
|
||||
|
||||
NOTE_1: PureBASIC code syntax highlighting only applies the following classes:
|
||||
.hljs-comment
|
||||
.hljs-function
|
||||
.hljs-keywords
|
||||
.hljs-string
|
||||
.hljs-symbol
|
||||
|
||||
Other classes are added here for the benefit of styling other languages with the look and feel of PureBASIC native IDE style.
|
||||
If you need to customize a stylesheet for PureBASIC only, remove all non-relevant classes -- PureBASIC-related classes are followed by
|
||||
a "--- used for PureBASIC ... ---" comment on same line.
|
||||
|
||||
NOTE_2: Color names provided in comments were derived using "Name that Color" online tool:
|
||||
http://chir.ag/projects/name-that-color
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #FFFFDF; /* Half and Half (approx.) */
|
||||
/* --- Uncomment to add PureBASIC native IDE styled font!
|
||||
font-family: Consolas;
|
||||
*/
|
||||
}
|
||||
|
||||
.hljs, /* --- used for PureBASIC base color --- */
|
||||
.hljs-type, /* --- used for PureBASIC Procedures return type --- */
|
||||
.hljs-function, /* --- used for wrapping PureBASIC Procedures definitions --- */
|
||||
.hljs-name,
|
||||
.hljs-number,
|
||||
.hljs-attr,
|
||||
.hljs-params,
|
||||
.hljs-subst {
|
||||
color: #000000; /* Black */
|
||||
}
|
||||
|
||||
.hljs-comment, /* --- used for PureBASIC Comments --- */
|
||||
.hljs-regexp,
|
||||
.hljs-section,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-addition {
|
||||
color: #00AAAA; /* Persian Green (approx.) */
|
||||
}
|
||||
|
||||
.hljs-title, /* --- used for PureBASIC Procedures Names --- */
|
||||
.hljs-tag,
|
||||
.hljs-variable,
|
||||
.hljs-code {
|
||||
color: #006666; /* Blue Stone (approx.) */
|
||||
}
|
||||
|
||||
.hljs-keyword, /* --- used for PureBASIC Keywords --- */
|
||||
.hljs-class,
|
||||
.hljs-meta-keyword,
|
||||
.hljs-selector-class,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name {
|
||||
color: #006666; /* Blue Stone (approx.) */
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-string, /* --- used for PureBASIC Strings --- */
|
||||
.hljs-selector-attr {
|
||||
color: #0080FF; /* Azure Radiance (approx.) */
|
||||
}
|
||||
|
||||
.hljs-symbol, /* --- used for PureBASIC Constants --- */
|
||||
.hljs-link,
|
||||
.hljs-deletion,
|
||||
.hljs-attribute {
|
||||
color: #924B72; /* Cannon Pink (approx.) */
|
||||
}
|
||||
|
||||
.hljs-meta,
|
||||
.hljs-literal,
|
||||
.hljs-selector-id {
|
||||
color: #924B72; /* Cannon Pink (approx.) */
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-strong,
|
||||
.hljs-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
83
frontend/node_modules/lowlight/node_modules/highlight.js/scss/qtcreator_dark.scss
generated
vendored
Normal file
83
frontend/node_modules/lowlight/node_modules/highlight.js/scss/qtcreator_dark.scss
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
|
||||
Qt Creator dark color scheme
|
||||
|
||||
*/
|
||||
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #000000;
|
||||
}
|
||||
|
||||
.hljs,
|
||||
.hljs-subst,
|
||||
.hljs-tag,
|
||||
.hljs-title {
|
||||
color: #aaaaaa;
|
||||
}
|
||||
|
||||
.hljs-strong,
|
||||
.hljs-emphasis {
|
||||
color: #a8a8a2;
|
||||
}
|
||||
|
||||
.hljs-bullet,
|
||||
.hljs-quote,
|
||||
.hljs-number,
|
||||
.hljs-regexp,
|
||||
.hljs-literal {
|
||||
color: #ff55ff;
|
||||
}
|
||||
|
||||
.hljs-code
|
||||
.hljs-selector-class {
|
||||
color: #aaaaff;
|
||||
}
|
||||
|
||||
.hljs-emphasis,
|
||||
.hljs-stronge,
|
||||
.hljs-type {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-function,
|
||||
.hljs-section,
|
||||
.hljs-symbol,
|
||||
.hljs-name {
|
||||
color: #ffff55;
|
||||
}
|
||||
|
||||
.hljs-attribute {
|
||||
color: #ff5555;
|
||||
}
|
||||
|
||||
.hljs-variable,
|
||||
.hljs-params,
|
||||
.hljs-class .hljs-title {
|
||||
color: #8888ff;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-type,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-template-tag,
|
||||
.hljs-template-variable,
|
||||
.hljs-addition,
|
||||
.hljs-link {
|
||||
color: #ff55ff;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-meta,
|
||||
.hljs-deletion {
|
||||
color: #55ffff;
|
||||
}
|
||||
108
frontend/node_modules/lowlight/node_modules/highlight.js/scss/routeros.scss
generated
vendored
Normal file
108
frontend/node_modules/lowlight/node_modules/highlight.js/scss/routeros.scss
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
|
||||
highlight.js style for Microtik RouterOS script
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #F0F0F0;
|
||||
}
|
||||
|
||||
/* Base color: saturation 0; */
|
||||
|
||||
.hljs,
|
||||
.hljs-subst {
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.hljs-comment {
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-meta-keyword,
|
||||
.hljs-doctag,
|
||||
.hljs-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-attribute {
|
||||
color: #0E9A00;
|
||||
}
|
||||
|
||||
.hljs-function {
|
||||
color: #99069A;
|
||||
}
|
||||
|
||||
.hljs-builtin-name {
|
||||
color: #99069A;
|
||||
}
|
||||
|
||||
/* User color: hue: 0 */
|
||||
|
||||
.hljs-type,
|
||||
.hljs-string,
|
||||
.hljs-number,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-quote,
|
||||
.hljs-template-tag,
|
||||
.hljs-deletion {
|
||||
color: #880000;
|
||||
}
|
||||
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #880000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-regexp,
|
||||
.hljs-symbol,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-link,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo {
|
||||
color: #BC6060;
|
||||
}
|
||||
|
||||
|
||||
/* Language color: hue: 90; */
|
||||
|
||||
.hljs-literal {
|
||||
color: #78A960;
|
||||
}
|
||||
|
||||
.hljs-built_in,
|
||||
.hljs-bullet,
|
||||
.hljs-code,
|
||||
.hljs-addition {
|
||||
color: #0C9A9A;
|
||||
}
|
||||
|
||||
|
||||
/* Meta color: hue: 200 */
|
||||
|
||||
.hljs-meta {
|
||||
color: #1f7199;
|
||||
}
|
||||
|
||||
.hljs-meta-string {
|
||||
color: #4d99bf;
|
||||
}
|
||||
|
||||
|
||||
/* Misc effects */
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/school-book.scss
generated
vendored
Normal file
69
frontend/node_modules/lowlight/node_modules/highlight.js/scss/school-book.scss
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
|
||||
School Book style from goldblog.com.ua (c) Zaripov Yura <yur4ik7@ukr.net>
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 15px 0.5em 0.5em 30px;
|
||||
font-size: 11px;
|
||||
line-height:16px;
|
||||
background:#f6f6ae url(./school-book.png);
|
||||
border-top: solid 2px #d2e8b9;
|
||||
border-bottom: solid 1px #d2e8b9;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-literal {
|
||||
color:#005599;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.hljs,
|
||||
.hljs-subst {
|
||||
color: #3e5915;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-type,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-attribute,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-addition,
|
||||
.hljs-variable,
|
||||
.hljs-template-tag,
|
||||
.hljs-template-variable,
|
||||
.hljs-link {
|
||||
color: #2c009f;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote,
|
||||
.hljs-deletion,
|
||||
.hljs-meta {
|
||||
color: #e60415;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-literal,
|
||||
.hljs-doctag,
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-type,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
84
frontend/node_modules/lowlight/node_modules/highlight.js/scss/solarized-dark.scss
generated
vendored
Normal file
84
frontend/node_modules/lowlight/node_modules/highlight.js/scss/solarized-dark.scss
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
|
||||
Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #002b36;
|
||||
color: #839496;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #586e75;
|
||||
}
|
||||
|
||||
/* Solarized Green */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-addition {
|
||||
color: #859900;
|
||||
}
|
||||
|
||||
/* Solarized Cyan */
|
||||
.hljs-number,
|
||||
.hljs-string,
|
||||
.hljs-meta .hljs-meta-string,
|
||||
.hljs-literal,
|
||||
.hljs-doctag,
|
||||
.hljs-regexp {
|
||||
color: #2aa198;
|
||||
}
|
||||
|
||||
/* Solarized Blue */
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #268bd2;
|
||||
}
|
||||
|
||||
/* Solarized Yellow */
|
||||
.hljs-attribute,
|
||||
.hljs-attr,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-class .hljs-title,
|
||||
.hljs-type {
|
||||
color: #b58900;
|
||||
}
|
||||
|
||||
/* Solarized Orange */
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-subst,
|
||||
.hljs-meta,
|
||||
.hljs-meta .hljs-keyword,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-link {
|
||||
color: #cb4b16;
|
||||
}
|
||||
|
||||
/* Solarized Red */
|
||||
.hljs-built_in,
|
||||
.hljs-deletion {
|
||||
color: #dc322f;
|
||||
}
|
||||
|
||||
.hljs-formula {
|
||||
background: #073642;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
78
frontend/node_modules/lowlight/node_modules/highlight.js/scss/stackoverflow-dark.scss
generated
vendored
Normal file
78
frontend/node_modules/lowlight/node_modules/highlight.js/scss/stackoverflow-dark.scss
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
/*!
|
||||
* StackOverflow.com dark style
|
||||
*
|
||||
* @stackoverflow/stacks v0.56.0
|
||||
* https://github.com/StackExchange/Stacks
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
color: #ffffff;
|
||||
background: #1c1b1b;
|
||||
}
|
||||
|
||||
.hljs-comment {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-meta-keyword,
|
||||
.hljs-doctag,
|
||||
.hljs-section,
|
||||
.hljs-selector-class,
|
||||
.hljs-meta,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-attr {
|
||||
color: #88aece;
|
||||
}
|
||||
|
||||
.hljs-attribute {
|
||||
color: v#c59bc1;
|
||||
}
|
||||
|
||||
.hljs-name,
|
||||
.hljs-type,
|
||||
.hljs-number,
|
||||
.hljs-selector-id,
|
||||
.hljs-quote,
|
||||
.hljs-template-tag,
|
||||
.hljs-built_in,
|
||||
.hljs-title,
|
||||
.hljs-literal {
|
||||
color: #f08d49;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-regexp,
|
||||
.hljs-symbol,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-link,
|
||||
.hljs-selector-attr,
|
||||
.hljs-meta-string {
|
||||
color: #b5bd68;
|
||||
}
|
||||
|
||||
.hljs-bullet,
|
||||
.hljs-code {
|
||||
color: #cccccc;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
color: #de7176;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
color: #76c490;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
92
frontend/node_modules/lowlight/node_modules/highlight.js/scss/xt256.scss
generated
vendored
Normal file
92
frontend/node_modules/lowlight/node_modules/highlight.js/scss/xt256.scss
generated
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
|
||||
/*
|
||||
xt256.css
|
||||
|
||||
Contact: initbar [at] protonmail [dot] ch
|
||||
: github.com/initbar
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
color: #eaeaea;
|
||||
background: #000;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-subst {
|
||||
color: #eaeaea;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-builtin-name,
|
||||
.hljs-type {
|
||||
color: #eaeaea;
|
||||
}
|
||||
|
||||
.hljs-params {
|
||||
color: #da0000;
|
||||
}
|
||||
|
||||
.hljs-literal,
|
||||
.hljs-number,
|
||||
.hljs-name {
|
||||
color: #ff0000;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.hljs-comment {
|
||||
color: #969896;
|
||||
}
|
||||
|
||||
.hljs-selector-id,
|
||||
.hljs-quote {
|
||||
color: #00ffff;
|
||||
}
|
||||
|
||||
.hljs-template-variable,
|
||||
.hljs-variable,
|
||||
.hljs-title {
|
||||
color: #00ffff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-selector-class,
|
||||
.hljs-keyword,
|
||||
.hljs-symbol {
|
||||
color: #fff000;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-bullet {
|
||||
color: #00ff00;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
.hljs-section {
|
||||
color: #000fff;
|
||||
}
|
||||
|
||||
.hljs-selector-tag {
|
||||
color: #000fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-attribute,
|
||||
.hljs-built_in,
|
||||
.hljs-regexp,
|
||||
.hljs-link {
|
||||
color: #ff00ff;
|
||||
}
|
||||
|
||||
.hljs-meta {
|
||||
color: #fff;
|
||||
font-weight: bolder;
|
||||
}
|
||||
99
frontend/node_modules/lowlight/node_modules/highlight.js/styles/a11y-dark.css
generated
vendored
Normal file
99
frontend/node_modules/lowlight/node_modules/highlight.js/styles/a11y-dark.css
generated
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
/* a11y-dark theme */
|
||||
/* Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */
|
||||
/* @author: ericwbailey */
|
||||
|
||||
/* Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #d4d0ab;
|
||||
}
|
||||
|
||||
/* Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-regexp,
|
||||
.hljs-deletion {
|
||||
color: #ffa07a;
|
||||
}
|
||||
|
||||
/* Orange */
|
||||
.hljs-number,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params,
|
||||
.hljs-meta,
|
||||
.hljs-link {
|
||||
color: #f5ab35;
|
||||
}
|
||||
|
||||
/* Yellow */
|
||||
.hljs-attribute {
|
||||
color: #ffd700;
|
||||
}
|
||||
|
||||
/* Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-addition {
|
||||
color: #abe338;
|
||||
}
|
||||
|
||||
/* Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #00e0e0;
|
||||
}
|
||||
|
||||
/* Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #dcc6e0;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #2b2b2b;
|
||||
color: #f8f8f2;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@media screen and (-ms-high-contrast: active) {
|
||||
.hljs-addition,
|
||||
.hljs-attribute,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-bullet,
|
||||
.hljs-comment,
|
||||
.hljs-link,
|
||||
.hljs-literal,
|
||||
.hljs-meta,
|
||||
.hljs-number,
|
||||
.hljs-params,
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-type,
|
||||
.hljs-quote {
|
||||
color: highlight;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
73
frontend/node_modules/lowlight/node_modules/highlight.js/styles/arta.css
generated
vendored
Normal file
73
frontend/node_modules/lowlight/node_modules/highlight.js/styles/arta.css
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
Date: 17.V.2011
|
||||
Author: pumbur <pumbur@pumbur.net>
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #222;
|
||||
}
|
||||
|
||||
.hljs,
|
||||
.hljs-subst {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.hljs-section {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote,
|
||||
.hljs-meta {
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-regexp {
|
||||
color: #ffcc33;
|
||||
}
|
||||
|
||||
.hljs-number,
|
||||
.hljs-addition {
|
||||
color: #00cc66;
|
||||
}
|
||||
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-link {
|
||||
color: #32aaee;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #6644aa;
|
||||
}
|
||||
|
||||
.hljs-title,
|
||||
.hljs-variable,
|
||||
.hljs-deletion,
|
||||
.hljs-template-tag {
|
||||
color: #bb1166;
|
||||
}
|
||||
|
||||
.hljs-section,
|
||||
.hljs-doctag,
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
45
frontend/node_modules/lowlight/node_modules/highlight.js/styles/ascetic.css
generated
vendored
Normal file
45
frontend/node_modules/lowlight/node_modules/highlight.js/styles/ascetic.css
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
|
||||
Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: white;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-section,
|
||||
.hljs-addition,
|
||||
.hljs-attribute,
|
||||
.hljs-link {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote,
|
||||
.hljs-meta,
|
||||
.hljs-deletion {
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-section,
|
||||
.hljs-name,
|
||||
.hljs-type,
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
83
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-cave-dark.css
generated
vendored
Normal file
83
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-cave-dark.css
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
/* Base16 Atelier Cave Dark - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Cave Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #7e7887;
|
||||
}
|
||||
|
||||
/* Atelier-Cave Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #be4678;
|
||||
}
|
||||
|
||||
/* Atelier-Cave Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #aa573c;
|
||||
}
|
||||
|
||||
/* Atelier-Cave Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #2a9292;
|
||||
}
|
||||
|
||||
/* Atelier-Cave Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #576ddb;
|
||||
}
|
||||
|
||||
/* Atelier-Cave Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #955ae7;
|
||||
}
|
||||
|
||||
.hljs-deletion,
|
||||
.hljs-addition {
|
||||
color: #19171c;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background-color: #be4678;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background-color: #2a9292;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #19171c;
|
||||
color: #8b8792;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
69
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-dune-dark.css
generated
vendored
Normal file
69
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-dune-dark.css
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/* Base16 Atelier Dune Dark - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Dune Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #999580;
|
||||
}
|
||||
|
||||
/* Atelier-Dune Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #d73737;
|
||||
}
|
||||
|
||||
/* Atelier-Dune Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #b65611;
|
||||
}
|
||||
|
||||
/* Atelier-Dune Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #60ac39;
|
||||
}
|
||||
|
||||
/* Atelier-Dune Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #6684e1;
|
||||
}
|
||||
|
||||
/* Atelier-Dune Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #b854d4;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #20201d;
|
||||
color: #a6a28c;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
84
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-estuary-dark.css
generated
vendored
Normal file
84
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-estuary-dark.css
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
/* Base16 Atelier Estuary Dark - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/estuary) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Estuary Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #878573;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #ba6236;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #ae7313;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #7d9726;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #36a166;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #5f9182;
|
||||
}
|
||||
|
||||
.hljs-deletion,
|
||||
.hljs-addition {
|
||||
color: #22221b;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background-color: #ba6236;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background-color: #7d9726;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #22221b;
|
||||
color: #929181;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
84
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-estuary-light.css
generated
vendored
Normal file
84
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-estuary-light.css
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
/* Base16 Atelier Estuary Light - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/estuary) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Estuary Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #6c6b5a;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #ba6236;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #ae7313;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #7d9726;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #36a166;
|
||||
}
|
||||
|
||||
/* Atelier-Estuary Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #5f9182;
|
||||
}
|
||||
|
||||
.hljs-deletion,
|
||||
.hljs-addition {
|
||||
color: #22221b;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background-color: #ba6236;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background-color: #7d9726;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #f4f3ec;
|
||||
color: #5f5e4e;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
69
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-heath-dark.css
generated
vendored
Normal file
69
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-heath-dark.css
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/* Base16 Atelier Heath Dark - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Heath Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #9e8f9e;
|
||||
}
|
||||
|
||||
/* Atelier-Heath Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #ca402b;
|
||||
}
|
||||
|
||||
/* Atelier-Heath Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #a65926;
|
||||
}
|
||||
|
||||
/* Atelier-Heath Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #918b3b;
|
||||
}
|
||||
|
||||
/* Atelier-Heath Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #516aec;
|
||||
}
|
||||
|
||||
/* Atelier-Heath Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #7b59c0;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #1b181b;
|
||||
color: #ab9bab;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
69
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-lakeside-dark.css
generated
vendored
Normal file
69
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-lakeside-dark.css
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/* Base16 Atelier Lakeside Dark - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Lakeside Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #7195a8;
|
||||
}
|
||||
|
||||
/* Atelier-Lakeside Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #d22d72;
|
||||
}
|
||||
|
||||
/* Atelier-Lakeside Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #935c25;
|
||||
}
|
||||
|
||||
/* Atelier-Lakeside Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #568c3b;
|
||||
}
|
||||
|
||||
/* Atelier-Lakeside Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #257fad;
|
||||
}
|
||||
|
||||
/* Atelier-Lakeside Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #6b6bb8;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #161b1d;
|
||||
color: #7ea2b4;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
69
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-lakeside-light.css
generated
vendored
Normal file
69
frontend/node_modules/lowlight/node_modules/highlight.js/styles/atelier-lakeside-light.css
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/* Base16 Atelier Lakeside Light - Theme */
|
||||
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside) */
|
||||
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
|
||||
|
||||
/* Atelier-Lakeside Comment */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #5a7b8c;
|
||||
}
|
||||
|
||||
/* Atelier-Lakeside Red */
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute,
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-link,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class {
|
||||
color: #d22d72;
|
||||
}
|
||||
|
||||
/* Atelier-Lakeside Orange */
|
||||
.hljs-number,
|
||||
.hljs-meta,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-literal,
|
||||
.hljs-type,
|
||||
.hljs-params {
|
||||
color: #935c25;
|
||||
}
|
||||
|
||||
/* Atelier-Lakeside Green */
|
||||
.hljs-string,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet {
|
||||
color: #568c3b;
|
||||
}
|
||||
|
||||
/* Atelier-Lakeside Blue */
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #257fad;
|
||||
}
|
||||
|
||||
/* Atelier-Lakeside Purple */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #6b6bb8;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #ebf8ff;
|
||||
color: #516d7b;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user