@kg-ui/kg-ui-plus 0.1.47 → 0.1.48
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.
- package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/index.vue2.mjs +4 -5
- package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiCanvas/testWPS.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiCanvas/testWPS.vue2.mjs +51 -0
- package/dist/es/KgCopilot/CopiCanvas/testWPS.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiCanvas/web-office-sdk-solution-v2.0.7.es.mjs +854 -0
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue2.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +3 -3
- package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +7 -7
- package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/index.vue2.mjs +3 -3
- package/dist/es/api/copilot.mjs +0 -8
- package/dist/es/directives/heighlight/index.mjs +27 -27
- package/dist/es/home/LFilter/FilterHead.vue.mjs +1 -1
- package/dist/es/node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.2.45/node_modules/@vueuse/core/index.mjs +1 -3
- package/dist/es/node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs +1 -52
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.mjs +4 -4
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs +10 -2
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.mjs +4 -4
- package/dist/es/node_modules/.pnpm/{dompurify@3.2.3 → dompurify@3.0.10}/node_modules/dompurify/dist/purify.es.mjs +91 -119
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +73 -65
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +12 -4
- package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.6/node_modules/get-intrinsic/index.mjs +4 -4
- package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +2 -2
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/apache.mjs +0 -4
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/bash.mjs +2 -20
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/basic.mjs +1 -7
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/c.mjs +4 -19
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/css.mjs +8 -214
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dart.mjs +2 -10
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/erlang.mjs +6 -48
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/go.mjs +3 -23
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/java.mjs +1 -3
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/javascript.mjs +11 -15
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/json.mjs +0 -1
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/markdown.mjs +1 -7
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/php.mjs +2 -16
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/python.mjs +1 -3
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/ruby.mjs +1 -1
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/stylus.mjs +8 -214
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/swift.mjs +14 -60
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/typescript.mjs +18 -45
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/lib/core.mjs +8 -8
- package/dist/es/node_modules/.pnpm/{marked@12.0.2 → marked@12.0.1}/node_modules/marked/lib/marked.esm.mjs +1 -2
- package/dist/es/style.css +1 -1
- package/package.json +2 -2
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +0 -7
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +0 -295
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue.mjs +0 -96
- package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue2.mjs +0 -4
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +0 -7
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +0 -41
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +0 -4
- package/dist/es/_virtual/_commonjs-dynamic-modules.mjs +0 -6
- package/dist/es/_virtual/jszip.min.mjs +0 -13
- package/dist/es/assets/empty.png.mjs +0 -4
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/folder-opened.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/file-damage-line.mjs +0 -8
- package/dist/es/node_modules/.pnpm/docx-preview@0.3.3/node_modules/docx-preview/dist/docx-preview.mjs +0 -3877
- package/dist/es/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.mjs +0 -2649
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/arrow-left.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/arrow-right.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/check.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/close.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/copy-document.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/delete.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/edit.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/notebook.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/promotion.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/reading.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/search.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/core.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/django.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dns.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dos.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dust.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/http.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/nginx.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/xml.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/styles/sunburst.css.mjs +0 -0
@@ -13,14 +13,6 @@ function dart(hljs) {
|
|
13
13
|
],
|
14
14
|
keywords: "true false null this is new super"
|
15
15
|
};
|
16
|
-
const NUMBER = {
|
17
|
-
className: "number",
|
18
|
-
relevance: 0,
|
19
|
-
variants: [
|
20
|
-
{ match: /\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/ },
|
21
|
-
{ match: /\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/ }
|
22
|
-
]
|
23
|
-
};
|
24
16
|
const STRING = {
|
25
17
|
className: "string",
|
26
18
|
variants: [
|
@@ -83,7 +75,7 @@ function dart(hljs) {
|
|
83
75
|
]
|
84
76
|
};
|
85
77
|
BRACED_SUBST.contains = [
|
86
|
-
|
78
|
+
hljs.C_NUMBER_MODE,
|
87
79
|
STRING
|
88
80
|
];
|
89
81
|
const BUILT_IN_TYPES = [
|
@@ -238,7 +230,7 @@ function dart(hljs) {
|
|
238
230
|
hljs.UNDERSCORE_TITLE_MODE
|
239
231
|
]
|
240
232
|
},
|
241
|
-
|
233
|
+
hljs.C_NUMBER_MODE,
|
242
234
|
{
|
243
235
|
className: "meta",
|
244
236
|
begin: "@[A-Za-z]+"
|
@@ -2,7 +2,7 @@ function erlang(hljs) {
|
|
2
2
|
const BASIC_ATOM_RE = "[a-z'][a-zA-Z0-9_']*";
|
3
3
|
const FUNCTION_NAME_RE = "(" + BASIC_ATOM_RE + ":" + BASIC_ATOM_RE + "|" + BASIC_ATOM_RE + ")";
|
4
4
|
const ERLANG_RESERVED = {
|
5
|
-
keyword: "after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor
|
5
|
+
keyword: "after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",
|
6
6
|
literal: "false true"
|
7
7
|
};
|
8
8
|
const COMMENT = hljs.COMMENT("%", "$");
|
@@ -63,33 +63,8 @@ function erlang(hljs) {
|
|
63
63
|
}
|
64
64
|
]
|
65
65
|
};
|
66
|
-
const CHAR_LITERAL = {
|
67
|
-
scope: "string",
|
68
|
-
match: /\$(\\([^0-9]|[0-9]{1,3}|)|.)/
|
69
|
-
};
|
70
|
-
const TRIPLE_QUOTE = {
|
71
|
-
scope: "string",
|
72
|
-
match: /"""("*)(?!")[\s\S]*?"""\1/
|
73
|
-
};
|
74
|
-
const SIGIL = {
|
75
|
-
scope: "string",
|
76
|
-
contains: [hljs.BACKSLASH_ESCAPE],
|
77
|
-
variants: [
|
78
|
-
{ match: /~\w?"""("*)(?!")[\s\S]*?"""\1/ },
|
79
|
-
{ begin: /~\w?\(/, end: /\)/ },
|
80
|
-
{ begin: /~\w?\[/, end: /\]/ },
|
81
|
-
{ begin: /~\w?{/, end: /}/ },
|
82
|
-
{ begin: /~\w?</, end: />/ },
|
83
|
-
{ begin: /~\w?\//, end: /\// },
|
84
|
-
{ begin: /~\w?\|/, end: /\|/ },
|
85
|
-
{ begin: /~\w?'/, end: /'/ },
|
86
|
-
{ begin: /~\w?"/, end: /"/ },
|
87
|
-
{ begin: /~\w?`/, end: /`/ },
|
88
|
-
{ begin: /~\w?#/, end: /#/ }
|
89
|
-
]
|
90
|
-
};
|
91
66
|
const BLOCK_STATEMENTS = {
|
92
|
-
beginKeywords: "fun receive if try case
|
67
|
+
beginKeywords: "fun receive if try case",
|
93
68
|
end: "end",
|
94
69
|
keywords: ERLANG_RESERVED
|
95
70
|
};
|
@@ -99,30 +74,24 @@ function erlang(hljs) {
|
|
99
74
|
hljs.inherit(hljs.APOS_STRING_MODE, { className: "" }),
|
100
75
|
BLOCK_STATEMENTS,
|
101
76
|
FUNCTION_CALL,
|
102
|
-
SIGIL,
|
103
|
-
TRIPLE_QUOTE,
|
104
77
|
hljs.QUOTE_STRING_MODE,
|
105
78
|
NUMBER,
|
106
79
|
TUPLE,
|
107
80
|
VAR1,
|
108
81
|
VAR2,
|
109
|
-
RECORD_ACCESS
|
110
|
-
CHAR_LITERAL
|
82
|
+
RECORD_ACCESS
|
111
83
|
];
|
112
84
|
const BASIC_MODES = [
|
113
85
|
COMMENT,
|
114
86
|
NAMED_FUN,
|
115
87
|
BLOCK_STATEMENTS,
|
116
88
|
FUNCTION_CALL,
|
117
|
-
SIGIL,
|
118
|
-
TRIPLE_QUOTE,
|
119
89
|
hljs.QUOTE_STRING_MODE,
|
120
90
|
NUMBER,
|
121
91
|
TUPLE,
|
122
92
|
VAR1,
|
123
93
|
VAR2,
|
124
|
-
RECORD_ACCESS
|
125
|
-
CHAR_LITERAL
|
94
|
+
RECORD_ACCESS
|
126
95
|
];
|
127
96
|
FUNCTION_CALL.contains[1].contains = BASIC_MODES;
|
128
97
|
TUPLE.contains = BASIC_MODES;
|
@@ -137,7 +106,6 @@ function erlang(hljs) {
|
|
137
106
|
"-author",
|
138
107
|
"-copyright",
|
139
108
|
"-doc",
|
140
|
-
"-moduledoc",
|
141
109
|
"-vsn",
|
142
110
|
"-import",
|
143
111
|
"-include",
|
@@ -149,9 +117,7 @@ function erlang(hljs) {
|
|
149
117
|
"-file",
|
150
118
|
"-behaviour",
|
151
119
|
"-behavior",
|
152
|
-
"-spec"
|
153
|
-
"-on_load",
|
154
|
-
"-nifs"
|
120
|
+
"-spec"
|
155
121
|
];
|
156
122
|
const PARAMS = {
|
157
123
|
className: "params",
|
@@ -192,22 +158,14 @@ function erlang(hljs) {
|
|
192
158
|
$pattern: "-" + hljs.IDENT_RE,
|
193
159
|
keyword: DIRECTIVES.map((x) => `${x}|1.5`).join(" ")
|
194
160
|
},
|
195
|
-
contains: [
|
196
|
-
PARAMS,
|
197
|
-
SIGIL,
|
198
|
-
TRIPLE_QUOTE,
|
199
|
-
hljs.QUOTE_STRING_MODE
|
200
|
-
]
|
161
|
+
contains: [PARAMS]
|
201
162
|
},
|
202
163
|
NUMBER,
|
203
|
-
SIGIL,
|
204
|
-
TRIPLE_QUOTE,
|
205
164
|
hljs.QUOTE_STRING_MODE,
|
206
165
|
RECORD_ACCESS,
|
207
166
|
VAR1,
|
208
167
|
VAR2,
|
209
168
|
TUPLE,
|
210
|
-
CHAR_LITERAL,
|
211
169
|
{ begin: /\.$/ }
|
212
170
|
// relevance booster
|
213
171
|
]
|
@@ -100,30 +100,10 @@ function go(hljs) {
|
|
100
100
|
className: "number",
|
101
101
|
variants: [
|
102
102
|
{
|
103
|
-
|
104
|
-
|
105
|
-
relevance: 0
|
103
|
+
begin: hljs.C_NUMBER_RE + "[i]",
|
104
|
+
relevance: 1
|
106
105
|
},
|
107
|
-
|
108
|
-
match: /-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,
|
109
|
-
// hex with a present digit before . (making a digit afterwards optional)
|
110
|
-
relevance: 0
|
111
|
-
},
|
112
|
-
{
|
113
|
-
match: /-?\b0[oO](_?[0-7])*i?/,
|
114
|
-
// leading 0o octal
|
115
|
-
relevance: 0
|
116
|
-
},
|
117
|
-
{
|
118
|
-
match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,
|
119
|
-
// decimal without a present digit before . (making a digit afterwards required)
|
120
|
-
relevance: 0
|
121
|
-
},
|
122
|
-
{
|
123
|
-
match: /-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,
|
124
|
-
// decimal with a present digit before . (making a digit afterwards optional)
|
125
|
-
relevance: 0
|
126
|
-
}
|
106
|
+
hljs.C_NUMBER_MODE
|
127
107
|
]
|
128
108
|
},
|
129
109
|
{
|
@@ -41,9 +41,7 @@ const KEYWORDS = [
|
|
41
41
|
"import",
|
42
42
|
"from",
|
43
43
|
"export",
|
44
|
-
"extends"
|
45
|
-
// It's reached stage 3, which is "recommended for implementation":
|
46
|
-
"using"
|
44
|
+
"extends"
|
47
45
|
];
|
48
46
|
const LITERALS = [
|
49
47
|
"true",
|
@@ -241,7 +239,7 @@ function javascript(hljs) {
|
|
241
239
|
// defined later
|
242
240
|
};
|
243
241
|
const HTML_TEMPLATE = {
|
244
|
-
begin: "
|
242
|
+
begin: "html`",
|
245
243
|
end: "",
|
246
244
|
starts: {
|
247
245
|
end: "`",
|
@@ -254,7 +252,7 @@ function javascript(hljs) {
|
|
254
252
|
}
|
255
253
|
};
|
256
254
|
const CSS_TEMPLATE = {
|
257
|
-
begin: "
|
255
|
+
begin: "css`",
|
258
256
|
end: "",
|
259
257
|
starts: {
|
260
258
|
end: "`",
|
@@ -267,7 +265,7 @@ function javascript(hljs) {
|
|
267
265
|
}
|
268
266
|
};
|
269
267
|
const GRAPHQL_TEMPLATE = {
|
270
|
-
begin: "
|
268
|
+
begin: "gql`",
|
271
269
|
end: "",
|
272
270
|
starts: {
|
273
271
|
end: "`",
|
@@ -363,7 +361,7 @@ function javascript(hljs) {
|
|
363
361
|
const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([
|
364
362
|
// eat recursive parens in sub expressions
|
365
363
|
{
|
366
|
-
begin:
|
364
|
+
begin: /\(/,
|
367
365
|
end: /\)/,
|
368
366
|
keywords: KEYWORDS$1,
|
369
367
|
contains: ["self"].concat(SUBST_AND_COMMENTS)
|
@@ -371,9 +369,7 @@ function javascript(hljs) {
|
|
371
369
|
]);
|
372
370
|
const PARAMS = {
|
373
371
|
className: "params",
|
374
|
-
|
375
|
-
begin: /(\s*)\(/,
|
376
|
-
// to match the parms with
|
372
|
+
begin: /\(/,
|
377
373
|
end: /\)/,
|
378
374
|
excludeBegin: true,
|
379
375
|
excludeEnd: true,
|
@@ -486,9 +482,9 @@ function javascript(hljs) {
|
|
486
482
|
...BUILT_IN_GLOBALS,
|
487
483
|
"super",
|
488
484
|
"import"
|
489
|
-
]
|
485
|
+
]),
|
490
486
|
IDENT_RE$1,
|
491
|
-
regex.lookahead(/\
|
487
|
+
regex.lookahead(/\(/)
|
492
488
|
),
|
493
489
|
className: "title.function",
|
494
490
|
relevance: 0
|
@@ -569,8 +565,8 @@ function javascript(hljs) {
|
|
569
565
|
NUMBER,
|
570
566
|
CLASS_REFERENCE,
|
571
567
|
{
|
572
|
-
|
573
|
-
|
568
|
+
className: "attr",
|
569
|
+
begin: IDENT_RE$1 + regex.lookahead(":"),
|
574
570
|
relevance: 0
|
575
571
|
},
|
576
572
|
FUNCTION_VARIABLE,
|
@@ -604,7 +600,7 @@ function javascript(hljs) {
|
|
604
600
|
skip: true
|
605
601
|
},
|
606
602
|
{
|
607
|
-
begin:
|
603
|
+
begin: /\(/,
|
608
604
|
end: /\)/,
|
609
605
|
excludeBegin: true,
|
610
606
|
excludeEnd: true,
|
@@ -201,11 +201,6 @@ function markdown(hljs) {
|
|
201
201
|
contains: CONTAINABLE,
|
202
202
|
end: "$"
|
203
203
|
};
|
204
|
-
const ENTITY = {
|
205
|
-
//https://spec.commonmark.org/0.31.2/#entity-references
|
206
|
-
scope: "literal",
|
207
|
-
match: /&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/
|
208
|
-
};
|
209
204
|
return {
|
210
205
|
name: "Markdown",
|
211
206
|
aliases: [
|
@@ -223,8 +218,7 @@ function markdown(hljs) {
|
|
223
218
|
CODE,
|
224
219
|
HORIZONTAL_RULE,
|
225
220
|
LINK,
|
226
|
-
LINK_REFERENCE
|
227
|
-
ENTITY
|
221
|
+
LINK_REFERENCE
|
228
222
|
]
|
229
223
|
};
|
230
224
|
}
|
@@ -9,10 +9,6 @@ function php(hljs) {
|
|
9
9
|
/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,
|
10
10
|
NOT_PERL_ETC
|
11
11
|
);
|
12
|
-
const UPCASE_NAME_RE = regex.concat(
|
13
|
-
/[A-Z]+/,
|
14
|
-
NOT_PERL_ETC
|
15
|
-
);
|
16
12
|
const VARIABLE = {
|
17
13
|
scope: "variable",
|
18
14
|
match: "\\$+" + IDENT_RE
|
@@ -420,13 +416,7 @@ function php(hljs) {
|
|
420
416
|
CONSTRUCTOR_CALL
|
421
417
|
];
|
422
418
|
const ATTRIBUTES = {
|
423
|
-
begin: regex.concat(
|
424
|
-
/#\[\s*\\?/,
|
425
|
-
regex.either(
|
426
|
-
PASCAL_CASE_CLASS_NAME_RE,
|
427
|
-
UPCASE_NAME_RE
|
428
|
-
)
|
429
|
-
),
|
419
|
+
begin: regex.concat(/#\[\s*/, PASCAL_CASE_CLASS_NAME_RE),
|
430
420
|
beginScope: "meta",
|
431
421
|
end: /]/,
|
432
422
|
endScope: "meta",
|
@@ -456,10 +446,7 @@ function php(hljs) {
|
|
456
446
|
...ATTRIBUTE_CONTAINS,
|
457
447
|
{
|
458
448
|
scope: "meta",
|
459
|
-
|
460
|
-
{ match: PASCAL_CASE_CLASS_NAME_RE },
|
461
|
-
{ match: UPCASE_NAME_RE }
|
462
|
-
]
|
449
|
+
match: PASCAL_CASE_CLASS_NAME_RE
|
463
450
|
}
|
464
451
|
]
|
465
452
|
};
|
@@ -539,7 +526,6 @@ function php(hljs) {
|
|
539
526
|
keywords: KEYWORDS,
|
540
527
|
contains: [
|
541
528
|
"self",
|
542
|
-
ATTRIBUTES,
|
543
529
|
VARIABLE,
|
544
530
|
LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,
|
545
531
|
hljs.C_BLOCK_COMMENT_MODE,
|
@@ -346,8 +346,7 @@ function python(hljs) {
|
|
346
346
|
NUMBER,
|
347
347
|
{
|
348
348
|
// very common convention
|
349
|
-
|
350
|
-
match: /\bself\b/
|
349
|
+
begin: /\bself\b/
|
351
350
|
},
|
352
351
|
{
|
353
352
|
// eat "if" prior to string so that it won't accidentally be
|
@@ -355,7 +354,6 @@ function python(hljs) {
|
|
355
354
|
beginKeywords: "if",
|
356
355
|
relevance: 0
|
357
356
|
},
|
358
|
-
{ match: /\bor\b/, scope: "keyword" },
|
359
357
|
STRING,
|
360
358
|
COMMENT_TYPE,
|
361
359
|
hljs.HASH_COMMENT_MODE,
|