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

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,124 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
- var _reverse = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/reverse"));
5
- module.exports = function (hljs) {
6
- var VARIABLE = {
7
- className: 'variable',
8
- begin: '\\$' + hljs.IDENT_RE
9
- };
10
- var HEX_COLOR = {
11
- className: 'number',
12
- begin: '#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})'
13
- };
14
- var AT_KEYWORDS = ['charset', 'css', 'debug', 'extend', 'font-face', 'for', 'import', 'include', 'media', 'mixin', 'page', 'warn', 'while'];
15
- var PSEUDO_SELECTORS = ['after', 'before', 'first-letter', 'first-line', 'active', 'first-child', 'focus', 'hover', 'lang', 'link', 'visited'];
16
- var 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', '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'];
17
- var TAG_END = '[\\.\\s\\n\\[\\:,]';
18
- var 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-family', 'font-feature-settings', 'font-kerning', 'font-language-override', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-variant-ligatures', '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', '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'];
19
-
20
- // illegals
21
- var ILLEGAL = ['\\?', '(\\bReturn\\b)',
22
- // monkey
23
- '(\\bEnd\\b)',
24
- // monkey
25
- '(\\bend\\b)',
26
- // vbscript
27
- '(\\bdef\\b)',
28
- // gradle
29
- ';',
30
- // a whole lot of languages
31
- '#\\s',
32
- // markdown
33
- '\\*\\s',
34
- // markdown
35
- '===\\s',
36
- // markdown
37
- '\\|', '%' // prolog
38
- ];
39
- return {
40
- aliases: ['styl'],
41
- case_insensitive: false,
42
- keywords: 'if else for in',
43
- illegal: '(' + ILLEGAL.join('|') + ')',
44
- contains: [
45
- // strings
46
- hljs.QUOTE_STRING_MODE, hljs.APOS_STRING_MODE,
47
- // comments
48
- hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE,
49
- // hex colors
50
- HEX_COLOR,
51
- // class tag
52
- {
53
- begin: '\\.[a-zA-Z][a-zA-Z0-9_-]*' + TAG_END,
54
- returnBegin: true,
55
- contains: [{
56
- className: 'selector-class',
57
- begin: '\\.[a-zA-Z][a-zA-Z0-9_-]*'
58
- }]
59
- },
60
- // id tag
61
- {
62
- begin: '\\#[a-zA-Z][a-zA-Z0-9_-]*' + TAG_END,
63
- returnBegin: true,
64
- contains: [{
65
- className: 'selector-id',
66
- begin: '\\#[a-zA-Z][a-zA-Z0-9_-]*'
67
- }]
68
- },
69
- // tags
70
- {
71
- begin: '\\b(' + TAGS.join('|') + ')' + TAG_END,
72
- returnBegin: true,
73
- contains: [{
74
- className: 'selector-tag',
75
- begin: '\\b[a-zA-Z][a-zA-Z0-9_-]*'
76
- }]
77
- },
78
- // psuedo selectors
79
- {
80
- begin: '&?:?:\\b(' + PSEUDO_SELECTORS.join('|') + ')' + TAG_END
81
- },
82
- // @ keywords
83
- {
84
- begin: '\@(' + AT_KEYWORDS.join('|') + ')\\b'
85
- },
86
- // variables
87
- VARIABLE,
88
- // dimension
89
- hljs.CSS_NUMBER_MODE,
90
- // number
91
- hljs.NUMBER_MODE,
92
- // functions
93
- // - only from beginning of line + whitespace
94
- {
95
- className: 'function',
96
- begin: '^[a-zA-Z][a-zA-Z0-9_\-]*\\(.*\\)',
97
- illegal: '[\\n]',
98
- returnBegin: true,
99
- contains: [{
100
- className: 'title',
101
- begin: '\\b[a-zA-Z][a-zA-Z0-9_\-]*'
102
- }, {
103
- className: 'params',
104
- begin: /\(/,
105
- end: /\)/,
106
- contains: [HEX_COLOR, VARIABLE, hljs.APOS_STRING_MODE, hljs.CSS_NUMBER_MODE, hljs.NUMBER_MODE, hljs.QUOTE_STRING_MODE]
107
- }]
108
- },
109
- // attributes
110
- // - only from beginning of line + whitespace
111
- // - must have whitespace after it
112
- {
113
- className: 'attribute',
114
- begin: '\\b(' + (0, _reverse.default)(ATTRIBUTES).call(ATTRIBUTES).join('|') + ')\\b',
115
- starts: {
116
- // value container
117
- end: /;|$/,
118
- contains: [HEX_COLOR, VARIABLE, hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE, hljs.CSS_NUMBER_MODE, hljs.NUMBER_MODE, hljs.C_BLOCK_COMMENT_MODE],
119
- illegal: /\./,
120
- relevance: 0
121
- }
122
- }]
123
- };
124
- };
@@ -1,34 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var DETAILS = {
5
- className: 'string',
6
- begin: '\\[\n(multipart)?',
7
- end: '\\]\n'
8
- };
9
- var TIME = {
10
- className: 'string',
11
- begin: '\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}\.\\d+Z'
12
- };
13
- var PROGRESSVALUE = {
14
- className: 'string',
15
- begin: '(\\+|-)\\d+'
16
- };
17
- var KEYWORDS = {
18
- className: 'keyword',
19
- relevance: 10,
20
- variants: [{
21
- begin: '^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?'
22
- }, {
23
- begin: '^progress(:?)(\\s+)?(pop|push)?'
24
- }, {
25
- begin: '^tags:'
26
- }, {
27
- begin: '^time:'
28
- }]
29
- };
30
- return {
31
- case_insensitive: true,
32
- contains: [DETAILS, TIME, PROGRESSVALUE, KEYWORDS]
33
- };
34
- };
@@ -1,90 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var SWIFT_KEYWORDS = {
5
- keyword: '#available #colorLiteral #column #else #elseif #endif #file ' + '#fileLiteral #function #if #imageLiteral #line #selector #sourceLocation ' + '_ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype ' + 'associativity break case catch class continue convenience default defer deinit didSet do ' + 'dynamic dynamicType else enum extension fallthrough false fileprivate final for func ' + 'get guard if import in indirect infix init inout internal is lazy left let ' + 'mutating nil none nonmutating open operator optional override postfix precedence ' + 'prefix private protocol Protocol public repeat required rethrows return ' + 'right self Self set static struct subscript super switch throw throws true ' + 'try try! try? Type typealias unowned var weak where while willSet',
6
- literal: 'true false nil',
7
- built_in: 'abs advance alignof alignofValue anyGenerator assert assertionFailure ' + 'bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC ' + 'bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros ' + 'debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords ' + 'enumerate equal fatalError filter find getBridgedObjectiveCType getVaList ' + 'indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC ' + 'isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare ' + 'map max maxElement min minElement numericCast overlaps partition posix ' + 'precondition preconditionFailure print println quickSort readLine reduce reflect ' + 'reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split ' + 'startsWith stride strideof strideofValue swap toString transcode ' + 'underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap ' + 'unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer ' + 'withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers ' + 'withUnsafePointer withUnsafePointers withVaList zip'
8
- };
9
- var TYPE = {
10
- className: 'type',
11
- begin: '\\b[A-Z][\\w\u00C0-\u02B8\']*',
12
- relevance: 0
13
- };
14
- // slightly more special to swift
15
- var OPTIONAL_USING_TYPE = {
16
- className: 'type',
17
- begin: '\\b[A-Z][\\w\u00C0-\u02B8\']*[!?]'
18
- };
19
- var BLOCK_COMMENT = hljs.COMMENT('/\\*', '\\*/', {
20
- contains: ['self']
21
- });
22
- var SUBST = {
23
- className: 'subst',
24
- begin: /\\\(/,
25
- end: '\\)',
26
- keywords: SWIFT_KEYWORDS,
27
- contains: [] // assigned later
28
- };
29
- var STRING = {
30
- className: 'string',
31
- contains: [hljs.BACKSLASH_ESCAPE, SUBST],
32
- variants: [{
33
- begin: /"""/,
34
- end: /"""/
35
- }, {
36
- begin: /"/,
37
- end: /"/
38
- }]
39
- };
40
- var NUMBERS = {
41
- className: 'number',
42
- begin: '\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b',
43
- relevance: 0
44
- };
45
- SUBST.contains = [NUMBERS];
46
- return {
47
- keywords: SWIFT_KEYWORDS,
48
- contains: [STRING, hljs.C_LINE_COMMENT_MODE, BLOCK_COMMENT, OPTIONAL_USING_TYPE, TYPE, NUMBERS, {
49
- className: 'function',
50
- beginKeywords: 'func',
51
- end: '{',
52
- excludeEnd: true,
53
- contains: [hljs.inherit(hljs.TITLE_MODE, {
54
- begin: /[A-Za-z$_][0-9A-Za-z$_]*/
55
- }), {
56
- begin: /</,
57
- end: />/
58
- }, {
59
- className: 'params',
60
- begin: /\(/,
61
- end: /\)/,
62
- endsParent: true,
63
- keywords: SWIFT_KEYWORDS,
64
- contains: ['self', NUMBERS, STRING, hljs.C_BLOCK_COMMENT_MODE, {
65
- begin: ':'
66
- } // relevance booster
67
- ],
68
- illegal: /["']/
69
- }],
70
- illegal: /\[|%/
71
- }, {
72
- className: 'class',
73
- beginKeywords: 'struct protocol class extension enum',
74
- keywords: SWIFT_KEYWORDS,
75
- end: '\\{',
76
- excludeEnd: true,
77
- contains: [hljs.inherit(hljs.TITLE_MODE, {
78
- begin: /[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/
79
- })]
80
- }, {
81
- className: 'meta',
82
- // @attributes
83
- begin: '(@discardableResult|@warn_unused_result|@exported|@lazy|@noescape|' + '@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|' + '@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|' + '@infix|@prefix|@postfix|@autoclosure|@testable|@available|' + '@nonobjc|@NSApplicationMain|@UIApplicationMain)'
84
- }, {
85
- beginKeywords: 'import',
86
- end: /$/,
87
- contains: [hljs.C_LINE_COMMENT_MODE, BLOCK_COMMENT]
88
- }]
89
- };
90
- };
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var COMMENT = {
5
- className: 'comment',
6
- begin: /\$noop\(/,
7
- end: /\)/,
8
- contains: [{
9
- begin: /\(/,
10
- end: /\)/,
11
- contains: ['self', {
12
- begin: /\\./
13
- }]
14
- }],
15
- relevance: 10
16
- };
17
- var FUNCTION = {
18
- className: 'keyword',
19
- begin: /\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,
20
- end: /\(/,
21
- excludeEnd: true
22
- };
23
- var VARIABLE = {
24
- className: 'variable',
25
- begin: /%[_a-zA-Z0-9:]*/,
26
- end: '%'
27
- };
28
- var ESCAPE_SEQUENCE = {
29
- className: 'symbol',
30
- begin: /\\./
31
- };
32
- return {
33
- contains: [COMMENT, FUNCTION, VARIABLE, ESCAPE_SEQUENCE]
34
- };
35
- };
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- return {
5
- case_insensitive: true,
6
- contains: [hljs.HASH_COMMENT_MODE,
7
- // version of format and total amount of testcases
8
- {
9
- className: 'meta',
10
- variants: [{
11
- begin: '^TAP version (\\d+)$'
12
- }, {
13
- begin: '^1\\.\\.(\\d+)$'
14
- }]
15
- },
16
- // YAML block
17
- {
18
- begin: '(\s+)?---$',
19
- end: '\\.\\.\\.$',
20
- subLanguage: 'yaml',
21
- relevance: 0
22
- },
23
- // testcase number
24
- {
25
- className: 'number',
26
- begin: ' (\\d+) '
27
- },
28
- // testcase status and description
29
- {
30
- className: 'symbol',
31
- variants: [{
32
- begin: '^ok'
33
- }, {
34
- begin: '^not ok'
35
- }]
36
- }]
37
- };
38
- };
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- return {
5
- aliases: ['tk'],
6
- keywords: 'after append apply array auto_execok auto_import auto_load auto_mkindex ' + 'auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock ' + 'close concat continue dde dict encoding eof error eval exec exit expr fblocked ' + 'fconfigure fcopy file fileevent filename flush for foreach format gets glob global ' + 'history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list ' + 'llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 ' + 'mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex ' + 'platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename ' + 'return safe scan seek set socket source split string subst switch tcl_endOfWord ' + 'tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter ' + 'tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update ' + 'uplevel upvar variable vwait while',
7
- contains: [hljs.COMMENT(';[ \\t]*#', '$'), hljs.COMMENT('^[ \\t]*#', '$'), {
8
- beginKeywords: 'proc',
9
- end: '[\\{]',
10
- excludeEnd: true,
11
- contains: [{
12
- className: 'title',
13
- begin: '[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*',
14
- end: '[ \\t\\n\\r]',
15
- endsWithParent: true,
16
- excludeEnd: true
17
- }]
18
- }, {
19
- excludeEnd: true,
20
- variants: [{
21
- begin: '\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)',
22
- end: '[^a-zA-Z0-9_\\}\\$]'
23
- }, {
24
- begin: '\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*',
25
- end: '(\\))?[^a-zA-Z0-9_\\}\\$]'
26
- }]
27
- }, {
28
- className: 'string',
29
- contains: [hljs.BACKSLASH_ESCAPE],
30
- variants: [hljs.inherit(hljs.QUOTE_STRING_MODE, {
31
- illegal: null
32
- })]
33
- }, {
34
- className: 'number',
35
- variants: [hljs.BINARY_NUMBER_MODE, hljs.C_NUMBER_MODE]
36
- }]
37
- };
38
- };
@@ -1,56 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var COMMAND = {
5
- className: 'tag',
6
- begin: /\\/,
7
- relevance: 0,
8
- contains: [{
9
- className: 'name',
10
- variants: [{
11
- begin: /[a-zA-Z\u0430-\u044f\u0410-\u042f]+[*]?/
12
- }, {
13
- begin: /[^a-zA-Z\u0430-\u044f\u0410-\u042f0-9]/
14
- }],
15
- starts: {
16
- endsWithParent: true,
17
- relevance: 0,
18
- contains: [{
19
- className: 'string',
20
- // because it looks like attributes in HTML tags
21
- variants: [{
22
- begin: /\[/,
23
- end: /\]/
24
- }, {
25
- begin: /\{/,
26
- end: /\}/
27
- }]
28
- }, {
29
- begin: /\s*=\s*/,
30
- endsWithParent: true,
31
- relevance: 0,
32
- contains: [{
33
- className: 'number',
34
- begin: /-?\d*\.?\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?/
35
- }]
36
- }]
37
- }
38
- }]
39
- };
40
- return {
41
- contains: [COMMAND, {
42
- className: 'formula',
43
- contains: [COMMAND],
44
- relevance: 0,
45
- variants: [{
46
- begin: /\$\$/,
47
- end: /\$\$/
48
- }, {
49
- begin: /\$/,
50
- end: /\$/
51
- }]
52
- }, hljs.COMMENT('%', '$', {
53
- relevance: 0
54
- })]
55
- };
56
- };
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var BUILT_IN_TYPES = 'bool byte i16 i32 i64 double string binary';
5
- return {
6
- keywords: {
7
- keyword: 'namespace const typedef struct enum service exception void oneway set list map required optional',
8
- built_in: BUILT_IN_TYPES,
9
- literal: 'true false'
10
- },
11
- contains: [hljs.QUOTE_STRING_MODE, hljs.NUMBER_MODE, hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, {
12
- className: 'class',
13
- beginKeywords: 'struct enum service exception',
14
- end: /\{/,
15
- illegal: /\n/,
16
- contains: [hljs.inherit(hljs.TITLE_MODE, {
17
- starts: {
18
- endsWithParent: true,
19
- excludeEnd: true
20
- } // hack: eating everything after the first title
21
- })]
22
- }, {
23
- begin: '\\b(set|list|map)\\s*<',
24
- end: '>',
25
- keywords: BUILT_IN_TYPES,
26
- contains: ['self']
27
- }]
28
- };
29
- };
@@ -1,58 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var TPID = {
5
- className: 'number',
6
- begin: '[1-9][0-9]*',
7
- /* no leading zeros */
8
- relevance: 0
9
- };
10
- var TPLABEL = {
11
- className: 'symbol',
12
- begin: ':[^\\]]+'
13
- };
14
- var TPDATA = {
15
- className: 'built_in',
16
- begin: '(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|' + 'TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[',
17
- end: '\\]',
18
- contains: ['self', TPID, TPLABEL]
19
- };
20
- var TPIO = {
21
- className: 'built_in',
22
- begin: '(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[',
23
- end: '\\]',
24
- contains: ['self', TPID, hljs.QUOTE_STRING_MODE, /* for pos section at bottom */
25
- TPLABEL]
26
- };
27
- return {
28
- keywords: {
29
- 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',
30
- literal: 'ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET'
31
- },
32
- contains: [TPDATA, TPIO, {
33
- className: 'keyword',
34
- begin: '/(PROG|ATTR|MN|POS|END)\\b'
35
- }, {
36
- /* this is for cases like ,CALL */
37
- className: 'keyword',
38
- begin: '(CALL|RUN|POINT_LOGIC|LBL)\\b'
39
- }, {
40
- /* this is for cases like CNT100 where the default lexemes do not
41
- * separate the keyword and the number */
42
- className: 'keyword',
43
- begin: '\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)'
44
- }, {
45
- /* to catch numbers that do not have a word boundary on the left */
46
- className: 'number',
47
- begin: '\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b',
48
- relevance: 0
49
- }, hljs.COMMENT('//', '[;$]'), hljs.COMMENT('!', '[;$]'), hljs.COMMENT('--eg:', '$'), hljs.QUOTE_STRING_MODE, {
50
- className: 'string',
51
- begin: '\'',
52
- end: '\''
53
- }, hljs.C_NUMBER_MODE, {
54
- className: 'variable',
55
- begin: '\\$[A-Za-z0-9_]+'
56
- }]
57
- };
58
- };
@@ -1,55 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
- var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
5
- module.exports = function (hljs) {
6
- var _context;
7
- var PARAMS = {
8
- className: 'params',
9
- begin: '\\(',
10
- end: '\\)'
11
- };
12
- var FUNCTION_NAMES = 'attribute block constant cycle date dump include ' + 'max min parent random range source template_from_string';
13
- var FUNCTIONS = {
14
- beginKeywords: FUNCTION_NAMES,
15
- keywords: {
16
- name: FUNCTION_NAMES
17
- },
18
- relevance: 0,
19
- contains: [PARAMS]
20
- };
21
- var FILTER = {
22
- begin: /\|[A-Za-z_]+:?/,
23
- keywords: 'abs batch capitalize convert_encoding date date_modify default ' + 'escape first format join json_encode keys last length lower ' + 'merge nl2br number_format raw replace reverse round slice sort split ' + 'striptags title trim upper url_encode',
24
- contains: [FUNCTIONS]
25
- };
26
- var TAGS = 'autoescape block do embed extends filter flush for ' + 'if import include macro sandbox set spaceless use verbatim';
27
- TAGS = TAGS + ' ' + (0, _map.default)(_context = TAGS.split(' ')).call(_context, function (t) {
28
- return 'end' + t;
29
- }).join(' ');
30
- return {
31
- aliases: ['craftcms'],
32
- case_insensitive: true,
33
- subLanguage: 'xml',
34
- contains: [hljs.COMMENT(/\{#/, /#}/), {
35
- className: 'template-tag',
36
- begin: /\{%/,
37
- end: /%}/,
38
- contains: [{
39
- className: 'name',
40
- begin: /\w+/,
41
- keywords: TAGS,
42
- starts: {
43
- endsWithParent: true,
44
- contains: [FILTER, FUNCTIONS],
45
- relevance: 0
46
- }
47
- }]
48
- }, {
49
- className: 'template-variable',
50
- begin: /\{\{/,
51
- end: /}}/,
52
- contains: ['self', FILTER, FUNCTIONS]
53
- }]
54
- };
55
- };