@prokodo/ui 0.0.53 → 0.0.55

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 (63) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +9 -0
  2. package/dist/_virtual/common.js +7 -0
  3. package/dist/components/list/List.module.scss.js +0 -1
  4. package/dist/components/post-item/PostItem.client.js +3 -4
  5. package/dist/components/post-item/PostItem.server.js +3 -4
  6. package/dist/components/post-item/PostItem.view.js +2 -2
  7. package/dist/components/post-teaser/PostTeaser.client.js +5 -6
  8. package/dist/components/post-teaser/PostTeaser.server.js +3 -4
  9. package/dist/components/post-teaser/PostTeaser.view.js +4 -4
  10. package/dist/components/rich-text/RichText.client.js +175 -10
  11. package/dist/components/rich-text/RichText.module.scss.js +1 -1
  12. package/dist/components/slider/Slider.view.js +19 -4
  13. package/dist/constants/project.js +1 -1
  14. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
  15. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +90 -0
  16. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1629 -0
  17. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +407 -0
  18. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +307 -0
  19. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +556 -0
  20. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +413 -0
  21. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +950 -0
  22. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +66 -0
  23. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +167 -0
  24. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +83 -0
  25. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +129 -0
  26. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +268 -0
  27. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +715 -0
  28. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +53 -0
  29. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +268 -0
  30. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +1031 -0
  31. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +74 -0
  32. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +84 -0
  33. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +245 -0
  34. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +256 -0
  35. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +498 -0
  36. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +59 -0
  37. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +614 -0
  38. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +25 -0
  39. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +38 -0
  40. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +428 -0
  41. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +223 -0
  42. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +426 -0
  43. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +326 -0
  44. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +935 -0
  45. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +37 -0
  46. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +658 -0
  47. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +893 -0
  48. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +829 -0
  49. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +146 -0
  50. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +134 -0
  51. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +239 -0
  52. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +214 -0
  53. package/dist/node_modules/.pnpm/marked-highlight@2.2.2_marked@15.0.12/node_modules/marked-highlight/src/index.js +93 -0
  54. package/dist/tsconfig.build.tsbuildinfo +1 -1
  55. package/dist/types/components/post-item/PostItem.model.d.ts +1 -1
  56. package/dist/types/components/post-teaser/PostTeaser.model.d.ts +1 -1
  57. package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
  58. package/dist/types/components/rich-text/RichText.d.ts +5 -0
  59. package/dist/types/components/rich-text/RichText.lazy.d.ts +5 -0
  60. package/dist/types/components/rich-text/RichText.model.d.ts +5 -0
  61. package/dist/ui.css +98 -58
  62. package/package.json +3 -1
  63. package/dist/helpers/calculation.js +0 -6
@@ -0,0 +1,66 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var diff_1;
4
+ var hasRequiredDiff;
5
+ function requireDiff() {
6
+ if (hasRequiredDiff) return diff_1;
7
+ hasRequiredDiff = 1;
8
+ function diff(hljs) {
9
+ const regex = hljs.regex;
10
+ return {
11
+ name: "Diff",
12
+ aliases: ["patch"],
13
+ contains: [
14
+ {
15
+ className: "meta",
16
+ relevance: 10,
17
+ match: regex.either(
18
+ /^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,
19
+ /^\*\*\* +\d+,\d+ +\*\*\*\*$/,
20
+ /^--- +\d+,\d+ +----$/
21
+ )
22
+ },
23
+ {
24
+ className: "comment",
25
+ variants: [
26
+ {
27
+ begin: regex.either(
28
+ /Index: /,
29
+ /^index/,
30
+ /={3,}/,
31
+ /^-{3}/,
32
+ /^\*{3} /,
33
+ /^\+{3}/,
34
+ /^diff --git/
35
+ ),
36
+ end: /$/
37
+ },
38
+ { match: /^\*{15}$/ }
39
+ ]
40
+ },
41
+ {
42
+ className: "addition",
43
+ begin: /^\+/,
44
+ end: /$/
45
+ },
46
+ {
47
+ className: "deletion",
48
+ begin: /^-/,
49
+ end: /$/
50
+ },
51
+ {
52
+ className: "addition",
53
+ begin: /^!/,
54
+ end: /$/
55
+ }
56
+ ]
57
+ };
58
+ }
59
+ __name(diff, "diff");
60
+ diff_1 = diff;
61
+ return diff_1;
62
+ }
63
+ __name(requireDiff, "requireDiff");
64
+ export {
65
+ requireDiff as __require
66
+ };
@@ -0,0 +1,167 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var go_1;
4
+ var hasRequiredGo;
5
+ function requireGo() {
6
+ if (hasRequiredGo) return go_1;
7
+ hasRequiredGo = 1;
8
+ function go(hljs) {
9
+ const LITERALS = [
10
+ "true",
11
+ "false",
12
+ "iota",
13
+ "nil"
14
+ ];
15
+ const BUILT_INS = [
16
+ "append",
17
+ "cap",
18
+ "close",
19
+ "complex",
20
+ "copy",
21
+ "imag",
22
+ "len",
23
+ "make",
24
+ "new",
25
+ "panic",
26
+ "print",
27
+ "println",
28
+ "real",
29
+ "recover",
30
+ "delete"
31
+ ];
32
+ const TYPES = [
33
+ "bool",
34
+ "byte",
35
+ "complex64",
36
+ "complex128",
37
+ "error",
38
+ "float32",
39
+ "float64",
40
+ "int8",
41
+ "int16",
42
+ "int32",
43
+ "int64",
44
+ "string",
45
+ "uint8",
46
+ "uint16",
47
+ "uint32",
48
+ "uint64",
49
+ "int",
50
+ "uint",
51
+ "uintptr",
52
+ "rune"
53
+ ];
54
+ const KWS = [
55
+ "break",
56
+ "case",
57
+ "chan",
58
+ "const",
59
+ "continue",
60
+ "default",
61
+ "defer",
62
+ "else",
63
+ "fallthrough",
64
+ "for",
65
+ "func",
66
+ "go",
67
+ "goto",
68
+ "if",
69
+ "import",
70
+ "interface",
71
+ "map",
72
+ "package",
73
+ "range",
74
+ "return",
75
+ "select",
76
+ "struct",
77
+ "switch",
78
+ "type",
79
+ "var"
80
+ ];
81
+ const KEYWORDS = {
82
+ keyword: KWS,
83
+ type: TYPES,
84
+ literal: LITERALS,
85
+ built_in: BUILT_INS
86
+ };
87
+ return {
88
+ name: "Go",
89
+ aliases: ["golang"],
90
+ keywords: KEYWORDS,
91
+ illegal: "</",
92
+ contains: [
93
+ hljs.C_LINE_COMMENT_MODE,
94
+ hljs.C_BLOCK_COMMENT_MODE,
95
+ {
96
+ className: "string",
97
+ variants: [
98
+ hljs.QUOTE_STRING_MODE,
99
+ hljs.APOS_STRING_MODE,
100
+ {
101
+ begin: "`",
102
+ end: "`"
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ className: "number",
108
+ variants: [
109
+ {
110
+ match: /-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,
111
+ // hex without a present digit before . (making a digit afterwards required)
112
+ relevance: 0
113
+ },
114
+ {
115
+ match: /-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,
116
+ // hex with a present digit before . (making a digit afterwards optional)
117
+ relevance: 0
118
+ },
119
+ {
120
+ match: /-?\b0[oO](_?[0-7])*i?/,
121
+ // leading 0o octal
122
+ relevance: 0
123
+ },
124
+ {
125
+ match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,
126
+ // decimal without a present digit before . (making a digit afterwards required)
127
+ relevance: 0
128
+ },
129
+ {
130
+ match: /-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,
131
+ // decimal with a present digit before . (making a digit afterwards optional)
132
+ relevance: 0
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ begin: /:=/
138
+ // relevance booster
139
+ },
140
+ {
141
+ className: "function",
142
+ beginKeywords: "func",
143
+ end: "\\s*(\\{|$)",
144
+ excludeEnd: true,
145
+ contains: [
146
+ hljs.TITLE_MODE,
147
+ {
148
+ className: "params",
149
+ begin: /\(/,
150
+ end: /\)/,
151
+ endsParent: true,
152
+ keywords: KEYWORDS,
153
+ illegal: /["']/
154
+ }
155
+ ]
156
+ }
157
+ ]
158
+ };
159
+ }
160
+ __name(go, "go");
161
+ go_1 = go;
162
+ return go_1;
163
+ }
164
+ __name(requireGo, "requireGo");
165
+ export {
166
+ requireGo as __require
167
+ };
@@ -0,0 +1,83 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var graphql_1;
4
+ var hasRequiredGraphql;
5
+ function requireGraphql() {
6
+ if (hasRequiredGraphql) return graphql_1;
7
+ hasRequiredGraphql = 1;
8
+ function graphql(hljs) {
9
+ const regex = hljs.regex;
10
+ const GQL_NAME = /[_A-Za-z][_0-9A-Za-z]*/;
11
+ return {
12
+ name: "GraphQL",
13
+ aliases: ["gql"],
14
+ case_insensitive: true,
15
+ disableAutodetect: false,
16
+ keywords: {
17
+ keyword: [
18
+ "query",
19
+ "mutation",
20
+ "subscription",
21
+ "type",
22
+ "input",
23
+ "schema",
24
+ "directive",
25
+ "interface",
26
+ "union",
27
+ "scalar",
28
+ "fragment",
29
+ "enum",
30
+ "on"
31
+ ],
32
+ literal: [
33
+ "true",
34
+ "false",
35
+ "null"
36
+ ]
37
+ },
38
+ contains: [
39
+ hljs.HASH_COMMENT_MODE,
40
+ hljs.QUOTE_STRING_MODE,
41
+ hljs.NUMBER_MODE,
42
+ {
43
+ scope: "punctuation",
44
+ match: /[.]{3}/,
45
+ relevance: 0
46
+ },
47
+ {
48
+ scope: "punctuation",
49
+ begin: /[\!\(\)\:\=\[\]\{\|\}]{1}/,
50
+ relevance: 0
51
+ },
52
+ {
53
+ scope: "variable",
54
+ begin: /\$/,
55
+ end: /\W/,
56
+ excludeEnd: true,
57
+ relevance: 0
58
+ },
59
+ {
60
+ scope: "meta",
61
+ match: /@\w+/,
62
+ excludeEnd: true
63
+ },
64
+ {
65
+ scope: "symbol",
66
+ begin: regex.concat(GQL_NAME, regex.lookahead(/\s*:/)),
67
+ relevance: 0
68
+ }
69
+ ],
70
+ illegal: [
71
+ /[;<']/,
72
+ /BEGIN/
73
+ ]
74
+ };
75
+ }
76
+ __name(graphql, "graphql");
77
+ graphql_1 = graphql;
78
+ return graphql_1;
79
+ }
80
+ __name(requireGraphql, "requireGraphql");
81
+ export {
82
+ requireGraphql as __require
83
+ };
@@ -0,0 +1,129 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var ini_1;
4
+ var hasRequiredIni;
5
+ function requireIni() {
6
+ if (hasRequiredIni) return ini_1;
7
+ hasRequiredIni = 1;
8
+ function ini(hljs) {
9
+ const regex = hljs.regex;
10
+ const NUMBERS = {
11
+ className: "number",
12
+ relevance: 0,
13
+ variants: [
14
+ { begin: /([+-]+)?[\d]+_[\d_]+/ },
15
+ { begin: hljs.NUMBER_RE }
16
+ ]
17
+ };
18
+ const COMMENTS = hljs.COMMENT();
19
+ COMMENTS.variants = [
20
+ {
21
+ begin: /;/,
22
+ end: /$/
23
+ },
24
+ {
25
+ begin: /#/,
26
+ end: /$/
27
+ }
28
+ ];
29
+ const VARIABLES = {
30
+ className: "variable",
31
+ variants: [
32
+ { begin: /\$[\w\d"][\w\d_]*/ },
33
+ { begin: /\$\{(.*?)\}/ }
34
+ ]
35
+ };
36
+ const LITERALS = {
37
+ className: "literal",
38
+ begin: /\bon|off|true|false|yes|no\b/
39
+ };
40
+ const STRINGS = {
41
+ className: "string",
42
+ contains: [hljs.BACKSLASH_ESCAPE],
43
+ variants: [
44
+ {
45
+ begin: "'''",
46
+ end: "'''",
47
+ relevance: 10
48
+ },
49
+ {
50
+ begin: '"""',
51
+ end: '"""',
52
+ relevance: 10
53
+ },
54
+ {
55
+ begin: '"',
56
+ end: '"'
57
+ },
58
+ {
59
+ begin: "'",
60
+ end: "'"
61
+ }
62
+ ]
63
+ };
64
+ const ARRAY = {
65
+ begin: /\[/,
66
+ end: /\]/,
67
+ contains: [
68
+ COMMENTS,
69
+ LITERALS,
70
+ VARIABLES,
71
+ STRINGS,
72
+ NUMBERS,
73
+ "self"
74
+ ],
75
+ relevance: 0
76
+ };
77
+ const BARE_KEY = /[A-Za-z0-9_-]+/;
78
+ const QUOTED_KEY_DOUBLE_QUOTE = /"(\\"|[^"])*"/;
79
+ const QUOTED_KEY_SINGLE_QUOTE = /'[^']*'/;
80
+ const ANY_KEY = regex.either(
81
+ BARE_KEY,
82
+ QUOTED_KEY_DOUBLE_QUOTE,
83
+ QUOTED_KEY_SINGLE_QUOTE
84
+ );
85
+ const DOTTED_KEY = regex.concat(
86
+ ANY_KEY,
87
+ "(\\s*\\.\\s*",
88
+ ANY_KEY,
89
+ ")*",
90
+ regex.lookahead(/\s*=\s*[^#\s]/)
91
+ );
92
+ return {
93
+ name: "TOML, also INI",
94
+ aliases: ["toml"],
95
+ case_insensitive: true,
96
+ illegal: /\S/,
97
+ contains: [
98
+ COMMENTS,
99
+ {
100
+ className: "section",
101
+ begin: /\[+/,
102
+ end: /\]+/
103
+ },
104
+ {
105
+ begin: DOTTED_KEY,
106
+ className: "attr",
107
+ starts: {
108
+ end: /$/,
109
+ contains: [
110
+ COMMENTS,
111
+ ARRAY,
112
+ LITERALS,
113
+ VARIABLES,
114
+ STRINGS,
115
+ NUMBERS
116
+ ]
117
+ }
118
+ }
119
+ ]
120
+ };
121
+ }
122
+ __name(ini, "ini");
123
+ ini_1 = ini;
124
+ return ini_1;
125
+ }
126
+ __name(requireIni, "requireIni");
127
+ export {
128
+ requireIni as __require
129
+ };
@@ -0,0 +1,268 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var java_1;
4
+ var hasRequiredJava;
5
+ function requireJava() {
6
+ if (hasRequiredJava) return java_1;
7
+ hasRequiredJava = 1;
8
+ var decimalDigits = "[0-9](_*[0-9])*";
9
+ var frac = `\\.(${decimalDigits})`;
10
+ var hexDigits = "[0-9a-fA-F](_*[0-9a-fA-F])*";
11
+ var NUMERIC = {
12
+ className: "number",
13
+ variants: [
14
+ // DecimalFloatingPointLiteral
15
+ // including ExponentPart
16
+ { begin: `(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})[fFdD]?\\b` },
17
+ // excluding ExponentPart
18
+ { begin: `\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
19
+ { begin: `(${frac})[fFdD]?\\b` },
20
+ { begin: `\\b(${decimalDigits})[fFdD]\\b` },
21
+ // HexadecimalFloatingPointLiteral
22
+ { begin: `\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))[pP][+-]?(${decimalDigits})[fFdD]?\\b` },
23
+ // DecimalIntegerLiteral
24
+ { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
25
+ // HexIntegerLiteral
26
+ { begin: `\\b0[xX](${hexDigits})[lL]?\\b` },
27
+ // OctalIntegerLiteral
28
+ { begin: "\\b0(_*[0-7])*[lL]?\\b" },
29
+ // BinaryIntegerLiteral
30
+ { begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }
31
+ ],
32
+ relevance: 0
33
+ };
34
+ function recurRegex(re, substitution, depth) {
35
+ if (depth === -1) return "";
36
+ return re.replace(substitution, (_) => {
37
+ return recurRegex(re, substitution, depth - 1);
38
+ });
39
+ }
40
+ __name(recurRegex, "recurRegex");
41
+ function java(hljs) {
42
+ const regex = hljs.regex;
43
+ const JAVA_IDENT_RE = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*";
44
+ const GENERIC_IDENT_RE = JAVA_IDENT_RE + recurRegex("(?:<" + JAVA_IDENT_RE + "~~~(?:\\s*,\\s*" + JAVA_IDENT_RE + "~~~)*>)?", /~~~/g, 2);
45
+ const MAIN_KEYWORDS = [
46
+ "synchronized",
47
+ "abstract",
48
+ "private",
49
+ "var",
50
+ "static",
51
+ "if",
52
+ "const ",
53
+ "for",
54
+ "while",
55
+ "strictfp",
56
+ "finally",
57
+ "protected",
58
+ "import",
59
+ "native",
60
+ "final",
61
+ "void",
62
+ "enum",
63
+ "else",
64
+ "break",
65
+ "transient",
66
+ "catch",
67
+ "instanceof",
68
+ "volatile",
69
+ "case",
70
+ "assert",
71
+ "package",
72
+ "default",
73
+ "public",
74
+ "try",
75
+ "switch",
76
+ "continue",
77
+ "throws",
78
+ "protected",
79
+ "public",
80
+ "private",
81
+ "module",
82
+ "requires",
83
+ "exports",
84
+ "do",
85
+ "sealed",
86
+ "yield",
87
+ "permits",
88
+ "goto",
89
+ "when"
90
+ ];
91
+ const BUILT_INS = [
92
+ "super",
93
+ "this"
94
+ ];
95
+ const LITERALS = [
96
+ "false",
97
+ "true",
98
+ "null"
99
+ ];
100
+ const TYPES = [
101
+ "char",
102
+ "boolean",
103
+ "long",
104
+ "float",
105
+ "int",
106
+ "byte",
107
+ "short",
108
+ "double"
109
+ ];
110
+ const KEYWORDS = {
111
+ keyword: MAIN_KEYWORDS,
112
+ literal: LITERALS,
113
+ type: TYPES,
114
+ built_in: BUILT_INS
115
+ };
116
+ const ANNOTATION = {
117
+ className: "meta",
118
+ begin: "@" + JAVA_IDENT_RE,
119
+ contains: [
120
+ {
121
+ begin: /\(/,
122
+ end: /\)/,
123
+ contains: ["self"]
124
+ // allow nested () inside our annotation
125
+ }
126
+ ]
127
+ };
128
+ const PARAMS = {
129
+ className: "params",
130
+ begin: /\(/,
131
+ end: /\)/,
132
+ keywords: KEYWORDS,
133
+ relevance: 0,
134
+ contains: [hljs.C_BLOCK_COMMENT_MODE],
135
+ endsParent: true
136
+ };
137
+ return {
138
+ name: "Java",
139
+ aliases: ["jsp"],
140
+ keywords: KEYWORDS,
141
+ illegal: /<\/|#/,
142
+ contains: [
143
+ hljs.COMMENT(
144
+ "/\\*\\*",
145
+ "\\*/",
146
+ {
147
+ relevance: 0,
148
+ contains: [
149
+ {
150
+ // eat up @'s in emails to prevent them to be recognized as doctags
151
+ begin: /\w+@/,
152
+ relevance: 0
153
+ },
154
+ {
155
+ className: "doctag",
156
+ begin: "@[A-Za-z]+"
157
+ }
158
+ ]
159
+ }
160
+ ),
161
+ // relevance boost
162
+ {
163
+ begin: /import java\.[a-z]+\./,
164
+ keywords: "import",
165
+ relevance: 2
166
+ },
167
+ hljs.C_LINE_COMMENT_MODE,
168
+ hljs.C_BLOCK_COMMENT_MODE,
169
+ {
170
+ begin: /"""/,
171
+ end: /"""/,
172
+ className: "string",
173
+ contains: [hljs.BACKSLASH_ESCAPE]
174
+ },
175
+ hljs.APOS_STRING_MODE,
176
+ hljs.QUOTE_STRING_MODE,
177
+ {
178
+ match: [
179
+ /\b(?:class|interface|enum|extends|implements|new)/,
180
+ /\s+/,
181
+ JAVA_IDENT_RE
182
+ ],
183
+ className: {
184
+ 1: "keyword",
185
+ 3: "title.class"
186
+ }
187
+ },
188
+ {
189
+ // Exceptions for hyphenated keywords
190
+ match: /non-sealed/,
191
+ scope: "keyword"
192
+ },
193
+ {
194
+ begin: [
195
+ regex.concat(/(?!else)/, JAVA_IDENT_RE),
196
+ /\s+/,
197
+ JAVA_IDENT_RE,
198
+ /\s+/,
199
+ /=(?!=)/
200
+ ],
201
+ className: {
202
+ 1: "type",
203
+ 3: "variable",
204
+ 5: "operator"
205
+ }
206
+ },
207
+ {
208
+ begin: [
209
+ /record/,
210
+ /\s+/,
211
+ JAVA_IDENT_RE
212
+ ],
213
+ className: {
214
+ 1: "keyword",
215
+ 3: "title.class"
216
+ },
217
+ contains: [
218
+ PARAMS,
219
+ hljs.C_LINE_COMMENT_MODE,
220
+ hljs.C_BLOCK_COMMENT_MODE
221
+ ]
222
+ },
223
+ {
224
+ // Expression keywords prevent 'keyword Name(...)' from being
225
+ // recognized as a function definition
226
+ beginKeywords: "new throw return else",
227
+ relevance: 0
228
+ },
229
+ {
230
+ begin: [
231
+ "(?:" + GENERIC_IDENT_RE + "\\s+)",
232
+ hljs.UNDERSCORE_IDENT_RE,
233
+ /\s*(?=\()/
234
+ ],
235
+ className: { 2: "title.function" },
236
+ keywords: KEYWORDS,
237
+ contains: [
238
+ {
239
+ className: "params",
240
+ begin: /\(/,
241
+ end: /\)/,
242
+ keywords: KEYWORDS,
243
+ relevance: 0,
244
+ contains: [
245
+ ANNOTATION,
246
+ hljs.APOS_STRING_MODE,
247
+ hljs.QUOTE_STRING_MODE,
248
+ NUMERIC,
249
+ hljs.C_BLOCK_COMMENT_MODE
250
+ ]
251
+ },
252
+ hljs.C_LINE_COMMENT_MODE,
253
+ hljs.C_BLOCK_COMMENT_MODE
254
+ ]
255
+ },
256
+ NUMERIC,
257
+ ANNOTATION
258
+ ]
259
+ };
260
+ }
261
+ __name(java, "java");
262
+ java_1 = java;
263
+ return java_1;
264
+ }
265
+ __name(requireJava, "requireJava");
266
+ export {
267
+ requireJava as __require
268
+ };