@canopycanopycanopy/b-ber-markdown-renderer 3.0.8-nav-memo.4 → 3.0.8-next.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/README.md +13 -4
  2. package/dist/index.d.ts +14 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +97 -77
  5. package/package.json +28 -28
  6. package/dist/highlightjs/highlight.js +0 -821
  7. package/dist/highlightjs/index.js +0 -191
  8. package/dist/highlightjs/languages/1c.js +0 -216
  9. package/dist/highlightjs/languages/abnf.js +0 -41
  10. package/dist/highlightjs/languages/accesslog.js +0 -41
  11. package/dist/highlightjs/languages/actionscript.js +0 -55
  12. package/dist/highlightjs/languages/ada.js +0 -157
  13. package/dist/highlightjs/languages/angelscript.js +0 -94
  14. package/dist/highlightjs/languages/apache.js +0 -44
  15. package/dist/highlightjs/languages/applescript.js +0 -44
  16. package/dist/highlightjs/languages/arcade.js +0 -108
  17. package/dist/highlightjs/languages/arduino.js +0 -13
  18. package/dist/highlightjs/languages/armasm.js +0 -91
  19. package/dist/highlightjs/languages/asciidoc.js +0 -174
  20. package/dist/highlightjs/languages/aspectj.js +0 -99
  21. package/dist/highlightjs/languages/autohotkey.js +0 -57
  22. package/dist/highlightjs/languages/autoit.js +0 -105
  23. package/dist/highlightjs/languages/avrasm.js +0 -42
  24. package/dist/highlightjs/languages/awk.js +0 -46
  25. package/dist/highlightjs/languages/axapta.js +0 -21
  26. package/dist/highlightjs/languages/bash.js +0 -64
  27. package/dist/highlightjs/languages/basic.js +0 -36
  28. package/dist/highlightjs/languages/bnf.js +0 -26
  29. package/dist/highlightjs/languages/brainfuck.js +0 -29
  30. package/dist/highlightjs/languages/cal.js +0 -65
  31. package/dist/highlightjs/languages/capnproto.js +0 -42
  32. package/dist/highlightjs/languages/ceylon.js +0 -60
  33. package/dist/highlightjs/languages/clean.js +0 -16
  34. package/dist/highlightjs/languages/clojure-repl.js +0 -14
  35. package/dist/highlightjs/languages/clojure.js +0 -69
  36. package/dist/highlightjs/languages/cmake.js +0 -26
  37. package/dist/highlightjs/languages/coffeescript.js +0 -139
  38. package/dist/highlightjs/languages/coq.js +0 -19
  39. package/dist/highlightjs/languages/cos.js +0 -111
  40. package/dist/highlightjs/languages/cpp.js +0 -144
  41. package/dist/highlightjs/languages/crmsh.js +0 -72
  42. package/dist/highlightjs/languages/crystal.js +0 -233
  43. package/dist/highlightjs/languages/cs.js +0 -162
  44. package/dist/highlightjs/languages/csp.js +0 -21
  45. package/dist/highlightjs/languages/css.js +0 -90
  46. package/dist/highlightjs/languages/d.js +0 -213
  47. package/dist/highlightjs/languages/dart.js +0 -84
  48. package/dist/highlightjs/languages/delphi.js +0 -60
  49. package/dist/highlightjs/languages/diff.js +0 -51
  50. package/dist/highlightjs/languages/django.js +0 -39
  51. package/dist/highlightjs/languages/dns.js +0 -28
  52. package/dist/highlightjs/languages/dockerfile.js +0 -17
  53. package/dist/highlightjs/languages/dos.js +0 -38
  54. package/dist/highlightjs/languages/dsconfig.js +0 -48
  55. package/dist/highlightjs/languages/dts.js +0 -92
  56. package/dist/highlightjs/languages/dust.js +0 -31
  57. package/dist/highlightjs/languages/ebnf.js +0 -24
  58. package/dist/highlightjs/languages/elixir.js +0 -85
  59. package/dist/highlightjs/languages/elm.js +0 -77
  60. package/dist/highlightjs/languages/erb.js +0 -14
  61. package/dist/highlightjs/languages/erlang-repl.js +0 -33
  62. package/dist/highlightjs/languages/erlang.js +0 -114
  63. package/dist/highlightjs/languages/excel.js +0 -44
  64. package/dist/highlightjs/languages/fix.js +0 -27
  65. package/dist/highlightjs/languages/flix.js +0 -33
  66. package/dist/highlightjs/languages/fortran.js +0 -38
  67. package/dist/highlightjs/languages/fsharp.js +0 -49
  68. package/dist/highlightjs/languages/gams.js +0 -100
  69. package/dist/highlightjs/languages/gauss.js +0 -147
  70. package/dist/highlightjs/languages/gcode.js +0 -57
  71. package/dist/highlightjs/languages/gherkin.js +0 -31
  72. package/dist/highlightjs/languages/glsl.js +0 -28
  73. package/dist/highlightjs/languages/gml.js +0 -17
  74. package/dist/highlightjs/languages/go.js +0 -44
  75. package/dist/highlightjs/languages/golo.js +0 -14
  76. package/dist/highlightjs/languages/gradle.js +0 -11
  77. package/dist/highlightjs/languages/groovy.js +0 -73
  78. package/dist/highlightjs/languages/haml.js +0 -79
  79. package/dist/highlightjs/languages/handlebars.js +0 -32
  80. package/dist/highlightjs/languages/haskell.js +0 -102
  81. package/dist/highlightjs/languages/haxe.js +0 -125
  82. package/dist/highlightjs/languages/hsp.js +0 -33
  83. package/dist/highlightjs/languages/htmlbars.js +0 -66
  84. package/dist/highlightjs/languages/http.js +0 -49
  85. package/dist/highlightjs/languages/hy.js +0 -73
  86. package/dist/highlightjs/languages/inform7.js +0 -52
  87. package/dist/highlightjs/languages/ini.js +0 -59
  88. package/dist/highlightjs/languages/irpf90.js +0 -43
  89. package/dist/highlightjs/languages/isbl.js +0 -526
  90. package/dist/highlightjs/languages/java.js +0 -75
  91. package/dist/highlightjs/languages/javascript.js +0 -149
  92. package/dist/highlightjs/languages/jboss-cli.js +0 -43
  93. package/dist/highlightjs/languages/json.js +0 -44
  94. package/dist/highlightjs/languages/julia-repl.js +0 -23
  95. package/dist/highlightjs/languages/julia.js +0 -125
  96. package/dist/highlightjs/languages/kotlin.js +0 -167
  97. package/dist/highlightjs/languages/lasso.js +0 -126
  98. package/dist/highlightjs/languages/ldif.js +0 -30
  99. package/dist/highlightjs/languages/leaf.js +0 -33
  100. package/dist/highlightjs/languages/less.js +0 -167
  101. package/dist/highlightjs/languages/lisp.js +0 -101
  102. package/dist/highlightjs/languages/livecodeserver.js +0 -66
  103. package/dist/highlightjs/languages/livescript.js +0 -138
  104. package/dist/highlightjs/languages/llvm.js +0 -54
  105. package/dist/highlightjs/languages/lsl.js +0 -55
  106. package/dist/highlightjs/languages/lua.js +0 -51
  107. package/dist/highlightjs/languages/makefile.js +0 -65
  108. package/dist/highlightjs/languages/markdown.js +0 -111
  109. package/dist/highlightjs/languages/mathematica.js +0 -22
  110. package/dist/highlightjs/languages/matlab.js +0 -70
  111. package/dist/highlightjs/languages/maxima.js +0 -44
  112. package/dist/highlightjs/languages/mel.js +0 -17
  113. package/dist/highlightjs/languages/mercury.js +0 -63
  114. package/dist/highlightjs/languages/mipsasm.js +0 -86
  115. package/dist/highlightjs/languages/mizar.js +0 -8
  116. package/dist/highlightjs/languages/mojolicious.js +0 -25
  117. package/dist/highlightjs/languages/monkey.js +0 -53
  118. package/dist/highlightjs/languages/moonscript.js +0 -108
  119. package/dist/highlightjs/languages/n1ql.js +0 -39
  120. package/dist/highlightjs/languages/nginx.js +0 -100
  121. package/dist/highlightjs/languages/nimrod.js +0 -46
  122. package/dist/highlightjs/languages/nix.js +0 -42
  123. package/dist/highlightjs/languages/nsis.js +0 -73
  124. package/dist/highlightjs/languages/objectivec.js +0 -59
  125. package/dist/highlightjs/languages/ocaml.js +0 -54
  126. package/dist/highlightjs/languages/openscad.js +0 -54
  127. package/dist/highlightjs/languages/oxygene.js +0 -49
  128. package/dist/highlightjs/languages/parser3.js +0 -31
  129. package/dist/highlightjs/languages/perl.js +0 -124
  130. package/dist/highlightjs/languages/pf.js +0 -32
  131. package/dist/highlightjs/languages/pgsql.js +0 -370
  132. package/dist/highlightjs/languages/php.js +0 -97
  133. package/dist/highlightjs/languages/plaintext.js +0 -7
  134. package/dist/highlightjs/languages/pony.js +0 -53
  135. package/dist/highlightjs/languages/powershell.js +0 -77
  136. package/dist/highlightjs/languages/processing.js +0 -15
  137. package/dist/highlightjs/languages/profile.js +0 -28
  138. package/dist/highlightjs/languages/prolog.js +0 -62
  139. package/dist/highlightjs/languages/properties.js +0 -62
  140. package/dist/highlightjs/languages/protobuf.js +0 -33
  141. package/dist/highlightjs/languages/puppet.js +0 -77
  142. package/dist/highlightjs/languages/purebasic.js +0 -51
  143. package/dist/highlightjs/languages/python.js +0 -110
  144. package/dist/highlightjs/languages/q.js +0 -16
  145. package/dist/highlightjs/languages/qml.js +0 -136
  146. package/dist/highlightjs/languages/r.js +0 -56
  147. package/dist/highlightjs/languages/reasonml.js +0 -214
  148. package/dist/highlightjs/languages/rib.js +0 -9
  149. package/dist/highlightjs/languages/roboconf.js +0 -51
  150. package/dist/highlightjs/languages/routeros.js +0 -183
  151. package/dist/highlightjs/languages/rsl.js +0 -23
  152. package/dist/highlightjs/languages/ruby.js +0 -181
  153. package/dist/highlightjs/languages/ruleslanguage.js +0 -21
  154. package/dist/highlightjs/languages/rust.js +0 -91
  155. package/dist/highlightjs/languages/sas.js +0 -49
  156. package/dist/highlightjs/languages/scala.js +0 -96
  157. package/dist/highlightjs/languages/scheme.js +0 -103
  158. package/dist/highlightjs/languages/scilab.js +0 -46
  159. package/dist/highlightjs/languages/scss.js +0 -76
  160. package/dist/highlightjs/languages/shell.js +0 -15
  161. package/dist/highlightjs/languages/smali.js +0 -48
  162. package/dist/highlightjs/languages/smalltalk.js +0 -41
  163. package/dist/highlightjs/languages/sml.js +0 -51
  164. package/dist/highlightjs/languages/sqf.js +0 -50
  165. package/dist/highlightjs/languages/sql.js +0 -40
  166. package/dist/highlightjs/languages/stan.js +0 -56
  167. package/dist/highlightjs/languages/stata.js +0 -28
  168. package/dist/highlightjs/languages/step21.js +0 -41
  169. package/dist/highlightjs/languages/stylus.js +0 -124
  170. package/dist/highlightjs/languages/subunit.js +0 -34
  171. package/dist/highlightjs/languages/swift.js +0 -90
  172. package/dist/highlightjs/languages/taggerscript.js +0 -35
  173. package/dist/highlightjs/languages/tap.js +0 -38
  174. package/dist/highlightjs/languages/tcl.js +0 -38
  175. package/dist/highlightjs/languages/tex.js +0 -56
  176. package/dist/highlightjs/languages/thrift.js +0 -29
  177. package/dist/highlightjs/languages/tp.js +0 -58
  178. package/dist/highlightjs/languages/twig.js +0 -55
  179. package/dist/highlightjs/languages/typescript.js +0 -120
  180. package/dist/highlightjs/languages/vala.js +0 -41
  181. package/dist/highlightjs/languages/vbnet.js +0 -53
  182. package/dist/highlightjs/languages/vbscript-html.js +0 -12
  183. package/dist/highlightjs/languages/vbscript.js +0 -21
  184. package/dist/highlightjs/languages/verilog.js +0 -44
  185. package/dist/highlightjs/languages/vhdl.js +0 -40
  186. package/dist/highlightjs/languages/vim.js +0 -53
  187. package/dist/highlightjs/languages/x86asm.js +0 -110
  188. package/dist/highlightjs/languages/xl.js +0 -55
  189. package/dist/highlightjs/languages/xml.js +0 -128
  190. package/dist/highlightjs/languages/xquery.js +0 -134
  191. package/dist/highlightjs/languages/yaml.js +0 -95
  192. package/dist/highlightjs/languages/zephir.js +0 -77
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var LITERAL = {
5
- className: 'literal',
6
- begin: '[\\+\\-]',
7
- relevance: 0
8
- };
9
- return {
10
- aliases: ['bf'],
11
- contains: [hljs.COMMENT('[^\\[\\]\\.,\\+\\-<> \r\n]', '[\\[\\]\\.,\\+\\-<> \r\n]', {
12
- returnEnd: true,
13
- relevance: 0
14
- }), {
15
- className: 'title',
16
- begin: '[\\[\\]]',
17
- relevance: 0
18
- }, {
19
- className: 'string',
20
- begin: '[\\.,]',
21
- relevance: 0
22
- }, {
23
- // this mode works as the only relevance counter
24
- begin: /\+\+|\-\-/,
25
- returnBegin: true,
26
- contains: [LITERAL]
27
- }, LITERAL]
28
- };
29
- };
@@ -1,65 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
- var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
5
- module.exports = function (hljs) {
6
- var _context;
7
- var KEYWORDS = 'div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to ' + 'until while with var';
8
- var LITERALS = 'false true';
9
- var COMMENT_MODES = [hljs.C_LINE_COMMENT_MODE, hljs.COMMENT(/\{/, /\}/, {
10
- relevance: 0
11
- }), hljs.COMMENT(/\(\*/, /\*\)/, {
12
- relevance: 10
13
- })];
14
- var STRING = {
15
- className: 'string',
16
- begin: /'/,
17
- end: /'/,
18
- contains: [{
19
- begin: /''/
20
- }]
21
- };
22
- var CHAR_STRING = {
23
- className: 'string',
24
- begin: /(#\d+)+/
25
- };
26
- var DATE = {
27
- className: 'number',
28
- begin: '\\b\\d+(\\.\\d+)?(DT|D|T)',
29
- relevance: 0
30
- };
31
- var DBL_QUOTED_VARIABLE = {
32
- className: 'string',
33
- // not a string technically but makes sense to be highlighted in the same style
34
- begin: '"',
35
- end: '"'
36
- };
37
- var PROCEDURE = {
38
- className: 'function',
39
- beginKeywords: 'procedure',
40
- end: /[:;]/,
41
- keywords: 'procedure|10',
42
- contains: (0, _concat.default)(_context = [hljs.TITLE_MODE, {
43
- className: 'params',
44
- begin: /\(/,
45
- end: /\)/,
46
- keywords: KEYWORDS,
47
- contains: [STRING, CHAR_STRING]
48
- }]).call(_context, COMMENT_MODES)
49
- };
50
- var OBJECT = {
51
- className: 'class',
52
- begin: 'OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)',
53
- returnBegin: true,
54
- contains: [hljs.TITLE_MODE, PROCEDURE]
55
- };
56
- return {
57
- case_insensitive: true,
58
- keywords: {
59
- keyword: KEYWORDS,
60
- literal: LITERALS
61
- },
62
- illegal: /\/\*/,
63
- contains: [STRING, CHAR_STRING, DATE, DBL_QUOTED_VARIABLE, hljs.NUMBER_MODE, OBJECT, PROCEDURE]
64
- };
65
- };
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- return {
5
- aliases: ['capnp'],
6
- keywords: {
7
- keyword: 'struct enum interface union group import using const annotation extends in of on as with from fixed',
8
- built_in: 'Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 ' + 'Text Data AnyPointer AnyStruct Capability List',
9
- literal: 'true false'
10
- },
11
- contains: [hljs.QUOTE_STRING_MODE, hljs.NUMBER_MODE, hljs.HASH_COMMENT_MODE, {
12
- className: 'meta',
13
- begin: /@0x[\w\d]{16};/,
14
- illegal: /\n/
15
- }, {
16
- className: 'symbol',
17
- begin: /@\d+\b/
18
- }, {
19
- className: 'class',
20
- beginKeywords: 'struct enum',
21
- end: /\{/,
22
- illegal: /\n/,
23
- contains: [hljs.inherit(hljs.TITLE_MODE, {
24
- starts: {
25
- endsWithParent: true,
26
- excludeEnd: true
27
- } // hack: eating everything after the first title
28
- })]
29
- }, {
30
- className: 'class',
31
- beginKeywords: 'interface',
32
- end: /\{/,
33
- illegal: /\n/,
34
- contains: [hljs.inherit(hljs.TITLE_MODE, {
35
- starts: {
36
- endsWithParent: true,
37
- excludeEnd: true
38
- } // hack: eating everything after the first title
39
- })]
40
- }]
41
- };
42
- };
@@ -1,60 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
- var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
5
- module.exports = function (hljs) {
6
- var _context;
7
- // 2.3. Identifiers and keywords
8
- var 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';
9
- // 7.4.1 Declaration Modifiers
10
- var DECLARATION_MODIFIERS = 'shared abstract formal default actual variable late native deprecated' + 'final sealed annotation suppressWarnings small';
11
- // 7.4.2 Documentation
12
- var DOCUMENTATION = 'doc by license see throws tagged';
13
- var SUBST = {
14
- className: 'subst',
15
- excludeBegin: true,
16
- excludeEnd: true,
17
- begin: /``/,
18
- end: /``/,
19
- keywords: KEYWORDS,
20
- relevance: 10
21
- };
22
- var EXPRESSIONS = [{
23
- // verbatim string
24
- className: 'string',
25
- begin: '"""',
26
- end: '"""',
27
- relevance: 10
28
- }, {
29
- // string literal or template
30
- className: 'string',
31
- begin: '"',
32
- end: '"',
33
- contains: [SUBST]
34
- }, {
35
- // character literal
36
- className: 'string',
37
- begin: "'",
38
- end: "'"
39
- }, {
40
- // numeric literal
41
- className: 'number',
42
- begin: '#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?',
43
- relevance: 0
44
- }];
45
- SUBST.contains = EXPRESSIONS;
46
- return {
47
- keywords: {
48
- keyword: KEYWORDS + ' ' + DECLARATION_MODIFIERS,
49
- meta: DOCUMENTATION
50
- },
51
- illegal: '\\$[^01]|#[^0-9a-fA-F]',
52
- contains: (0, _concat.default)(_context = [hljs.C_LINE_COMMENT_MODE, hljs.COMMENT('/\\*', '\\*/', {
53
- contains: ['self']
54
- }), {
55
- // compiler annotation
56
- className: 'meta',
57
- begin: '@[a-z]\\w*(?:\\:\"[^\"]*\")?'
58
- }]).call(_context, EXPRESSIONS)
59
- };
60
- };
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- return {
5
- aliases: ['clean', 'icl', 'dcl'],
6
- keywords: {
7
- keyword: 'if let in with where case of class instance otherwise ' + 'implementation definition system module from import qualified as ' + 'special code inline foreign export ccall stdcall generic derive ' + 'infix infixl infixr',
8
- built_in: 'Int Real Char Bool',
9
- literal: 'True False'
10
- },
11
- contains: [hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE, hljs.C_NUMBER_MODE, {
12
- begin: '->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>'
13
- } // relevance booster
14
- ]
15
- };
16
- };
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- return {
5
- contains: [{
6
- className: 'meta',
7
- begin: /^([\w.-]+|\s*#_)?=>/,
8
- starts: {
9
- end: /$/,
10
- subLanguage: 'clojure'
11
- }
12
- }]
13
- };
14
- };
@@ -1,69 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var keywords = {
5
- 'builtin-name':
6
- // Clojure keywords
7
- 'def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - 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 defmacro defn defn- 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 defstruct first rest cons defprotocol cast coll deftype defrecord last butlast ' + 'sigs reify second ffirst fnext nfirst nnext defmulti defmethod 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'
8
- };
9
- var SYMBOLSTART = 'a-zA-Z_\\-!.?+*=<>&#\'';
10
- var SYMBOL_RE = '[' + SYMBOLSTART + '][' + SYMBOLSTART + '0-9/;:]*';
11
- var SIMPLE_NUMBER_RE = '[-+]?\\d+(\\.\\d+)?';
12
- var SYMBOL = {
13
- begin: SYMBOL_RE,
14
- relevance: 0
15
- };
16
- var NUMBER = {
17
- className: 'number',
18
- begin: SIMPLE_NUMBER_RE,
19
- relevance: 0
20
- };
21
- var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {
22
- illegal: null
23
- });
24
- var COMMENT = hljs.COMMENT(';', '$', {
25
- relevance: 0
26
- });
27
- var LITERAL = {
28
- className: 'literal',
29
- begin: /\b(true|false|nil)\b/
30
- };
31
- var COLLECTION = {
32
- begin: '[\\[\\{]',
33
- end: '[\\]\\}]'
34
- };
35
- var HINT = {
36
- className: 'comment',
37
- begin: '\\^' + SYMBOL_RE
38
- };
39
- var HINT_COL = hljs.COMMENT('\\^\\{', '\\}');
40
- var KEY = {
41
- className: 'symbol',
42
- begin: '[:]{1,2}' + SYMBOL_RE
43
- };
44
- var LIST = {
45
- begin: '\\(',
46
- end: '\\)'
47
- };
48
- var BODY = {
49
- endsWithParent: true,
50
- relevance: 0
51
- };
52
- var NAME = {
53
- keywords: keywords,
54
- lexemes: SYMBOL_RE,
55
- className: 'name',
56
- begin: SYMBOL_RE,
57
- starts: BODY
58
- };
59
- var DEFAULT_CONTAINS = [LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL, SYMBOL];
60
- LIST.contains = [hljs.COMMENT('comment', ''), NAME, BODY];
61
- BODY.contains = DEFAULT_CONTAINS;
62
- COLLECTION.contains = DEFAULT_CONTAINS;
63
- HINT_COL.contains = [COLLECTION];
64
- return {
65
- aliases: ['clj'],
66
- illegal: /\S/,
67
- contains: [LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL]
68
- };
69
- };
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- return {
5
- aliases: ['cmake.in'],
6
- case_insensitive: true,
7
- keywords: {
8
- keyword:
9
- // scripting commands
10
- '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 ' +
11
- // project commands
12
- '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 ' +
13
- // CTest commands
14
- '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 ' +
15
- // deprecated commands
16
- '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 ' +
17
- // core keywords
18
- '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'
19
- },
20
- contains: [{
21
- className: 'variable',
22
- begin: '\\${',
23
- end: '}'
24
- }, hljs.HASH_COMMENT_MODE, hljs.QUOTE_STRING_MODE, hljs.NUMBER_MODE]
25
- };
26
- };
@@ -1,139 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
- var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
5
- module.exports = function (hljs) {
6
- var _context;
7
- var KEYWORDS = {
8
- keyword:
9
- // JS keywords
10
- 'in if for while finally new do return else break catch instanceof throw try this ' + 'switch continue typeof delete debugger super yield import export from as default await ' +
11
- // Coffee keywords
12
- 'then unless until loop of by when and or is isnt not',
13
- literal:
14
- // JS literals
15
- 'true false null undefined ' +
16
- // Coffee literals
17
- 'yes no on off',
18
- built_in: 'npm require console print module global window document'
19
- };
20
- var JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';
21
- var SUBST = {
22
- className: 'subst',
23
- begin: /#\{/,
24
- end: /}/,
25
- keywords: KEYWORDS
26
- };
27
- var EXPRESSIONS = [hljs.BINARY_NUMBER_MODE, hljs.inherit(hljs.C_NUMBER_MODE, {
28
- starts: {
29
- end: '(\\s*/)?',
30
- relevance: 0
31
- }
32
- }),
33
- // a number tries to eat the following slash to prevent treating it as a regexp
34
- {
35
- className: 'string',
36
- variants: [{
37
- begin: /'''/,
38
- end: /'''/,
39
- contains: [hljs.BACKSLASH_ESCAPE]
40
- }, {
41
- begin: /'/,
42
- end: /'/,
43
- contains: [hljs.BACKSLASH_ESCAPE]
44
- }, {
45
- begin: /"""/,
46
- end: /"""/,
47
- contains: [hljs.BACKSLASH_ESCAPE, SUBST]
48
- }, {
49
- begin: /"/,
50
- end: /"/,
51
- contains: [hljs.BACKSLASH_ESCAPE, SUBST]
52
- }]
53
- }, {
54
- className: 'regexp',
55
- variants: [{
56
- begin: '///',
57
- end: '///',
58
- contains: [SUBST, hljs.HASH_COMMENT_MODE]
59
- }, {
60
- begin: '//[gim]*',
61
- relevance: 0
62
- }, {
63
- // regex can't start with space to parse x / 2 / 3 as two divisions
64
- // regex can't start with *, and it supports an "illegal" in the main mode
65
- begin: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/
66
- }]
67
- }, {
68
- begin: '@' + JS_IDENT_RE // relevance booster
69
- }, {
70
- subLanguage: 'javascript',
71
- excludeBegin: true,
72
- excludeEnd: true,
73
- variants: [{
74
- begin: '```',
75
- end: '```'
76
- }, {
77
- begin: '`',
78
- end: '`'
79
- }]
80
- }];
81
- SUBST.contains = EXPRESSIONS;
82
- var TITLE = hljs.inherit(hljs.TITLE_MODE, {
83
- begin: JS_IDENT_RE
84
- });
85
- var PARAMS_RE = '(\\(.*\\))?\\s*\\B[-=]>';
86
- var PARAMS = {
87
- className: 'params',
88
- begin: '\\([^\\(]',
89
- returnBegin: true,
90
- /* We need another contained nameless mode to not have every nested
91
- pair of parens to be called "params" */
92
- contains: [{
93
- begin: /\(/,
94
- end: /\)/,
95
- keywords: KEYWORDS,
96
- contains: (0, _concat.default)(_context = ['self']).call(_context, EXPRESSIONS)
97
- }]
98
- };
99
- return {
100
- aliases: ['coffee', 'cson', 'iced'],
101
- keywords: KEYWORDS,
102
- illegal: /\/\*/,
103
- contains: (0, _concat.default)(EXPRESSIONS).call(EXPRESSIONS, [hljs.COMMENT('###', '###'), hljs.HASH_COMMENT_MODE, {
104
- className: 'function',
105
- begin: '^\\s*' + JS_IDENT_RE + '\\s*=\\s*' + PARAMS_RE,
106
- end: '[-=]>',
107
- returnBegin: true,
108
- contains: [TITLE, PARAMS]
109
- }, {
110
- // anonymous function start
111
- begin: /[:\(,=]\s*/,
112
- relevance: 0,
113
- contains: [{
114
- className: 'function',
115
- begin: PARAMS_RE,
116
- end: '[-=]>',
117
- returnBegin: true,
118
- contains: [PARAMS]
119
- }]
120
- }, {
121
- className: 'class',
122
- beginKeywords: 'class',
123
- end: '$',
124
- illegal: /[:="\[\]]/,
125
- contains: [{
126
- beginKeywords: 'extends',
127
- endsWithParent: true,
128
- illegal: /[:="\[\]]/,
129
- contains: [TITLE]
130
- }, TITLE]
131
- }, {
132
- begin: JS_IDENT_RE + ':',
133
- end: ':',
134
- returnBegin: true,
135
- returnEnd: true,
136
- relevance: 0
137
- }])
138
- };
139
- };
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- return {
5
- keywords: {
6
- keyword: '_ 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',
7
- 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'
8
- },
9
- contains: [hljs.QUOTE_STRING_MODE, hljs.COMMENT('\\(\\*', '\\*\\)'), hljs.C_NUMBER_MODE, {
10
- className: 'type',
11
- excludeBegin: true,
12
- begin: '\\|\\s*',
13
- end: '\\w+'
14
- }, {
15
- begin: /[-=]>/
16
- } // relevance booster
17
- ]
18
- };
19
- };
@@ -1,111 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function cos(hljs) {
4
- var STRINGS = {
5
- className: 'string',
6
- variants: [{
7
- begin: '"',
8
- end: '"',
9
- contains: [{
10
- // escaped
11
- begin: "\"\"",
12
- relevance: 0
13
- }]
14
- }]
15
- };
16
- var NUMBERS = {
17
- className: "number",
18
- begin: "\\b(\\d+(\\.\\d*)?|\\.\\d+)",
19
- relevance: 0
20
- };
21
- var COS_KEYWORDS = 'property parameter class classmethod clientmethod extends as break ' + 'catch close continue do d|0 else elseif for goto halt hang h|0 if job ' + 'j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 ' + 'tcommit throw trollback try tstart use view while write w|0 xecute x|0 ' + 'zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert ' + 'zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit ' + 'zsync ascii';
22
-
23
- // registered function - no need in them due to all functions are highlighted,
24
- // but I'll just leave this here.
25
-
26
- //"$bit", "$bitcount",
27
- //"$bitfind", "$bitlogic", "$case", "$char", "$classmethod", "$classname",
28
- //"$compile", "$data", "$decimal", "$double", "$extract", "$factor",
29
- //"$find", "$fnumber", "$get", "$increment", "$inumber", "$isobject",
30
- //"$isvaliddouble", "$isvalidnum", "$justify", "$length", "$list",
31
- //"$listbuild", "$listdata", "$listfind", "$listfromstring", "$listget",
32
- //"$listlength", "$listnext", "$listsame", "$listtostring", "$listvalid",
33
- //"$locate", "$match", "$method", "$name", "$nconvert", "$next",
34
- //"$normalize", "$now", "$number", "$order", "$parameter", "$piece",
35
- //"$prefetchoff", "$prefetchon", "$property", "$qlength", "$qsubscript",
36
- //"$query", "$random", "$replace", "$reverse", "$sconvert", "$select",
37
- //"$sortbegin", "$sortend", "$stack", "$text", "$translate", "$view",
38
- //"$wascii", "$wchar", "$wextract", "$wfind", "$wiswide", "$wlength",
39
- //"$wreverse", "$xecute", "$zabs", "$zarccos", "$zarcsin", "$zarctan",
40
- //"$zcos", "$zcot", "$zcsc", "$zdate", "$zdateh", "$zdatetime",
41
- //"$zdatetimeh", "$zexp", "$zhex", "$zln", "$zlog", "$zpower", "$zsec",
42
- //"$zsin", "$zsqr", "$ztan", "$ztime", "$ztimeh", "$zboolean",
43
- //"$zconvert", "$zcrc", "$zcyc", "$zdascii", "$zdchar", "$zf",
44
- //"$ziswide", "$zlascii", "$zlchar", "$zname", "$zposition", "$zqascii",
45
- //"$zqchar", "$zsearch", "$zseek", "$zstrip", "$zwascii", "$zwchar",
46
- //"$zwidth", "$zwpack", "$zwbpack", "$zwunpack", "$zwbunpack", "$zzenkaku",
47
- //"$change", "$mv", "$mvat", "$mvfmt", "$mvfmts", "$mviconv",
48
- //"$mviconvs", "$mvinmat", "$mvlover", "$mvoconv", "$mvoconvs", "$mvraise",
49
- //"$mvtrans", "$mvv", "$mvname", "$zbitand", "$zbitcount", "$zbitfind",
50
- //"$zbitget", "$zbitlen", "$zbitnot", "$zbitor", "$zbitset", "$zbitstr",
51
- //"$zbitxor", "$zincrement", "$znext", "$zorder", "$zprevious", "$zsort",
52
- //"device", "$ecode", "$estack", "$etrap", "$halt", "$horolog",
53
- //"$io", "$job", "$key", "$namespace", "$principal", "$quit", "$roles",
54
- //"$storage", "$system", "$test", "$this", "$tlevel", "$username",
55
- //"$x", "$y", "$za", "$zb", "$zchild", "$zeof", "$zeos", "$zerror",
56
- //"$zhorolog", "$zio", "$zjob", "$zmode", "$znspace", "$zparent", "$zpi",
57
- //"$zpos", "$zreference", "$zstorage", "$ztimestamp", "$ztimezone",
58
- //"$ztrap", "$zversion"
59
-
60
- return {
61
- case_insensitive: true,
62
- aliases: ["cos", "cls"],
63
- keywords: COS_KEYWORDS,
64
- contains: [NUMBERS, STRINGS, hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, {
65
- className: "comment",
66
- begin: /;/,
67
- end: "$",
68
- relevance: 0
69
- }, {
70
- // Functions and user-defined functions: write $ztime(60*60*3), $$myFunc(10), $$^Val(1)
71
- className: "built_in",
72
- begin: /(?:\$\$?|\.\.)\^?[a-zA-Z]+/
73
- }, {
74
- // Macro command: quit $$$OK
75
- className: "built_in",
76
- begin: /\$\$\$[a-zA-Z]+/
77
- }, {
78
- // Special (global) variables: write %request.Content; Built-in classes: %Library.Integer
79
- className: "built_in",
80
- begin: /%[a-z]+(?:\.[a-z]+)*/
81
- }, {
82
- // Global variable: set ^globalName = 12 write ^globalName
83
- className: "symbol",
84
- begin: /\^%?[a-zA-Z][\w]*/
85
- }, {
86
- // Some control constructions: do ##class(Package.ClassName).Method(), ##super()
87
- className: "keyword",
88
- begin: /##class|##super|#define|#dim/
89
- },
90
- // sub-languages: are not fully supported by hljs by 11/15/2015
91
- // left for the future implementation.
92
- {
93
- begin: /&sql\(/,
94
- end: /\)/,
95
- excludeBegin: true,
96
- excludeEnd: true,
97
- subLanguage: "sql"
98
- }, {
99
- begin: /&(js|jscript|javascript)</,
100
- end: />/,
101
- excludeBegin: true,
102
- excludeEnd: true,
103
- subLanguage: "javascript"
104
- }, {
105
- // this brakes first and last tag, but this is the only way to embed a valid html
106
- begin: /&html<\s*</,
107
- end: />\s*>/,
108
- subLanguage: "xml"
109
- }]
110
- };
111
- };