@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,73 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- return {
5
- keywords: {
6
- literal: 'true false null',
7
- keyword: 'byte short char int long boolean float double void ' +
8
- // groovy specific keywords
9
- 'def as in assert trait ' +
10
- // common keywords with Java
11
- 'super this abstract static volatile transient public private protected synchronized final ' + 'class interface enum if else for while switch case break default continue ' + 'throw throws try catch finally implements extends new import package return instanceof'
12
- },
13
- contains: [hljs.COMMENT('/\\*\\*', '\\*/', {
14
- relevance: 0,
15
- contains: [{
16
- // eat up @'s in emails to prevent them to be recognized as doctags
17
- begin: /\w+@/,
18
- relevance: 0
19
- }, {
20
- className: 'doctag',
21
- begin: '@[A-Za-z]+'
22
- }]
23
- }), hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, {
24
- className: 'string',
25
- begin: '"""',
26
- end: '"""'
27
- }, {
28
- className: 'string',
29
- begin: "'''",
30
- end: "'''"
31
- }, {
32
- className: 'string',
33
- begin: "\\$/",
34
- end: "/\\$",
35
- relevance: 10
36
- }, hljs.APOS_STRING_MODE, {
37
- className: 'regexp',
38
- begin: /~?\/[^\/\n]+\//,
39
- contains: [hljs.BACKSLASH_ESCAPE]
40
- }, hljs.QUOTE_STRING_MODE, {
41
- className: 'meta',
42
- begin: "^#!/usr/bin/env",
43
- end: '$',
44
- illegal: '\n'
45
- }, hljs.BINARY_NUMBER_MODE, {
46
- className: 'class',
47
- beginKeywords: 'class interface trait enum',
48
- end: '{',
49
- illegal: ':',
50
- contains: [{
51
- beginKeywords: 'extends implements'
52
- }, hljs.UNDERSCORE_TITLE_MODE]
53
- }, hljs.C_NUMBER_MODE, {
54
- className: 'meta',
55
- begin: '@[A-Za-z]+'
56
- }, {
57
- // highlight map keys and named parameters as strings
58
- className: 'string',
59
- begin: /[^\?]{0}[A-Za-z0-9_$]+ *:/
60
- }, {
61
- // catch middle element of the ternary operator
62
- // to avoid highlight it as a label, named parameter, or map key
63
- begin: /\?/,
64
- end: /\:/
65
- }, {
66
- // highlight labeled statements
67
- className: 'symbol',
68
- begin: '^\\s*[A-Za-z0-9_$]+:',
69
- relevance: 0
70
- }],
71
- illegal: /#|<\//
72
- };
73
- };
@@ -1,79 +0,0 @@
1
- "use strict";
2
-
3
- module.exports =
4
- // TODO support filter tags like :javascript, support inline HTML
5
- function (hljs) {
6
- return {
7
- case_insensitive: true,
8
- contains: [{
9
- className: 'meta',
10
- begin: '^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$',
11
- relevance: 10
12
- },
13
- // FIXME these comments should be allowed to span indented lines
14
- hljs.COMMENT('^\\s*(!=#|=#|-#|/).*$', false, {
15
- relevance: 0
16
- }), {
17
- begin: '^\\s*(-|=|!=)(?!#)',
18
- starts: {
19
- end: '\\n',
20
- subLanguage: 'ruby'
21
- }
22
- }, {
23
- className: 'tag',
24
- begin: '^\\s*%',
25
- contains: [{
26
- className: 'selector-tag',
27
- begin: '\\w+'
28
- }, {
29
- className: 'selector-id',
30
- begin: '#[\\w-]+'
31
- }, {
32
- className: 'selector-class',
33
- begin: '\\.[\\w-]+'
34
- }, {
35
- begin: '{\\s*',
36
- end: '\\s*}',
37
- contains: [{
38
- begin: ':\\w+\\s*=>',
39
- end: ',\\s+',
40
- returnBegin: true,
41
- endsWithParent: true,
42
- contains: [{
43
- className: 'attr',
44
- begin: ':\\w+'
45
- }, hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE, {
46
- begin: '\\w+',
47
- relevance: 0
48
- }]
49
- }]
50
- }, {
51
- begin: '\\(\\s*',
52
- end: '\\s*\\)',
53
- excludeEnd: true,
54
- contains: [{
55
- begin: '\\w+\\s*=',
56
- end: '\\s+',
57
- returnBegin: true,
58
- endsWithParent: true,
59
- contains: [{
60
- className: 'attr',
61
- begin: '\\w+',
62
- relevance: 0
63
- }, hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE, {
64
- begin: '\\w+',
65
- relevance: 0
66
- }]
67
- }]
68
- }]
69
- }, {
70
- begin: '^\\s*[=~]\\s*'
71
- }, {
72
- begin: '#{',
73
- starts: {
74
- end: '}',
75
- subLanguage: 'ruby'
76
- }
77
- }]
78
- };
79
- };
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var BUILT_INS = {
5
- 'builtin-name': 'each in with if else unless bindattr action collection debugger log outlet template unbound view yield'
6
- };
7
- return {
8
- aliases: ['hbs', 'html.hbs', 'html.handlebars'],
9
- case_insensitive: true,
10
- subLanguage: 'xml',
11
- contains: [hljs.COMMENT('{{!(--)?', '(--)?}}'), {
12
- className: 'template-tag',
13
- begin: /\{\{[#\/]/,
14
- end: /\}\}/,
15
- contains: [{
16
- className: 'name',
17
- begin: /[a-zA-Z\.-]+/,
18
- keywords: BUILT_INS,
19
- starts: {
20
- endsWithParent: true,
21
- relevance: 0,
22
- contains: [hljs.QUOTE_STRING_MODE]
23
- }
24
- }]
25
- }, {
26
- className: 'template-variable',
27
- begin: /\{\{/,
28
- end: /\}\}/,
29
- keywords: BUILT_INS
30
- }]
31
- };
32
- };
@@ -1,102 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var COMMENT = {
5
- variants: [hljs.COMMENT('--', '$'), hljs.COMMENT('{-', '-}', {
6
- contains: ['self']
7
- })]
8
- };
9
- var PRAGMA = {
10
- className: 'meta',
11
- begin: '{-#',
12
- end: '#-}'
13
- };
14
- var PREPROCESSOR = {
15
- className: 'meta',
16
- begin: '^#',
17
- end: '$'
18
- };
19
- var CONSTRUCTOR = {
20
- className: 'type',
21
- begin: '\\b[A-Z][\\w\']*',
22
- // TODO: other constructors (build-in, infix).
23
- relevance: 0
24
- };
25
- var LIST = {
26
- begin: '\\(',
27
- end: '\\)',
28
- illegal: '"',
29
- contains: [PRAGMA, PREPROCESSOR, {
30
- className: 'type',
31
- begin: '\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?'
32
- }, hljs.inherit(hljs.TITLE_MODE, {
33
- begin: '[_a-z][\\w\']*'
34
- }), COMMENT]
35
- };
36
- var RECORD = {
37
- begin: '{',
38
- end: '}',
39
- contains: LIST.contains
40
- };
41
- return {
42
- aliases: ['hs'],
43
- 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',
44
- contains: [
45
- // Top-level constructions.
46
-
47
- {
48
- beginKeywords: 'module',
49
- end: 'where',
50
- keywords: 'module where',
51
- contains: [LIST, COMMENT],
52
- illegal: '\\W\\.|;'
53
- }, {
54
- begin: '\\bimport\\b',
55
- end: '$',
56
- keywords: 'import qualified as hiding',
57
- contains: [LIST, COMMENT],
58
- illegal: '\\W\\.|;'
59
- }, {
60
- className: 'class',
61
- begin: '^(\\s*)?(class|instance)\\b',
62
- end: 'where',
63
- keywords: 'class family instance where',
64
- contains: [CONSTRUCTOR, LIST, COMMENT]
65
- }, {
66
- className: 'class',
67
- begin: '\\b(data|(new)?type)\\b',
68
- end: '$',
69
- keywords: 'data family type newtype deriving',
70
- contains: [PRAGMA, CONSTRUCTOR, LIST, RECORD, COMMENT]
71
- }, {
72
- beginKeywords: 'default',
73
- end: '$',
74
- contains: [CONSTRUCTOR, LIST, COMMENT]
75
- }, {
76
- beginKeywords: 'infix infixl infixr',
77
- end: '$',
78
- contains: [hljs.C_NUMBER_MODE, COMMENT]
79
- }, {
80
- begin: '\\bforeign\\b',
81
- end: '$',
82
- keywords: 'foreign import export ccall stdcall cplusplus jvm ' + 'dotnet safe unsafe',
83
- contains: [CONSTRUCTOR, hljs.QUOTE_STRING_MODE, COMMENT]
84
- }, {
85
- className: 'meta',
86
- begin: '#!\\/usr\\/bin\\/env\ runhaskell',
87
- end: '$'
88
- },
89
- // "Whitespaces".
90
-
91
- PRAGMA, PREPROCESSOR,
92
- // Literals and names.
93
-
94
- // TODO: characters.
95
- hljs.QUOTE_STRING_MODE, hljs.C_NUMBER_MODE, CONSTRUCTOR, hljs.inherit(hljs.TITLE_MODE, {
96
- begin: '^[_a-z][\\w\']*'
97
- }), COMMENT, {
98
- begin: '->|<-'
99
- } // No markup, relevance booster
100
- ]
101
- };
102
- };
@@ -1,125 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var IDENT_RE = '[a-zA-Z_$][a-zA-Z0-9_$]*';
5
- var IDENT_FUNC_RETURN_TYPE_RE = '([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)';
6
- var HAXE_BASIC_TYPES = 'Int Float String Bool Dynamic Void Array ';
7
- return {
8
- aliases: ['hx'],
9
- keywords: {
10
- keyword: 'break case cast catch continue default do dynamic else enum extern ' + 'for function here if import in inline never new override package private get set ' + 'public return static super switch this throw trace try typedef untyped using var while ' + HAXE_BASIC_TYPES,
11
- built_in: 'trace this',
12
- literal: 'true false null _'
13
- },
14
- contains: [{
15
- className: 'string',
16
- // interpolate-able strings
17
- begin: '\'',
18
- end: '\'',
19
- contains: [hljs.BACKSLASH_ESCAPE, {
20
- className: 'subst',
21
- // interpolation
22
- begin: '\\$\\{',
23
- end: '\\}'
24
- }, {
25
- className: 'subst',
26
- // interpolation
27
- begin: '\\$',
28
- end: '\\W}'
29
- }]
30
- }, hljs.QUOTE_STRING_MODE, hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, hljs.C_NUMBER_MODE, {
31
- className: 'meta',
32
- // compiler meta
33
- begin: '@:',
34
- end: '$'
35
- }, {
36
- className: 'meta',
37
- // compiler conditionals
38
- begin: '#',
39
- end: '$',
40
- keywords: {
41
- 'meta-keyword': 'if else elseif end error'
42
- }
43
- }, {
44
- className: 'type',
45
- // function types
46
- begin: ':[ \t]*',
47
- end: '[^A-Za-z0-9_ \t\\->]',
48
- excludeBegin: true,
49
- excludeEnd: true,
50
- relevance: 0
51
- }, {
52
- className: 'type',
53
- // types
54
- begin: ':[ \t]*',
55
- end: '\\W',
56
- excludeBegin: true,
57
- excludeEnd: true
58
- }, {
59
- className: 'type',
60
- // instantiation
61
- begin: 'new *',
62
- end: '\\W',
63
- excludeBegin: true,
64
- excludeEnd: true
65
- }, {
66
- className: 'class',
67
- // enums
68
- beginKeywords: 'enum',
69
- end: '\\{',
70
- contains: [hljs.TITLE_MODE]
71
- }, {
72
- className: 'class',
73
- // abstracts
74
- beginKeywords: 'abstract',
75
- end: '[\\{$]',
76
- contains: [{
77
- className: 'type',
78
- begin: '\\(',
79
- end: '\\)',
80
- excludeBegin: true,
81
- excludeEnd: true
82
- }, {
83
- className: 'type',
84
- begin: 'from +',
85
- end: '\\W',
86
- excludeBegin: true,
87
- excludeEnd: true
88
- }, {
89
- className: 'type',
90
- begin: 'to +',
91
- end: '\\W',
92
- excludeBegin: true,
93
- excludeEnd: true
94
- }, hljs.TITLE_MODE],
95
- keywords: {
96
- keyword: 'abstract from to'
97
- }
98
- }, {
99
- className: 'class',
100
- // classes
101
- begin: '\\b(class|interface) +',
102
- end: '[\\{$]',
103
- excludeEnd: true,
104
- keywords: 'class interface',
105
- contains: [{
106
- className: 'keyword',
107
- begin: '\\b(extends|implements) +',
108
- keywords: 'extends implements',
109
- contains: [{
110
- className: 'type',
111
- begin: hljs.IDENT_RE,
112
- relevance: 0
113
- }]
114
- }, hljs.TITLE_MODE]
115
- }, {
116
- className: 'function',
117
- beginKeywords: 'function',
118
- end: '\\(',
119
- excludeEnd: true,
120
- illegal: '\\S',
121
- contains: [hljs.TITLE_MODE]
122
- }],
123
- illegal: /<\//
124
- };
125
- };
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- return {
5
- case_insensitive: true,
6
- lexemes: /[\w\._]+/,
7
- keywords: 'goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop',
8
- contains: [hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, hljs.QUOTE_STRING_MODE, hljs.APOS_STRING_MODE, {
9
- // multi-line string
10
- className: 'string',
11
- begin: '{"',
12
- end: '"}',
13
- contains: [hljs.BACKSLASH_ESCAPE]
14
- }, hljs.COMMENT(';', '$', {
15
- relevance: 0
16
- }), {
17
- // pre-processor
18
- className: 'meta',
19
- begin: '#',
20
- end: '$',
21
- keywords: {
22
- 'meta-keyword': 'addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib'
23
- },
24
- contains: [hljs.inherit(hljs.QUOTE_STRING_MODE, {
25
- className: 'meta-string'
26
- }), hljs.NUMBER_MODE, hljs.C_NUMBER_MODE, hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE]
27
- }, {
28
- // label
29
- className: 'symbol',
30
- begin: '^\\*(\\w+|@)'
31
- }, hljs.NUMBER_MODE, hljs.C_NUMBER_MODE]
32
- };
33
- };
@@ -1,66 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var BUILT_INS = 'action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view';
5
- var ATTR_ASSIGNMENT = {
6
- illegal: /\}\}/,
7
- begin: /[a-zA-Z0-9_]+=/,
8
- returnBegin: true,
9
- relevance: 0,
10
- contains: [{
11
- className: 'attr',
12
- begin: /[a-zA-Z0-9_]+/
13
- }]
14
- };
15
- var SUB_EXPR = {
16
- illegal: /\}\}/,
17
- begin: /\)/,
18
- end: /\)/,
19
- contains: [{
20
- begin: /[a-zA-Z\.\-]+/,
21
- keywords: {
22
- built_in: BUILT_INS
23
- },
24
- starts: {
25
- endsWithParent: true,
26
- relevance: 0,
27
- contains: [hljs.QUOTE_STRING_MODE]
28
- }
29
- }]
30
- };
31
- var TAG_INNARDS = {
32
- endsWithParent: true,
33
- relevance: 0,
34
- keywords: {
35
- keyword: 'as',
36
- built_in: BUILT_INS
37
- },
38
- contains: [hljs.QUOTE_STRING_MODE, ATTR_ASSIGNMENT, hljs.NUMBER_MODE]
39
- };
40
- return {
41
- case_insensitive: true,
42
- subLanguage: 'xml',
43
- contains: [hljs.COMMENT('{{!(--)?', '(--)?}}'), {
44
- className: 'template-tag',
45
- begin: /\{\{[#\/]/,
46
- end: /\}\}/,
47
- contains: [{
48
- className: 'name',
49
- begin: /[a-zA-Z\.\-]+/,
50
- keywords: {
51
- 'builtin-name': BUILT_INS
52
- },
53
- starts: TAG_INNARDS
54
- }]
55
- }, {
56
- className: 'template-variable',
57
- begin: /\{\{[a-zA-Z][a-zA-Z\-]+/,
58
- end: /\}\}/,
59
- keywords: {
60
- keyword: 'as',
61
- built_in: BUILT_INS
62
- },
63
- contains: [hljs.QUOTE_STRING_MODE]
64
- }]
65
- };
66
- };
@@ -1,49 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var VERSION = 'HTTP/[0-9\\.]+';
5
- return {
6
- aliases: ['https'],
7
- illegal: '\\S',
8
- contains: [{
9
- begin: '^' + VERSION,
10
- end: '$',
11
- contains: [{
12
- className: 'number',
13
- begin: '\\b\\d{3}\\b'
14
- }]
15
- }, {
16
- begin: '^[A-Z]+ (.*?) ' + VERSION + '$',
17
- returnBegin: true,
18
- end: '$',
19
- contains: [{
20
- className: 'string',
21
- begin: ' ',
22
- end: ' ',
23
- excludeBegin: true,
24
- excludeEnd: true
25
- }, {
26
- begin: VERSION
27
- }, {
28
- className: 'keyword',
29
- begin: '[A-Z]+'
30
- }]
31
- }, {
32
- className: 'attribute',
33
- begin: '^\\w',
34
- end: ': ',
35
- excludeEnd: true,
36
- illegal: '\\n|\\s|=',
37
- starts: {
38
- end: '$',
39
- relevance: 0
40
- }
41
- }, {
42
- begin: '\\n\\n',
43
- starts: {
44
- subLanguage: [],
45
- endsWithParent: true
46
- }
47
- }]
48
- };
49
- };
@@ -1,73 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var keywords = {
5
- 'builtin-name':
6
- // keywords
7
- '!= % %= & &= * ** **= *= *map ' + '+ += , --build-class-- --import-- -= . / // //= ' + '/= < << <<= <= = > >= >> >>= ' + '@ @= ^ ^= abs accumulate all and any ap-compose ' + 'ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ' + 'ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast ' + 'callable calling-module-name car case cdr chain chr coll? combinations compile ' + 'compress cond cons cons? continue count curry cut cycle dec ' + 'def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn ' + 'defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir ' + 'disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? ' + 'end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first ' + 'flatten float? fn fnc fnr for for* format fraction genexpr ' + 'gensym get getattr global globals group-by hasattr hash hex id ' + 'identity if if* if-not if-python2 import in inc input instance? ' + 'integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even ' + 'is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none ' + 'is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass ' + 'iter iterable? iterate iterator? keyword keyword? lambda last len let ' + 'lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all ' + 'map max merge-with method-decorator min multi-decorator multicombinations name neg? next ' + 'none? nonlocal not not-in not? nth numeric? oct odd? open ' + 'or ord partition permutations pos? post-route postwalk pow prewalk print ' + 'product profile/calls profile/cpu put-route quasiquote quote raise range read read-str ' + 'recursive-replace reduce remove repeat repeatedly repr require rest round route ' + 'route-with-methods rwm second seq set-comp setattr setv some sorted string ' + 'string? sum switch symbol? take take-nth take-while tee try unless ' + 'unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms ' + 'xi xor yield yield-from zero? zip zip-longest | |= ~'
8
- };
9
- var SYMBOLSTART = 'a-zA-Z_\\-!.?+*=<>&#\'';
10
- var SYMBOL_RE = '[' + SYMBOLSTART + '][' + SYMBOLSTART + '0-9/;:]*';
11
- var SIMPLE_NUMBER_RE = '[-+]?\\d+(\\.\\d+)?';
12
- var SHEBANG = {
13
- className: 'meta',
14
- begin: '^#!',
15
- end: '$'
16
- };
17
- var SYMBOL = {
18
- begin: SYMBOL_RE,
19
- relevance: 0
20
- };
21
- var NUMBER = {
22
- className: 'number',
23
- begin: SIMPLE_NUMBER_RE,
24
- relevance: 0
25
- };
26
- var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {
27
- illegal: null
28
- });
29
- var COMMENT = hljs.COMMENT(';', '$', {
30
- relevance: 0
31
- });
32
- var LITERAL = {
33
- className: 'literal',
34
- begin: /\b([Tt]rue|[Ff]alse|nil|None)\b/
35
- };
36
- var COLLECTION = {
37
- begin: '[\\[\\{]',
38
- end: '[\\]\\}]'
39
- };
40
- var HINT = {
41
- className: 'comment',
42
- begin: '\\^' + SYMBOL_RE
43
- };
44
- var HINT_COL = hljs.COMMENT('\\^\\{', '\\}');
45
- var KEY = {
46
- className: 'symbol',
47
- begin: '[:]{1,2}' + SYMBOL_RE
48
- };
49
- var LIST = {
50
- begin: '\\(',
51
- end: '\\)'
52
- };
53
- var BODY = {
54
- endsWithParent: true,
55
- relevance: 0
56
- };
57
- var NAME = {
58
- keywords: keywords,
59
- lexemes: SYMBOL_RE,
60
- className: 'name',
61
- begin: SYMBOL_RE,
62
- starts: BODY
63
- };
64
- var DEFAULT_CONTAINS = [LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL, SYMBOL];
65
- LIST.contains = [hljs.COMMENT('comment', ''), NAME, BODY];
66
- BODY.contains = DEFAULT_CONTAINS;
67
- COLLECTION.contains = DEFAULT_CONTAINS;
68
- return {
69
- aliases: ['hylang'],
70
- illegal: /\S/,
71
- contains: [SHEBANG, LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL]
72
- };
73
- };
@@ -1,52 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (hljs) {
4
- var START_BRACKET = '\\[';
5
- var END_BRACKET = '\\]';
6
- return {
7
- aliases: ['i7'],
8
- case_insensitive: true,
9
- keywords: {
10
- // Some keywords more or less unique to I7, for relevance.
11
- keyword:
12
- // kind:
13
- 'thing room person man woman animal container ' + 'supporter backdrop door ' +
14
- // characteristic:
15
- 'scenery open closed locked inside gender ' +
16
- // verb:
17
- 'is are say understand ' +
18
- // misc keyword:
19
- 'kind of rule'
20
- },
21
- contains: [{
22
- className: 'string',
23
- begin: '"',
24
- end: '"',
25
- relevance: 0,
26
- contains: [{
27
- className: 'subst',
28
- begin: START_BRACKET,
29
- end: END_BRACKET
30
- }]
31
- }, {
32
- className: 'section',
33
- begin: /^(Volume|Book|Part|Chapter|Section|Table)\b/,
34
- end: '$'
35
- }, {
36
- // Rule definition
37
- // This is here for relevance.
38
- begin: /^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,
39
- end: ':',
40
- contains: [{
41
- //Rule name
42
- begin: '\\(This',
43
- end: '\\)'
44
- }]
45
- }, {
46
- className: 'comment',
47
- begin: START_BRACKET,
48
- end: END_BRACKET,
49
- contains: ['self']
50
- }]
51
- };
52
- };