vue-editify 0.2.27 → 0.2.28

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/lib/editify.es.js CHANGED
@@ -2848,10 +2848,7 @@ const setEditorDomObserve = function() {
2848
2848
  if (!window.MutationObserver) {
2849
2849
  console.warn("The current browser does not support MutationObserver");
2850
2850
  }
2851
- if (this.__domObserver) {
2852
- this.__domObserver.disconnect();
2853
- this.__domObserver = null;
2854
- }
2851
+ removeEditorDomObserve.apply(this);
2855
2852
  this.__domObserver = new MutationObserver((mutationList) => {
2856
2853
  let length = mutationList.length;
2857
2854
  for (let i = 0; i < length; i++) {
@@ -4971,7 +4968,7 @@ class AlexEditor {
4971
4968
  event$1.off(this.$el, "beforeinput.alex_editor compositionstart.alex_editor compositionupdate.alex_editor compositionend.alex_editor keydown.alex_editor cut.alex_editor paste.alex_editor copy.alex_editor dragstart.alex_editor drop.alex_editor focus.alex_editor blur.alex_editor");
4972
4969
  }
4973
4970
  }
4974
- const version$2 = "1.5.0";
4971
+ const version$2 = "1.5.1";
4975
4972
  console.log(`%c alex-editor %c v${version$2} `, "padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;", "padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");
4976
4973
  const number = {
4977
4974
  /**
@@ -6565,7 +6562,8 @@ class Response {
6565
6562
  * @param {CompiledMode} mode
6566
6563
  */
6567
6564
  constructor(mode) {
6568
- if (mode.data === void 0) mode.data = {};
6565
+ if (mode.data === void 0)
6566
+ mode.data = {};
6569
6567
  this.data = mode.data;
6570
6568
  this.isMatchIgnored = false;
6571
6569
  }
@@ -6632,7 +6630,8 @@ class HTMLRenderer {
6632
6630
  *
6633
6631
  * @param {Node} node */
6634
6632
  openNode(node) {
6635
- if (!emitsWrappingTags(node)) return;
6633
+ if (!emitsWrappingTags(node))
6634
+ return;
6636
6635
  const className = scopeToCSSClass(
6637
6636
  node.scope,
6638
6637
  { prefix: this.classPrefix }
@@ -6644,7 +6643,8 @@ class HTMLRenderer {
6644
6643
  *
6645
6644
  * @param {Node} node */
6646
6645
  closeNode(node) {
6647
- if (!emitsWrappingTags(node)) return;
6646
+ if (!emitsWrappingTags(node))
6647
+ return;
6648
6648
  this.buffer += SPAN_CLOSE;
6649
6649
  }
6650
6650
  /**
@@ -6695,7 +6695,8 @@ class TokenTree {
6695
6695
  return void 0;
6696
6696
  }
6697
6697
  closeAllNodes() {
6698
- while (this.closeNode()) ;
6698
+ while (this.closeNode())
6699
+ ;
6699
6700
  }
6700
6701
  toJSON() {
6701
6702
  return JSON.stringify(this.rootNode, null, 4);
@@ -6725,8 +6726,10 @@ class TokenTree {
6725
6726
  * @param {Node} node
6726
6727
  */
6727
6728
  static _collapse(node) {
6728
- if (typeof node === "string") return;
6729
- if (!node.children) return;
6729
+ if (typeof node === "string")
6730
+ return;
6731
+ if (!node.children)
6732
+ return;
6730
6733
  if (node.children.every((el) => typeof el === "string")) {
6731
6734
  node.children = [node.children.join("")];
6732
6735
  } else {
@@ -6766,7 +6769,8 @@ class TokenTreeEmitter extends TokenTree {
6766
6769
  */
6767
6770
  __addSublanguage(emitter, name) {
6768
6771
  const node = emitter.root;
6769
- if (name) node.scope = `language:${name}`;
6772
+ if (name)
6773
+ node.scope = `language:${name}`;
6770
6774
  this.add(node);
6771
6775
  }
6772
6776
  toHTML() {
@@ -6779,8 +6783,10 @@ class TokenTreeEmitter extends TokenTree {
6779
6783
  }
6780
6784
  }
6781
6785
  function source$1(re) {
6782
- if (!re) return null;
6783
- if (typeof re === "string") return re;
6786
+ if (!re)
6787
+ return null;
6788
+ if (typeof re === "string")
6789
+ return re;
6784
6790
  return re.source;
6785
6791
  }
6786
6792
  function lookahead$1(re) {
@@ -6869,7 +6875,8 @@ const SHEBANG = (opts = {}) => {
6869
6875
  relevance: 0,
6870
6876
  /** @type {ModeCallback} */
6871
6877
  "on:begin": (m, resp) => {
6872
- if (m.index !== 0) resp.ignoreMatch();
6878
+ if (m.index !== 0)
6879
+ resp.ignoreMatch();
6873
6880
  }
6874
6881
  }, opts);
6875
6882
  };
@@ -7019,7 +7026,8 @@ const END_SAME_AS_BEGIN = function(mode) {
7019
7026
  },
7020
7027
  /** @type {ModeCallback} */
7021
7028
  "on:end": (m, resp) => {
7022
- if (resp.data._beginMatch !== m[1]) resp.ignoreMatch();
7029
+ if (resp.data._beginMatch !== m[1])
7030
+ resp.ignoreMatch();
7023
7031
  }
7024
7032
  }
7025
7033
  );
@@ -7064,30 +7072,39 @@ function scopeClassName(mode, _parent) {
7064
7072
  }
7065
7073
  }
7066
7074
  function beginKeywords(mode, parent) {
7067
- if (!parent) return;
7068
- if (!mode.beginKeywords) return;
7075
+ if (!parent)
7076
+ return;
7077
+ if (!mode.beginKeywords)
7078
+ return;
7069
7079
  mode.begin = "\\b(" + mode.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)";
7070
7080
  mode.__beforeBegin = skipIfHasPrecedingDot;
7071
7081
  mode.keywords = mode.keywords || mode.beginKeywords;
7072
7082
  delete mode.beginKeywords;
7073
- if (mode.relevance === void 0) mode.relevance = 0;
7083
+ if (mode.relevance === void 0)
7084
+ mode.relevance = 0;
7074
7085
  }
7075
7086
  function compileIllegal(mode, _parent) {
7076
- if (!Array.isArray(mode.illegal)) return;
7087
+ if (!Array.isArray(mode.illegal))
7088
+ return;
7077
7089
  mode.illegal = either$1(...mode.illegal);
7078
7090
  }
7079
7091
  function compileMatch(mode, _parent) {
7080
- if (!mode.match) return;
7081
- if (mode.begin || mode.end) throw new Error("begin & end are not supported with match");
7092
+ if (!mode.match)
7093
+ return;
7094
+ if (mode.begin || mode.end)
7095
+ throw new Error("begin & end are not supported with match");
7082
7096
  mode.begin = mode.match;
7083
7097
  delete mode.match;
7084
7098
  }
7085
7099
  function compileRelevance(mode, _parent) {
7086
- if (mode.relevance === void 0) mode.relevance = 1;
7100
+ if (mode.relevance === void 0)
7101
+ mode.relevance = 1;
7087
7102
  }
7088
7103
  const beforeMatchExt = (mode, parent) => {
7089
- if (!mode.beforeMatch) return;
7090
- if (mode.starts) throw new Error("beforeMatch cannot be used with starts");
7104
+ if (!mode.beforeMatch)
7105
+ return;
7106
+ if (mode.starts)
7107
+ throw new Error("beforeMatch cannot be used with starts");
7091
7108
  const originalMode = Object.assign({}, mode);
7092
7109
  Object.keys(mode).forEach((key) => {
7093
7110
  delete mode[key];
@@ -7162,7 +7179,8 @@ const warn = (message, ...args) => {
7162
7179
  console.log(`WARN: ${message}`, ...args);
7163
7180
  };
7164
7181
  const deprecated = (version2, message) => {
7165
- if (seenDeprecations[`${version2}/${message}`]) return;
7182
+ if (seenDeprecations[`${version2}/${message}`])
7183
+ return;
7166
7184
  console.log(`Deprecated as of ${version2}. ${message}`);
7167
7185
  seenDeprecations[`${version2}/${message}`] = true;
7168
7186
  };
@@ -7182,7 +7200,8 @@ function remapScopeNames(mode, regexes, { key }) {
7182
7200
  mode[key]._multi = true;
7183
7201
  }
7184
7202
  function beginMultiClass(mode) {
7185
- if (!Array.isArray(mode.begin)) return;
7203
+ if (!Array.isArray(mode.begin))
7204
+ return;
7186
7205
  if (mode.skip || mode.excludeBegin || mode.returnBegin) {
7187
7206
  error("skip, excludeBegin, returnBegin not compatible with beginScope: {}");
7188
7207
  throw MultiClassError;
@@ -7195,7 +7214,8 @@ function beginMultiClass(mode) {
7195
7214
  mode.begin = _rewriteBackreferences(mode.begin, { joinWith: "" });
7196
7215
  }
7197
7216
  function endMultiClass(mode) {
7198
- if (!Array.isArray(mode.end)) return;
7217
+ if (!Array.isArray(mode.end))
7218
+ return;
7199
7219
  if (mode.skip || mode.excludeEnd || mode.returnEnd) {
7200
7220
  error("skip, excludeEnd, returnEnd not compatible with endScope: {}");
7201
7221
  throw MultiClassError;
@@ -7276,7 +7296,8 @@ function compileLanguage(language) {
7276
7296
  }
7277
7297
  // @ts-ignore
7278
7298
  getMatcher(index) {
7279
- if (this.multiRegexes[index]) return this.multiRegexes[index];
7299
+ if (this.multiRegexes[index])
7300
+ return this.multiRegexes[index];
7280
7301
  const matcher = new MultiRegex();
7281
7302
  this.rules.slice(index).forEach(([re, opts]) => matcher.addRule(re, opts));
7282
7303
  matcher.compile();
@@ -7292,7 +7313,8 @@ function compileLanguage(language) {
7292
7313
  // @ts-ignore
7293
7314
  addRule(re, opts) {
7294
7315
  this.rules.push([re, opts]);
7295
- if (opts.type === "begin") this.count++;
7316
+ if (opts.type === "begin")
7317
+ this.count++;
7296
7318
  }
7297
7319
  /** @param {string} s */
7298
7320
  exec(s) {
@@ -7300,7 +7322,8 @@ function compileLanguage(language) {
7300
7322
  m.lastIndex = this.lastIndex;
7301
7323
  let result = m.exec(s);
7302
7324
  if (this.resumingScanAtSamePosition()) {
7303
- if (result && result.index === this.lastIndex) ;
7325
+ if (result && result.index === this.lastIndex)
7326
+ ;
7304
7327
  else {
7305
7328
  const m2 = this.getMatcher(0);
7306
7329
  m2.lastIndex = this.lastIndex + 1;
@@ -7332,7 +7355,8 @@ function compileLanguage(language) {
7332
7355
  /** @type CompiledMode */
7333
7356
  mode
7334
7357
  );
7335
- if (mode.isCompiled) return cmode;
7358
+ if (mode.isCompiled)
7359
+ return cmode;
7336
7360
  [
7337
7361
  scopeClassName,
7338
7362
  // do this early so compiler extensions generally don't have to worry about
@@ -7364,20 +7388,25 @@ function compileLanguage(language) {
7364
7388
  }
7365
7389
  cmode.keywordPatternRe = langRe(keywordPattern, true);
7366
7390
  if (parent) {
7367
- if (!mode.begin) mode.begin = /\B|\b/;
7391
+ if (!mode.begin)
7392
+ mode.begin = /\B|\b/;
7368
7393
  cmode.beginRe = langRe(cmode.begin);
7369
- if (!mode.end && !mode.endsWithParent) mode.end = /\B|\b/;
7370
- if (mode.end) cmode.endRe = langRe(cmode.end);
7394
+ if (!mode.end && !mode.endsWithParent)
7395
+ mode.end = /\B|\b/;
7396
+ if (mode.end)
7397
+ cmode.endRe = langRe(cmode.end);
7371
7398
  cmode.terminatorEnd = source$1(cmode.end) || "";
7372
7399
  if (mode.endsWithParent && parent.terminatorEnd) {
7373
7400
  cmode.terminatorEnd += (mode.end ? "|" : "") + parent.terminatorEnd;
7374
7401
  }
7375
7402
  }
7376
- if (mode.illegal) cmode.illegalRe = langRe(
7377
- /** @type {RegExp | string} */
7378
- mode.illegal
7379
- );
7380
- if (!mode.contains) mode.contains = [];
7403
+ if (mode.illegal)
7404
+ cmode.illegalRe = langRe(
7405
+ /** @type {RegExp | string} */
7406
+ mode.illegal
7407
+ );
7408
+ if (!mode.contains)
7409
+ mode.contains = [];
7381
7410
  mode.contains = [].concat(...mode.contains.map(function(c2) {
7382
7411
  return expandOrCloneMode(c2 === "self" ? mode : c2);
7383
7412
  }));
@@ -7394,7 +7423,8 @@ function compileLanguage(language) {
7394
7423
  cmode.matcher = buildModeRegex(cmode);
7395
7424
  return cmode;
7396
7425
  }
7397
- if (!language.compilerExtensions) language.compilerExtensions = [];
7426
+ if (!language.compilerExtensions)
7427
+ language.compilerExtensions = [];
7398
7428
  if (language.contains && language.contains.includes("self")) {
7399
7429
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
7400
7430
  }
@@ -7405,7 +7435,8 @@ function compileLanguage(language) {
7405
7435
  );
7406
7436
  }
7407
7437
  function dependencyOnParent(mode) {
7408
- if (!mode) return false;
7438
+ if (!mode)
7439
+ return false;
7409
7440
  return mode.endsWithParent || dependencyOnParent(mode.starts);
7410
7441
  }
7411
7442
  function expandOrCloneMode(mode) {
@@ -7425,7 +7456,7 @@ function expandOrCloneMode(mode) {
7425
7456
  }
7426
7457
  return mode;
7427
7458
  }
7428
- var version$1 = "11.10.0";
7459
+ var version$1 = "11.9.0";
7429
7460
  class HTMLInjectionError extends Error {
7430
7461
  constructor(reason, html) {
7431
7462
  super(reason);
@@ -7522,7 +7553,8 @@ const HLJS = function(hljs) {
7522
7553
  emitter.addText(buf);
7523
7554
  buf = "";
7524
7555
  keywordHits[word] = (keywordHits[word] || 0) + 1;
7525
- if (keywordHits[word] <= MAX_KEYWORD_HITS) relevance += keywordRelevance;
7556
+ if (keywordHits[word] <= MAX_KEYWORD_HITS)
7557
+ relevance += keywordRelevance;
7526
7558
  if (kind.startsWith("_")) {
7527
7559
  buf += match[0];
7528
7560
  } else {
@@ -7539,7 +7571,8 @@ const HLJS = function(hljs) {
7539
7571
  emitter.addText(buf);
7540
7572
  }
7541
7573
  function processSubLanguage() {
7542
- if (modeBuffer === "") return;
7574
+ if (modeBuffer === "")
7575
+ return;
7543
7576
  let result2 = null;
7544
7577
  if (typeof top.subLanguage === "string") {
7545
7578
  if (!languages2[top.subLanguage]) {
@@ -7566,7 +7599,8 @@ const HLJS = function(hljs) {
7566
7599
  modeBuffer = "";
7567
7600
  }
7568
7601
  function emitKeyword(keyword, scope) {
7569
- if (keyword === "") return;
7602
+ if (keyword === "")
7603
+ return;
7570
7604
  emitter.startScope(scope);
7571
7605
  emitter.addText(keyword);
7572
7606
  emitter.endScope();
@@ -7613,7 +7647,8 @@ const HLJS = function(hljs) {
7613
7647
  if (mode["on:end"]) {
7614
7648
  const resp = new Response(mode);
7615
7649
  mode["on:end"](match, resp);
7616
- if (resp.isMatchIgnored) matched = false;
7650
+ if (resp.isMatchIgnored)
7651
+ matched = false;
7617
7652
  }
7618
7653
  if (matched) {
7619
7654
  while (mode.endsParent && mode.parent) {
@@ -7641,9 +7676,11 @@ const HLJS = function(hljs) {
7641
7676
  const resp = new Response(newMode);
7642
7677
  const beforeCallbacks = [newMode.__beforeBegin, newMode["on:begin"]];
7643
7678
  for (const cb of beforeCallbacks) {
7644
- if (!cb) continue;
7679
+ if (!cb)
7680
+ continue;
7645
7681
  cb(match, resp);
7646
- if (resp.isMatchIgnored) return doIgnore(lexeme);
7682
+ if (resp.isMatchIgnored)
7683
+ return doIgnore(lexeme);
7647
7684
  }
7648
7685
  if (newMode.skip) {
7649
7686
  modeBuffer += lexeme;
@@ -7776,7 +7813,8 @@ const HLJS = function(hljs) {
7776
7813
  }
7777
7814
  top.matcher.lastIndex = index;
7778
7815
  const match = top.matcher.exec(codeToHighlight);
7779
- if (!match) break;
7816
+ if (!match)
7817
+ break;
7780
7818
  const beforeMatch = codeToHighlight.substring(index, match.index);
7781
7819
  const processedCount = processLexeme(beforeMatch, match);
7782
7820
  index = match.index + processedCount;
@@ -7845,7 +7883,8 @@ const HLJS = function(hljs) {
7845
7883
  );
7846
7884
  results.unshift(plaintext2);
7847
7885
  const sorted = results.sort((a, b) => {
7848
- if (a.relevance !== b.relevance) return b.relevance - a.relevance;
7886
+ if (a.relevance !== b.relevance)
7887
+ return b.relevance - a.relevance;
7849
7888
  if (a.language && b.language) {
7850
7889
  if (getLanguage(a.language).supersetOf === b.language) {
7851
7890
  return 1;
@@ -7868,7 +7907,8 @@ const HLJS = function(hljs) {
7868
7907
  function highlightElement(element2) {
7869
7908
  let node = null;
7870
7909
  const language = blockLanguage(element2);
7871
- if (shouldNotHighlight(language)) return;
7910
+ if (shouldNotHighlight(language))
7911
+ return;
7872
7912
  fire(
7873
7913
  "before:highlightElement",
7874
7914
  { el: element2, language }
@@ -7933,7 +7973,8 @@ const HLJS = function(hljs) {
7933
7973
  blocks.forEach(highlightElement);
7934
7974
  }
7935
7975
  function boot() {
7936
- if (wantsHighlight) highlightAll();
7976
+ if (wantsHighlight)
7977
+ highlightAll();
7937
7978
  }
7938
7979
  if (typeof window !== "undefined" && window.addEventListener) {
7939
7980
  window.addEventListener("DOMContentLoaded", boot, false);
@@ -7951,7 +7992,8 @@ const HLJS = function(hljs) {
7951
7992
  }
7952
7993
  lang = PLAINTEXT_LANGUAGE;
7953
7994
  }
7954
- if (!lang.name) lang.name = languageName;
7995
+ if (!lang.name)
7996
+ lang.name = languageName;
7955
7997
  languages2[languageName] = lang;
7956
7998
  lang.rawDefinition = languageDefinition.bind(null, hljs);
7957
7999
  if (lang.aliases) {
@@ -8104,7 +8146,6 @@ function json(hljs) {
8104
8146
  };
8105
8147
  return {
8106
8148
  name: "JSON",
8107
- aliases: ["jsonc"],
8108
8149
  keywords: {
8109
8150
  literal: LITERALS2
8110
8151
  },
@@ -8361,7 +8402,7 @@ function javascript$1(hljs) {
8361
8402
  // defined later
8362
8403
  };
8363
8404
  const HTML_TEMPLATE = {
8364
- begin: ".?html`",
8405
+ begin: "html`",
8365
8406
  end: "",
8366
8407
  starts: {
8367
8408
  end: "`",
@@ -8374,7 +8415,7 @@ function javascript$1(hljs) {
8374
8415
  }
8375
8416
  };
8376
8417
  const CSS_TEMPLATE = {
8377
- begin: ".?css`",
8418
+ begin: "css`",
8378
8419
  end: "",
8379
8420
  starts: {
8380
8421
  end: "`",
@@ -8387,7 +8428,7 @@ function javascript$1(hljs) {
8387
8428
  }
8388
8429
  };
8389
8430
  const GRAPHQL_TEMPLATE = {
8390
- begin: ".?gql`",
8431
+ begin: "gql`",
8391
8432
  end: "",
8392
8433
  starts: {
8393
8434
  end: "`",
@@ -8483,7 +8524,7 @@ function javascript$1(hljs) {
8483
8524
  const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([
8484
8525
  // eat recursive parens in sub expressions
8485
8526
  {
8486
- begin: /(\s*)\(/,
8527
+ begin: /\(/,
8487
8528
  end: /\)/,
8488
8529
  keywords: KEYWORDS$1$1,
8489
8530
  contains: ["self"].concat(SUBST_AND_COMMENTS)
@@ -8491,9 +8532,7 @@ function javascript$1(hljs) {
8491
8532
  ]);
8492
8533
  const PARAMS = {
8493
8534
  className: "params",
8494
- // convert this to negative lookbehind in v12
8495
- begin: /(\s*)\(/,
8496
- // to match the parms with
8535
+ begin: /\(/,
8497
8536
  end: /\)/,
8498
8537
  excludeBegin: true,
8499
8538
  excludeEnd: true,
@@ -8606,9 +8645,9 @@ function javascript$1(hljs) {
8606
8645
  ...BUILT_IN_GLOBALS$1,
8607
8646
  "super",
8608
8647
  "import"
8609
- ].map((x) => `${x}\\s*\\(`)),
8648
+ ]),
8610
8649
  IDENT_RE$1$1,
8611
- regex.lookahead(/\s*\(/)
8650
+ regex.lookahead(/\(/)
8612
8651
  ),
8613
8652
  className: "title.function",
8614
8653
  relevance: 0
@@ -8724,7 +8763,7 @@ function javascript$1(hljs) {
8724
8763
  skip: true
8725
8764
  },
8726
8765
  {
8727
- begin: /(\s*)\(/,
8766
+ begin: /\(/,
8728
8767
  end: /\)/,
8729
8768
  excludeBegin: true,
8730
8769
  excludeEnd: true,
@@ -8844,7 +8883,8 @@ var NUMERIC$1 = {
8844
8883
  relevance: 0
8845
8884
  };
8846
8885
  function recurRegex(re, substitution, depth) {
8847
- if (depth === -1) return "";
8886
+ if (depth === -1)
8887
+ return "";
8848
8888
  return re.replace(substitution, (_) => {
8849
8889
  return recurRegex(re, substitution, depth - 1);
8850
8890
  });
@@ -8895,8 +8935,7 @@ function java(hljs) {
8895
8935
  "do",
8896
8936
  "sealed",
8897
8937
  "yield",
8898
- "permits",
8899
- "goto"
8938
+ "permits"
8900
8939
  ];
8901
8940
  const BUILT_INS2 = [
8902
8941
  "super",
@@ -9309,7 +9348,7 @@ function javascript(hljs) {
9309
9348
  // defined later
9310
9349
  };
9311
9350
  const HTML_TEMPLATE = {
9312
- begin: ".?html`",
9351
+ begin: "html`",
9313
9352
  end: "",
9314
9353
  starts: {
9315
9354
  end: "`",
@@ -9322,7 +9361,7 @@ function javascript(hljs) {
9322
9361
  }
9323
9362
  };
9324
9363
  const CSS_TEMPLATE = {
9325
- begin: ".?css`",
9364
+ begin: "css`",
9326
9365
  end: "",
9327
9366
  starts: {
9328
9367
  end: "`",
@@ -9335,7 +9374,7 @@ function javascript(hljs) {
9335
9374
  }
9336
9375
  };
9337
9376
  const GRAPHQL_TEMPLATE = {
9338
- begin: ".?gql`",
9377
+ begin: "gql`",
9339
9378
  end: "",
9340
9379
  starts: {
9341
9380
  end: "`",
@@ -9431,7 +9470,7 @@ function javascript(hljs) {
9431
9470
  const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([
9432
9471
  // eat recursive parens in sub expressions
9433
9472
  {
9434
- begin: /(\s*)\(/,
9473
+ begin: /\(/,
9435
9474
  end: /\)/,
9436
9475
  keywords: KEYWORDS$12,
9437
9476
  contains: ["self"].concat(SUBST_AND_COMMENTS)
@@ -9439,9 +9478,7 @@ function javascript(hljs) {
9439
9478
  ]);
9440
9479
  const PARAMS = {
9441
9480
  className: "params",
9442
- // convert this to negative lookbehind in v12
9443
- begin: /(\s*)\(/,
9444
- // to match the parms with
9481
+ begin: /\(/,
9445
9482
  end: /\)/,
9446
9483
  excludeBegin: true,
9447
9484
  excludeEnd: true,
@@ -9554,9 +9591,9 @@ function javascript(hljs) {
9554
9591
  ...BUILT_IN_GLOBALS,
9555
9592
  "super",
9556
9593
  "import"
9557
- ].map((x) => `${x}\\s*\\(`)),
9594
+ ]),
9558
9595
  IDENT_RE$12,
9559
- regex.lookahead(/\s*\(/)
9596
+ regex.lookahead(/\(/)
9560
9597
  ),
9561
9598
  className: "title.function",
9562
9599
  relevance: 0
@@ -9672,7 +9709,7 @@ function javascript(hljs) {
9672
9709
  skip: true
9673
9710
  },
9674
9711
  {
9675
- begin: /(\s*)\(/,
9712
+ begin: /\(/,
9676
9713
  end: /\)/,
9677
9714
  excludeBegin: true,
9678
9715
  excludeEnd: true,
@@ -9781,15 +9818,10 @@ function typescript(hljs) {
9781
9818
  "unknown"
9782
9819
  ];
9783
9820
  const NAMESPACE = {
9784
- begin: [
9785
- /namespace/,
9786
- /\s+/,
9787
- hljs.IDENT_RE
9788
- ],
9789
- beginScope: {
9790
- 1: "keyword",
9791
- 3: "title.class"
9792
- }
9821
+ beginKeywords: "namespace",
9822
+ end: /\{/,
9823
+ excludeEnd: true,
9824
+ contains: [tsLanguage.exports.CLASS_REFERENCE]
9793
9825
  };
9794
9826
  const INTERFACE = {
9795
9827
  beginKeywords: "interface",
@@ -9808,7 +9840,7 @@ function typescript(hljs) {
9808
9840
  };
9809
9841
  const TS_SPECIFIC_KEYWORDS = [
9810
9842
  "type",
9811
- // "namespace",
9843
+ "namespace",
9812
9844
  "interface",
9813
9845
  "public",
9814
9846
  "private",
@@ -9818,8 +9850,7 @@ function typescript(hljs) {
9818
9850
  "abstract",
9819
9851
  "readonly",
9820
9852
  "enum",
9821
- "override",
9822
- "satisfies"
9853
+ "override"
9823
9854
  ];
9824
9855
  const KEYWORDS$12 = {
9825
9856
  $pattern: IDENT_RE,
@@ -9841,13 +9872,6 @@ function typescript(hljs) {
9841
9872
  };
9842
9873
  Object.assign(tsLanguage.keywords, KEYWORDS$12);
9843
9874
  tsLanguage.exports.PARAMS_CONTAINS.push(DECORATOR);
9844
- const ATTRIBUTE_HIGHLIGHT = tsLanguage.contains.find((c2) => c2.className === "attr");
9845
- tsLanguage.exports.PARAMS_CONTAINS.push([
9846
- tsLanguage.exports.CLASS_REFERENCE,
9847
- // class reference for highlighting the params types
9848
- ATTRIBUTE_HIGHLIGHT
9849
- // highlight the params key
9850
- ]);
9851
9875
  tsLanguage.contains = tsLanguage.contains.concat([
9852
9876
  DECORATOR,
9853
9877
  NAMESPACE,
@@ -10216,8 +10240,7 @@ function python(hljs) {
10216
10240
  NUMBER,
10217
10241
  {
10218
10242
  // very common convention
10219
- scope: "variable.language",
10220
- match: /\bself\b/
10243
+ begin: /\bself\b/
10221
10244
  },
10222
10245
  {
10223
10246
  // eat "if" prior to string so that it won't accidentally be
@@ -10225,7 +10248,6 @@ function python(hljs) {
10225
10248
  beginKeywords: "if",
10226
10249
  relevance: 0
10227
10250
  },
10228
- { match: /\bor\b/, scope: "keyword" },
10229
10251
  STRING,
10230
10252
  COMMENT_TYPE,
10231
10253
  hljs.HASH_COMMENT_MODE,
@@ -10331,7 +10353,8 @@ function php(hljs) {
10331
10353
  resp.data._beginMatch = m[1] || m[2];
10332
10354
  },
10333
10355
  "on:end": (m, resp) => {
10334
- if (resp.data._beginMatch !== m[1]) resp.ignoreMatch();
10356
+ if (resp.data._beginMatch !== m[1])
10357
+ resp.ignoreMatch();
10335
10358
  }
10336
10359
  };
10337
10360
  const NOWDOC = hljs.END_SAME_AS_BEGIN({
@@ -10902,7 +10925,7 @@ const MODES$2 = (hljs) => {
10902
10925
  }
10903
10926
  };
10904
10927
  };
10905
- const HTML_TAGS$2 = [
10928
+ const TAGS$2 = [
10906
10929
  "a",
10907
10930
  "abbr",
10908
10931
  "address",
@@ -10954,16 +10977,11 @@ const HTML_TAGS$2 = [
10954
10977
  "nav",
10955
10978
  "object",
10956
10979
  "ol",
10957
- "optgroup",
10958
- "option",
10959
10980
  "p",
10960
- "picture",
10961
10981
  "q",
10962
10982
  "quote",
10963
10983
  "samp",
10964
10984
  "section",
10965
- "select",
10966
- "source",
10967
10985
  "span",
10968
10986
  "strong",
10969
10987
  "summary",
@@ -10981,53 +10999,6 @@ const HTML_TAGS$2 = [
10981
10999
  "var",
10982
11000
  "video"
10983
11001
  ];
10984
- const SVG_TAGS$2 = [
10985
- "defs",
10986
- "g",
10987
- "marker",
10988
- "mask",
10989
- "pattern",
10990
- "svg",
10991
- "switch",
10992
- "symbol",
10993
- "feBlend",
10994
- "feColorMatrix",
10995
- "feComponentTransfer",
10996
- "feComposite",
10997
- "feConvolveMatrix",
10998
- "feDiffuseLighting",
10999
- "feDisplacementMap",
11000
- "feFlood",
11001
- "feGaussianBlur",
11002
- "feImage",
11003
- "feMerge",
11004
- "feMorphology",
11005
- "feOffset",
11006
- "feSpecularLighting",
11007
- "feTile",
11008
- "feTurbulence",
11009
- "linearGradient",
11010
- "radialGradient",
11011
- "stop",
11012
- "circle",
11013
- "ellipse",
11014
- "image",
11015
- "line",
11016
- "path",
11017
- "polygon",
11018
- "polyline",
11019
- "rect",
11020
- "text",
11021
- "use",
11022
- "textPath",
11023
- "tspan",
11024
- "foreignObject",
11025
- "clipPath"
11026
- ];
11027
- const TAGS$2 = [
11028
- ...HTML_TAGS$2,
11029
- ...SVG_TAGS$2
11030
- ];
11031
11002
  const MEDIA_FEATURES$2 = [
11032
11003
  "any-hover",
11033
11004
  "any-pointer",
@@ -11063,7 +11034,7 @@ const MEDIA_FEATURES$2 = [
11063
11034
  "max-width",
11064
11035
  "min-height",
11065
11036
  "max-height"
11066
- ].sort().reverse();
11037
+ ];
11067
11038
  const PSEUDO_CLASSES$2 = [
11068
11039
  "active",
11069
11040
  "any-link",
@@ -11138,7 +11109,7 @@ const PSEUDO_CLASSES$2 = [
11138
11109
  "visited",
11139
11110
  "where"
11140
11111
  // where()
11141
- ].sort().reverse();
11112
+ ];
11142
11113
  const PSEUDO_ELEMENTS$2 = [
11143
11114
  "after",
11144
11115
  "backdrop",
@@ -11154,13 +11125,11 @@ const PSEUDO_ELEMENTS$2 = [
11154
11125
  "selection",
11155
11126
  "slotted",
11156
11127
  "spelling-error"
11157
- ].sort().reverse();
11128
+ ];
11158
11129
  const ATTRIBUTES$2 = [
11159
- "accent-color",
11160
11130
  "align-content",
11161
11131
  "align-items",
11162
11132
  "align-self",
11163
- "alignment-baseline",
11164
11133
  "all",
11165
11134
  "animation",
11166
11135
  "animation-delay",
@@ -11171,7 +11140,6 @@ const ATTRIBUTES$2 = [
11171
11140
  "animation-name",
11172
11141
  "animation-play-state",
11173
11142
  "animation-timing-function",
11174
- "appearance",
11175
11143
  "backface-visibility",
11176
11144
  "background",
11177
11145
  "background-attachment",
@@ -11183,7 +11151,6 @@ const ATTRIBUTES$2 = [
11183
11151
  "background-position",
11184
11152
  "background-repeat",
11185
11153
  "background-size",
11186
- "baseline-shift",
11187
11154
  "block-size",
11188
11155
  "border",
11189
11156
  "border-block",
@@ -11230,14 +11197,10 @@ const ATTRIBUTES$2 = [
11230
11197
  "border-left-width",
11231
11198
  "border-radius",
11232
11199
  "border-right",
11233
- "border-end-end-radius",
11234
- "border-end-start-radius",
11235
11200
  "border-right-color",
11236
11201
  "border-right-style",
11237
11202
  "border-right-width",
11238
11203
  "border-spacing",
11239
- "border-start-end-radius",
11240
- "border-start-start-radius",
11241
11204
  "border-style",
11242
11205
  "border-top",
11243
11206
  "border-top-color",
@@ -11253,8 +11216,6 @@ const ATTRIBUTES$2 = [
11253
11216
  "break-after",
11254
11217
  "break-before",
11255
11218
  "break-inside",
11256
- "cx",
11257
- "cy",
11258
11219
  "caption-side",
11259
11220
  "caret-color",
11260
11221
  "clear",
@@ -11262,11 +11223,6 @@ const ATTRIBUTES$2 = [
11262
11223
  "clip-path",
11263
11224
  "clip-rule",
11264
11225
  "color",
11265
- "color-interpolation",
11266
- "color-interpolation-filters",
11267
- "color-profile",
11268
- "color-rendering",
11269
- "color-scheme",
11270
11226
  "column-count",
11271
11227
  "column-fill",
11272
11228
  "column-gap",
@@ -11288,12 +11244,7 @@ const ATTRIBUTES$2 = [
11288
11244
  "cursor",
11289
11245
  "direction",
11290
11246
  "display",
11291
- "dominant-baseline",
11292
11247
  "empty-cells",
11293
- "enable-background",
11294
- "fill",
11295
- "fill-opacity",
11296
- "fill-rule",
11297
11248
  "filter",
11298
11249
  "flex",
11299
11250
  "flex-basis",
@@ -11304,8 +11255,6 @@ const ATTRIBUTES$2 = [
11304
11255
  "flex-wrap",
11305
11256
  "float",
11306
11257
  "flow",
11307
- "flood-color",
11308
- "flood-opacity",
11309
11258
  "font",
11310
11259
  "font-display",
11311
11260
  "font-family",
@@ -11327,7 +11276,6 @@ const ATTRIBUTES$2 = [
11327
11276
  "font-variation-settings",
11328
11277
  "font-weight",
11329
11278
  "gap",
11330
- "glyph-orientation-horizontal",
11331
11279
  "glyph-orientation-vertical",
11332
11280
  "grid",
11333
11281
  "grid-area",
@@ -11354,32 +11302,16 @@ const ATTRIBUTES$2 = [
11354
11302
  "image-resolution",
11355
11303
  "ime-mode",
11356
11304
  "inline-size",
11357
- "inset",
11358
- "inset-block",
11359
- "inset-block-end",
11360
- "inset-block-start",
11361
- "inset-inline",
11362
- "inset-inline-end",
11363
- "inset-inline-start",
11364
11305
  "isolation",
11365
- "kerning",
11366
11306
  "justify-content",
11367
- "justify-items",
11368
- "justify-self",
11369
11307
  "left",
11370
11308
  "letter-spacing",
11371
- "lighting-color",
11372
11309
  "line-break",
11373
11310
  "line-height",
11374
11311
  "list-style",
11375
11312
  "list-style-image",
11376
11313
  "list-style-position",
11377
11314
  "list-style-type",
11378
- "marker",
11379
- "marker-end",
11380
- "marker-mid",
11381
- "marker-start",
11382
- "mask",
11383
11315
  "margin",
11384
11316
  "margin-block",
11385
11317
  "margin-block-end",
@@ -11461,15 +11393,12 @@ const ATTRIBUTES$2 = [
11461
11393
  "pointer-events",
11462
11394
  "position",
11463
11395
  "quotes",
11464
- "r",
11465
11396
  "resize",
11466
11397
  "rest",
11467
11398
  "rest-after",
11468
11399
  "rest-before",
11469
11400
  "right",
11470
- "rotate",
11471
11401
  "row-gap",
11472
- "scale",
11473
11402
  "scroll-margin",
11474
11403
  "scroll-margin-block",
11475
11404
  "scroll-margin-block-end",
@@ -11501,24 +11430,12 @@ const ATTRIBUTES$2 = [
11501
11430
  "shape-image-threshold",
11502
11431
  "shape-margin",
11503
11432
  "shape-outside",
11504
- "shape-rendering",
11505
- "stop-color",
11506
- "stop-opacity",
11507
- "stroke",
11508
- "stroke-dasharray",
11509
- "stroke-dashoffset",
11510
- "stroke-linecap",
11511
- "stroke-linejoin",
11512
- "stroke-miterlimit",
11513
- "stroke-opacity",
11514
- "stroke-width",
11515
11433
  "speak",
11516
11434
  "speak-as",
11517
11435
  "src",
11518
11436
  // @font-face
11519
11437
  "tab-size",
11520
11438
  "table-layout",
11521
- "text-anchor",
11522
11439
  "text-align",
11523
11440
  "text-align-all",
11524
11441
  "text-align-last",
@@ -11526,9 +11443,7 @@ const ATTRIBUTES$2 = [
11526
11443
  "text-decoration",
11527
11444
  "text-decoration-color",
11528
11445
  "text-decoration-line",
11529
- "text-decoration-skip-ink",
11530
11446
  "text-decoration-style",
11531
- "text-decoration-thickness",
11532
11447
  "text-emphasis",
11533
11448
  "text-emphasis-color",
11534
11449
  "text-emphasis-position",
@@ -11540,7 +11455,6 @@ const ATTRIBUTES$2 = [
11540
11455
  "text-rendering",
11541
11456
  "text-shadow",
11542
11457
  "text-transform",
11543
- "text-underline-offset",
11544
11458
  "text-underline-position",
11545
11459
  "top",
11546
11460
  "transform",
@@ -11552,9 +11466,7 @@ const ATTRIBUTES$2 = [
11552
11466
  "transition-duration",
11553
11467
  "transition-property",
11554
11468
  "transition-timing-function",
11555
- "translate",
11556
11469
  "unicode-bidi",
11557
- "vector-effect",
11558
11470
  "vertical-align",
11559
11471
  "visibility",
11560
11472
  "voice-balance",
@@ -11573,10 +11485,10 @@ const ATTRIBUTES$2 = [
11573
11485
  "word-spacing",
11574
11486
  "word-wrap",
11575
11487
  "writing-mode",
11576
- "x",
11577
- "y",
11578
11488
  "z-index"
11579
- ].sort().reverse();
11489
+ // reverse makes sure longer attributes `font-weight` are matched fully
11490
+ // instead of getting false positives on say `font`
11491
+ ].reverse();
11580
11492
  function css(hljs) {
11581
11493
  const regex = hljs.regex;
11582
11494
  const modes = MODES$2(hljs);
@@ -11742,7 +11654,7 @@ const MODES$1 = (hljs) => {
11742
11654
  }
11743
11655
  };
11744
11656
  };
11745
- const HTML_TAGS$1 = [
11657
+ const TAGS$1 = [
11746
11658
  "a",
11747
11659
  "abbr",
11748
11660
  "address",
@@ -11794,16 +11706,11 @@ const HTML_TAGS$1 = [
11794
11706
  "nav",
11795
11707
  "object",
11796
11708
  "ol",
11797
- "optgroup",
11798
- "option",
11799
11709
  "p",
11800
- "picture",
11801
11710
  "q",
11802
11711
  "quote",
11803
11712
  "samp",
11804
11713
  "section",
11805
- "select",
11806
- "source",
11807
11714
  "span",
11808
11715
  "strong",
11809
11716
  "summary",
@@ -11821,53 +11728,6 @@ const HTML_TAGS$1 = [
11821
11728
  "var",
11822
11729
  "video"
11823
11730
  ];
11824
- const SVG_TAGS$1 = [
11825
- "defs",
11826
- "g",
11827
- "marker",
11828
- "mask",
11829
- "pattern",
11830
- "svg",
11831
- "switch",
11832
- "symbol",
11833
- "feBlend",
11834
- "feColorMatrix",
11835
- "feComponentTransfer",
11836
- "feComposite",
11837
- "feConvolveMatrix",
11838
- "feDiffuseLighting",
11839
- "feDisplacementMap",
11840
- "feFlood",
11841
- "feGaussianBlur",
11842
- "feImage",
11843
- "feMerge",
11844
- "feMorphology",
11845
- "feOffset",
11846
- "feSpecularLighting",
11847
- "feTile",
11848
- "feTurbulence",
11849
- "linearGradient",
11850
- "radialGradient",
11851
- "stop",
11852
- "circle",
11853
- "ellipse",
11854
- "image",
11855
- "line",
11856
- "path",
11857
- "polygon",
11858
- "polyline",
11859
- "rect",
11860
- "text",
11861
- "use",
11862
- "textPath",
11863
- "tspan",
11864
- "foreignObject",
11865
- "clipPath"
11866
- ];
11867
- const TAGS$1 = [
11868
- ...HTML_TAGS$1,
11869
- ...SVG_TAGS$1
11870
- ];
11871
11731
  const MEDIA_FEATURES$1 = [
11872
11732
  "any-hover",
11873
11733
  "any-pointer",
@@ -11903,7 +11763,7 @@ const MEDIA_FEATURES$1 = [
11903
11763
  "max-width",
11904
11764
  "min-height",
11905
11765
  "max-height"
11906
- ].sort().reverse();
11766
+ ];
11907
11767
  const PSEUDO_CLASSES$1 = [
11908
11768
  "active",
11909
11769
  "any-link",
@@ -11978,7 +11838,7 @@ const PSEUDO_CLASSES$1 = [
11978
11838
  "visited",
11979
11839
  "where"
11980
11840
  // where()
11981
- ].sort().reverse();
11841
+ ];
11982
11842
  const PSEUDO_ELEMENTS$1 = [
11983
11843
  "after",
11984
11844
  "backdrop",
@@ -11994,13 +11854,11 @@ const PSEUDO_ELEMENTS$1 = [
11994
11854
  "selection",
11995
11855
  "slotted",
11996
11856
  "spelling-error"
11997
- ].sort().reverse();
11857
+ ];
11998
11858
  const ATTRIBUTES$1 = [
11999
- "accent-color",
12000
11859
  "align-content",
12001
11860
  "align-items",
12002
11861
  "align-self",
12003
- "alignment-baseline",
12004
11862
  "all",
12005
11863
  "animation",
12006
11864
  "animation-delay",
@@ -12011,7 +11869,6 @@ const ATTRIBUTES$1 = [
12011
11869
  "animation-name",
12012
11870
  "animation-play-state",
12013
11871
  "animation-timing-function",
12014
- "appearance",
12015
11872
  "backface-visibility",
12016
11873
  "background",
12017
11874
  "background-attachment",
@@ -12023,7 +11880,6 @@ const ATTRIBUTES$1 = [
12023
11880
  "background-position",
12024
11881
  "background-repeat",
12025
11882
  "background-size",
12026
- "baseline-shift",
12027
11883
  "block-size",
12028
11884
  "border",
12029
11885
  "border-block",
@@ -12070,14 +11926,10 @@ const ATTRIBUTES$1 = [
12070
11926
  "border-left-width",
12071
11927
  "border-radius",
12072
11928
  "border-right",
12073
- "border-end-end-radius",
12074
- "border-end-start-radius",
12075
11929
  "border-right-color",
12076
11930
  "border-right-style",
12077
11931
  "border-right-width",
12078
11932
  "border-spacing",
12079
- "border-start-end-radius",
12080
- "border-start-start-radius",
12081
11933
  "border-style",
12082
11934
  "border-top",
12083
11935
  "border-top-color",
@@ -12093,8 +11945,6 @@ const ATTRIBUTES$1 = [
12093
11945
  "break-after",
12094
11946
  "break-before",
12095
11947
  "break-inside",
12096
- "cx",
12097
- "cy",
12098
11948
  "caption-side",
12099
11949
  "caret-color",
12100
11950
  "clear",
@@ -12102,11 +11952,6 @@ const ATTRIBUTES$1 = [
12102
11952
  "clip-path",
12103
11953
  "clip-rule",
12104
11954
  "color",
12105
- "color-interpolation",
12106
- "color-interpolation-filters",
12107
- "color-profile",
12108
- "color-rendering",
12109
- "color-scheme",
12110
11955
  "column-count",
12111
11956
  "column-fill",
12112
11957
  "column-gap",
@@ -12128,12 +11973,7 @@ const ATTRIBUTES$1 = [
12128
11973
  "cursor",
12129
11974
  "direction",
12130
11975
  "display",
12131
- "dominant-baseline",
12132
11976
  "empty-cells",
12133
- "enable-background",
12134
- "fill",
12135
- "fill-opacity",
12136
- "fill-rule",
12137
11977
  "filter",
12138
11978
  "flex",
12139
11979
  "flex-basis",
@@ -12144,8 +11984,6 @@ const ATTRIBUTES$1 = [
12144
11984
  "flex-wrap",
12145
11985
  "float",
12146
11986
  "flow",
12147
- "flood-color",
12148
- "flood-opacity",
12149
11987
  "font",
12150
11988
  "font-display",
12151
11989
  "font-family",
@@ -12167,7 +12005,6 @@ const ATTRIBUTES$1 = [
12167
12005
  "font-variation-settings",
12168
12006
  "font-weight",
12169
12007
  "gap",
12170
- "glyph-orientation-horizontal",
12171
12008
  "glyph-orientation-vertical",
12172
12009
  "grid",
12173
12010
  "grid-area",
@@ -12194,32 +12031,16 @@ const ATTRIBUTES$1 = [
12194
12031
  "image-resolution",
12195
12032
  "ime-mode",
12196
12033
  "inline-size",
12197
- "inset",
12198
- "inset-block",
12199
- "inset-block-end",
12200
- "inset-block-start",
12201
- "inset-inline",
12202
- "inset-inline-end",
12203
- "inset-inline-start",
12204
12034
  "isolation",
12205
- "kerning",
12206
12035
  "justify-content",
12207
- "justify-items",
12208
- "justify-self",
12209
12036
  "left",
12210
12037
  "letter-spacing",
12211
- "lighting-color",
12212
12038
  "line-break",
12213
12039
  "line-height",
12214
12040
  "list-style",
12215
12041
  "list-style-image",
12216
12042
  "list-style-position",
12217
12043
  "list-style-type",
12218
- "marker",
12219
- "marker-end",
12220
- "marker-mid",
12221
- "marker-start",
12222
- "mask",
12223
12044
  "margin",
12224
12045
  "margin-block",
12225
12046
  "margin-block-end",
@@ -12301,15 +12122,12 @@ const ATTRIBUTES$1 = [
12301
12122
  "pointer-events",
12302
12123
  "position",
12303
12124
  "quotes",
12304
- "r",
12305
12125
  "resize",
12306
12126
  "rest",
12307
12127
  "rest-after",
12308
12128
  "rest-before",
12309
12129
  "right",
12310
- "rotate",
12311
12130
  "row-gap",
12312
- "scale",
12313
12131
  "scroll-margin",
12314
12132
  "scroll-margin-block",
12315
12133
  "scroll-margin-block-end",
@@ -12341,24 +12159,12 @@ const ATTRIBUTES$1 = [
12341
12159
  "shape-image-threshold",
12342
12160
  "shape-margin",
12343
12161
  "shape-outside",
12344
- "shape-rendering",
12345
- "stop-color",
12346
- "stop-opacity",
12347
- "stroke",
12348
- "stroke-dasharray",
12349
- "stroke-dashoffset",
12350
- "stroke-linecap",
12351
- "stroke-linejoin",
12352
- "stroke-miterlimit",
12353
- "stroke-opacity",
12354
- "stroke-width",
12355
12162
  "speak",
12356
12163
  "speak-as",
12357
12164
  "src",
12358
12165
  // @font-face
12359
12166
  "tab-size",
12360
12167
  "table-layout",
12361
- "text-anchor",
12362
12168
  "text-align",
12363
12169
  "text-align-all",
12364
12170
  "text-align-last",
@@ -12366,9 +12172,7 @@ const ATTRIBUTES$1 = [
12366
12172
  "text-decoration",
12367
12173
  "text-decoration-color",
12368
12174
  "text-decoration-line",
12369
- "text-decoration-skip-ink",
12370
12175
  "text-decoration-style",
12371
- "text-decoration-thickness",
12372
12176
  "text-emphasis",
12373
12177
  "text-emphasis-color",
12374
12178
  "text-emphasis-position",
@@ -12380,7 +12184,6 @@ const ATTRIBUTES$1 = [
12380
12184
  "text-rendering",
12381
12185
  "text-shadow",
12382
12186
  "text-transform",
12383
- "text-underline-offset",
12384
12187
  "text-underline-position",
12385
12188
  "top",
12386
12189
  "transform",
@@ -12392,9 +12195,7 @@ const ATTRIBUTES$1 = [
12392
12195
  "transition-duration",
12393
12196
  "transition-property",
12394
12197
  "transition-timing-function",
12395
- "translate",
12396
12198
  "unicode-bidi",
12397
- "vector-effect",
12398
12199
  "vertical-align",
12399
12200
  "visibility",
12400
12201
  "voice-balance",
@@ -12413,11 +12214,11 @@ const ATTRIBUTES$1 = [
12413
12214
  "word-spacing",
12414
12215
  "word-wrap",
12415
12216
  "writing-mode",
12416
- "x",
12417
- "y",
12418
12217
  "z-index"
12419
- ].sort().reverse();
12420
- const PSEUDO_SELECTORS = PSEUDO_CLASSES$1.concat(PSEUDO_ELEMENTS$1).sort().reverse();
12218
+ // reverse makes sure longer attributes `font-weight` are matched fully
12219
+ // instead of getting false positives on say `font`
12220
+ ].reverse();
12221
+ const PSEUDO_SELECTORS = PSEUDO_CLASSES$1.concat(PSEUDO_ELEMENTS$1);
12421
12222
  function less(hljs) {
12422
12223
  const modes = MODES$1(hljs);
12423
12224
  const PSEUDO_SELECTORS$1 = PSEUDO_SELECTORS;
@@ -12663,7 +12464,7 @@ const MODES = (hljs) => {
12663
12464
  }
12664
12465
  };
12665
12466
  };
12666
- const HTML_TAGS = [
12467
+ const TAGS = [
12667
12468
  "a",
12668
12469
  "abbr",
12669
12470
  "address",
@@ -12715,16 +12516,11 @@ const HTML_TAGS = [
12715
12516
  "nav",
12716
12517
  "object",
12717
12518
  "ol",
12718
- "optgroup",
12719
- "option",
12720
12519
  "p",
12721
- "picture",
12722
12520
  "q",
12723
12521
  "quote",
12724
12522
  "samp",
12725
12523
  "section",
12726
- "select",
12727
- "source",
12728
12524
  "span",
12729
12525
  "strong",
12730
12526
  "summary",
@@ -12742,53 +12538,6 @@ const HTML_TAGS = [
12742
12538
  "var",
12743
12539
  "video"
12744
12540
  ];
12745
- const SVG_TAGS = [
12746
- "defs",
12747
- "g",
12748
- "marker",
12749
- "mask",
12750
- "pattern",
12751
- "svg",
12752
- "switch",
12753
- "symbol",
12754
- "feBlend",
12755
- "feColorMatrix",
12756
- "feComponentTransfer",
12757
- "feComposite",
12758
- "feConvolveMatrix",
12759
- "feDiffuseLighting",
12760
- "feDisplacementMap",
12761
- "feFlood",
12762
- "feGaussianBlur",
12763
- "feImage",
12764
- "feMerge",
12765
- "feMorphology",
12766
- "feOffset",
12767
- "feSpecularLighting",
12768
- "feTile",
12769
- "feTurbulence",
12770
- "linearGradient",
12771
- "radialGradient",
12772
- "stop",
12773
- "circle",
12774
- "ellipse",
12775
- "image",
12776
- "line",
12777
- "path",
12778
- "polygon",
12779
- "polyline",
12780
- "rect",
12781
- "text",
12782
- "use",
12783
- "textPath",
12784
- "tspan",
12785
- "foreignObject",
12786
- "clipPath"
12787
- ];
12788
- const TAGS = [
12789
- ...HTML_TAGS,
12790
- ...SVG_TAGS
12791
- ];
12792
12541
  const MEDIA_FEATURES = [
12793
12542
  "any-hover",
12794
12543
  "any-pointer",
@@ -12824,7 +12573,7 @@ const MEDIA_FEATURES = [
12824
12573
  "max-width",
12825
12574
  "min-height",
12826
12575
  "max-height"
12827
- ].sort().reverse();
12576
+ ];
12828
12577
  const PSEUDO_CLASSES = [
12829
12578
  "active",
12830
12579
  "any-link",
@@ -12899,7 +12648,7 @@ const PSEUDO_CLASSES = [
12899
12648
  "visited",
12900
12649
  "where"
12901
12650
  // where()
12902
- ].sort().reverse();
12651
+ ];
12903
12652
  const PSEUDO_ELEMENTS = [
12904
12653
  "after",
12905
12654
  "backdrop",
@@ -12915,13 +12664,11 @@ const PSEUDO_ELEMENTS = [
12915
12664
  "selection",
12916
12665
  "slotted",
12917
12666
  "spelling-error"
12918
- ].sort().reverse();
12667
+ ];
12919
12668
  const ATTRIBUTES = [
12920
- "accent-color",
12921
12669
  "align-content",
12922
12670
  "align-items",
12923
12671
  "align-self",
12924
- "alignment-baseline",
12925
12672
  "all",
12926
12673
  "animation",
12927
12674
  "animation-delay",
@@ -12932,7 +12679,6 @@ const ATTRIBUTES = [
12932
12679
  "animation-name",
12933
12680
  "animation-play-state",
12934
12681
  "animation-timing-function",
12935
- "appearance",
12936
12682
  "backface-visibility",
12937
12683
  "background",
12938
12684
  "background-attachment",
@@ -12944,7 +12690,6 @@ const ATTRIBUTES = [
12944
12690
  "background-position",
12945
12691
  "background-repeat",
12946
12692
  "background-size",
12947
- "baseline-shift",
12948
12693
  "block-size",
12949
12694
  "border",
12950
12695
  "border-block",
@@ -12991,14 +12736,10 @@ const ATTRIBUTES = [
12991
12736
  "border-left-width",
12992
12737
  "border-radius",
12993
12738
  "border-right",
12994
- "border-end-end-radius",
12995
- "border-end-start-radius",
12996
12739
  "border-right-color",
12997
12740
  "border-right-style",
12998
12741
  "border-right-width",
12999
12742
  "border-spacing",
13000
- "border-start-end-radius",
13001
- "border-start-start-radius",
13002
12743
  "border-style",
13003
12744
  "border-top",
13004
12745
  "border-top-color",
@@ -13014,8 +12755,6 @@ const ATTRIBUTES = [
13014
12755
  "break-after",
13015
12756
  "break-before",
13016
12757
  "break-inside",
13017
- "cx",
13018
- "cy",
13019
12758
  "caption-side",
13020
12759
  "caret-color",
13021
12760
  "clear",
@@ -13023,11 +12762,6 @@ const ATTRIBUTES = [
13023
12762
  "clip-path",
13024
12763
  "clip-rule",
13025
12764
  "color",
13026
- "color-interpolation",
13027
- "color-interpolation-filters",
13028
- "color-profile",
13029
- "color-rendering",
13030
- "color-scheme",
13031
12765
  "column-count",
13032
12766
  "column-fill",
13033
12767
  "column-gap",
@@ -13049,12 +12783,7 @@ const ATTRIBUTES = [
13049
12783
  "cursor",
13050
12784
  "direction",
13051
12785
  "display",
13052
- "dominant-baseline",
13053
12786
  "empty-cells",
13054
- "enable-background",
13055
- "fill",
13056
- "fill-opacity",
13057
- "fill-rule",
13058
12787
  "filter",
13059
12788
  "flex",
13060
12789
  "flex-basis",
@@ -13065,8 +12794,6 @@ const ATTRIBUTES = [
13065
12794
  "flex-wrap",
13066
12795
  "float",
13067
12796
  "flow",
13068
- "flood-color",
13069
- "flood-opacity",
13070
12797
  "font",
13071
12798
  "font-display",
13072
12799
  "font-family",
@@ -13088,7 +12815,6 @@ const ATTRIBUTES = [
13088
12815
  "font-variation-settings",
13089
12816
  "font-weight",
13090
12817
  "gap",
13091
- "glyph-orientation-horizontal",
13092
12818
  "glyph-orientation-vertical",
13093
12819
  "grid",
13094
12820
  "grid-area",
@@ -13115,32 +12841,16 @@ const ATTRIBUTES = [
13115
12841
  "image-resolution",
13116
12842
  "ime-mode",
13117
12843
  "inline-size",
13118
- "inset",
13119
- "inset-block",
13120
- "inset-block-end",
13121
- "inset-block-start",
13122
- "inset-inline",
13123
- "inset-inline-end",
13124
- "inset-inline-start",
13125
12844
  "isolation",
13126
- "kerning",
13127
12845
  "justify-content",
13128
- "justify-items",
13129
- "justify-self",
13130
12846
  "left",
13131
12847
  "letter-spacing",
13132
- "lighting-color",
13133
12848
  "line-break",
13134
12849
  "line-height",
13135
12850
  "list-style",
13136
12851
  "list-style-image",
13137
12852
  "list-style-position",
13138
12853
  "list-style-type",
13139
- "marker",
13140
- "marker-end",
13141
- "marker-mid",
13142
- "marker-start",
13143
- "mask",
13144
12854
  "margin",
13145
12855
  "margin-block",
13146
12856
  "margin-block-end",
@@ -13222,15 +12932,12 @@ const ATTRIBUTES = [
13222
12932
  "pointer-events",
13223
12933
  "position",
13224
12934
  "quotes",
13225
- "r",
13226
12935
  "resize",
13227
12936
  "rest",
13228
12937
  "rest-after",
13229
12938
  "rest-before",
13230
12939
  "right",
13231
- "rotate",
13232
12940
  "row-gap",
13233
- "scale",
13234
12941
  "scroll-margin",
13235
12942
  "scroll-margin-block",
13236
12943
  "scroll-margin-block-end",
@@ -13262,24 +12969,12 @@ const ATTRIBUTES = [
13262
12969
  "shape-image-threshold",
13263
12970
  "shape-margin",
13264
12971
  "shape-outside",
13265
- "shape-rendering",
13266
- "stop-color",
13267
- "stop-opacity",
13268
- "stroke",
13269
- "stroke-dasharray",
13270
- "stroke-dashoffset",
13271
- "stroke-linecap",
13272
- "stroke-linejoin",
13273
- "stroke-miterlimit",
13274
- "stroke-opacity",
13275
- "stroke-width",
13276
12972
  "speak",
13277
12973
  "speak-as",
13278
12974
  "src",
13279
12975
  // @font-face
13280
12976
  "tab-size",
13281
12977
  "table-layout",
13282
- "text-anchor",
13283
12978
  "text-align",
13284
12979
  "text-align-all",
13285
12980
  "text-align-last",
@@ -13287,9 +12982,7 @@ const ATTRIBUTES = [
13287
12982
  "text-decoration",
13288
12983
  "text-decoration-color",
13289
12984
  "text-decoration-line",
13290
- "text-decoration-skip-ink",
13291
12985
  "text-decoration-style",
13292
- "text-decoration-thickness",
13293
12986
  "text-emphasis",
13294
12987
  "text-emphasis-color",
13295
12988
  "text-emphasis-position",
@@ -13301,7 +12994,6 @@ const ATTRIBUTES = [
13301
12994
  "text-rendering",
13302
12995
  "text-shadow",
13303
12996
  "text-transform",
13304
- "text-underline-offset",
13305
12997
  "text-underline-position",
13306
12998
  "top",
13307
12999
  "transform",
@@ -13313,9 +13005,7 @@ const ATTRIBUTES = [
13313
13005
  "transition-duration",
13314
13006
  "transition-property",
13315
13007
  "transition-timing-function",
13316
- "translate",
13317
13008
  "unicode-bidi",
13318
- "vector-effect",
13319
13009
  "vertical-align",
13320
13010
  "visibility",
13321
13011
  "voice-balance",
@@ -13334,10 +13024,10 @@ const ATTRIBUTES = [
13334
13024
  "word-spacing",
13335
13025
  "word-wrap",
13336
13026
  "writing-mode",
13337
- "x",
13338
- "y",
13339
13027
  "z-index"
13340
- ].sort().reverse();
13028
+ // reverse makes sure longer attributes `font-weight` are matched fully
13029
+ // instead of getting false positives on say `font`
13030
+ ].reverse();
13341
13031
  function scss(hljs) {
13342
13032
  const modes = MODES(hljs);
13343
13033
  const PSEUDO_ELEMENTS$12 = PSEUDO_ELEMENTS;
@@ -13879,11 +13569,6 @@ function markdown(hljs) {
13879
13569
  contains: CONTAINABLE,
13880
13570
  end: "$"
13881
13571
  };
13882
- const ENTITY = {
13883
- //https://spec.commonmark.org/0.31.2/#entity-references
13884
- scope: "literal",
13885
- match: /&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/
13886
- };
13887
13572
  return {
13888
13573
  name: "Markdown",
13889
13574
  aliases: [
@@ -13901,8 +13586,7 @@ function markdown(hljs) {
13901
13586
  CODE,
13902
13587
  HORIZONTAL_RULE,
13903
13588
  LINK,
13904
- LINK_REFERENCE,
13905
- ENTITY
13589
+ LINK_REFERENCE
13906
13590
  ]
13907
13591
  };
13908
13592
  }
@@ -14148,8 +13832,10 @@ function objectivec(hljs) {
14148
13832
  };
14149
13833
  }
14150
13834
  function source(re) {
14151
- if (!re) return null;
14152
- if (typeof re === "string") return re;
13835
+ if (!re)
13836
+ return null;
13837
+ if (typeof re === "string")
13838
+ return re;
14153
13839
  return re.source;
14154
13840
  }
14155
13841
  function lookahead(re) {
@@ -14281,7 +13967,6 @@ const keywords = [
14281
13967
  // contextual
14282
13968
  "override",
14283
13969
  // contextual
14284
- "package",
14285
13970
  "postfix",
14286
13971
  // contextual
14287
13972
  "precedencegroup",
@@ -14724,7 +14409,7 @@ function swift(hljs) {
14724
14409
  };
14725
14410
  const KEYWORD_ATTRIBUTE = {
14726
14411
  scope: "keyword",
14727
- match: concat(/@/, either(...keywordAttributes), lookahead(either(/\(/, /\s+/)))
14412
+ match: concat(/@/, either(...keywordAttributes))
14728
14413
  };
14729
14414
  const USER_DEFINED_ATTRIBUTE = {
14730
14415
  scope: "meta",
@@ -14911,36 +14596,6 @@ function swift(hljs) {
14911
14596
  ],
14912
14597
  end: /}/
14913
14598
  };
14914
- const TYPE_DECLARATION = {
14915
- begin: [
14916
- /(struct|protocol|class|extension|enum|actor)/,
14917
- /\s+/,
14918
- identifier,
14919
- /\s*/
14920
- ],
14921
- beginScope: {
14922
- 1: "keyword",
14923
- 3: "title.class"
14924
- },
14925
- keywords: KEYWORDS2,
14926
- contains: [
14927
- GENERIC_PARAMETERS,
14928
- ...KEYWORD_MODES,
14929
- {
14930
- begin: /:/,
14931
- end: /\{/,
14932
- keywords: KEYWORDS2,
14933
- contains: [
14934
- {
14935
- scope: "title.class.inherited",
14936
- match: typeIdentifier
14937
- },
14938
- ...KEYWORD_MODES
14939
- ],
14940
- relevance: 0
14941
- }
14942
- ]
14943
- };
14944
14599
  for (const variant of STRING.variants) {
14945
14600
  const interpolation = variant.contains.find((mode) => mode.label === "interpol");
14946
14601
  interpolation.keywords = KEYWORDS2;
@@ -14971,7 +14626,19 @@ function swift(hljs) {
14971
14626
  ...COMMENTS,
14972
14627
  FUNCTION_OR_MACRO,
14973
14628
  INIT_SUBSCRIPT,
14974
- TYPE_DECLARATION,
14629
+ {
14630
+ beginKeywords: "struct protocol class extension enum actor",
14631
+ end: "\\{",
14632
+ excludeEnd: true,
14633
+ keywords: KEYWORDS2,
14634
+ contains: [
14635
+ hljs.inherit(hljs.TITLE_MODE, {
14636
+ className: "title.class",
14637
+ begin: /[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/
14638
+ }),
14639
+ ...KEYWORD_MODES
14640
+ ]
14641
+ },
14975
14642
  OPERATOR_DECLARATION,
14976
14643
  PRECEDENCEGROUP,
14977
14644
  {
@@ -15480,30 +15147,10 @@ function go(hljs) {
15480
15147
  className: "number",
15481
15148
  variants: [
15482
15149
  {
15483
- match: /-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,
15484
- // hex without a present digit before . (making a digit afterwards required)
15485
- relevance: 0
15150
+ begin: hljs.C_NUMBER_RE + "[i]",
15151
+ relevance: 1
15486
15152
  },
15487
- {
15488
- match: /-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,
15489
- // hex with a present digit before . (making a digit afterwards optional)
15490
- relevance: 0
15491
- },
15492
- {
15493
- match: /-?\b0[oO](_?[0-7])*i?/,
15494
- // leading 0o octal
15495
- relevance: 0
15496
- },
15497
- {
15498
- match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,
15499
- // decimal without a present digit before . (making a digit afterwards required)
15500
- relevance: 0
15501
- },
15502
- {
15503
- match: /-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,
15504
- // decimal with a present digit before . (making a digit afterwards optional)
15505
- relevance: 0
15506
- }
15153
+ hljs.C_NUMBER_MODE
15507
15154
  ]
15508
15155
  },
15509
15156
  {
@@ -16075,7 +15722,7 @@ function c(hljs) {
16075
15722
  className: "meta",
16076
15723
  begin: /#\s*[a-z]+\b/,
16077
15724
  end: /$/,
16078
- keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include" },
15725
+ keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" },
16079
15726
  contains: [
16080
15727
  {
16081
15728
  begin: /\\\n/,
@@ -16116,8 +15763,6 @@ function c(hljs) {
16116
15763
  "restrict",
16117
15764
  "return",
16118
15765
  "sizeof",
16119
- "typeof",
16120
- "typeof_unqual",
16121
15766
  "struct",
16122
15767
  "switch",
16123
15768
  "typedef",
@@ -16151,26 +15796,14 @@ function c(hljs) {
16151
15796
  "char",
16152
15797
  "void",
16153
15798
  "_Bool",
16154
- "_BitInt",
16155
15799
  "_Complex",
16156
15800
  "_Imaginary",
16157
15801
  "_Decimal32",
16158
15802
  "_Decimal64",
16159
- "_Decimal96",
16160
15803
  "_Decimal128",
16161
- "_Decimal64x",
16162
- "_Decimal128x",
16163
- "_Float16",
16164
- "_Float32",
16165
- "_Float64",
16166
- "_Float128",
16167
- "_Float32x",
16168
- "_Float64x",
16169
- "_Float128x",
16170
15804
  // modifiers
16171
15805
  "const",
16172
15806
  "static",
16173
- "constexpr",
16174
15807
  // aliases
16175
15808
  "complex",
16176
15809
  "bool",
@@ -16353,16 +15986,9 @@ function cpp(hljs) {
16353
15986
  const NUMBERS = {
16354
15987
  className: "number",
16355
15988
  variants: [
16356
- // Floating-point literal.
16357
- {
16358
- begin: "[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"
16359
- },
16360
- // Integer literal.
16361
- {
16362
- begin: "[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"
16363
- // Note: there are user-defined literal suffixes too, but perhaps having the custom suffix not part of the
16364
- // literal highlight actually makes it stand out more.
16365
- }
15989
+ { begin: "\\b(0b[01']+)" },
15990
+ { begin: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" },
15991
+ { begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" }
16366
15992
  ],
16367
15993
  relevance: 0
16368
15994
  };
@@ -17013,11 +16639,6 @@ function csharp(hljs) {
17013
16639
  ],
17014
16640
  relevance: 0
17015
16641
  };
17016
- const RAW_STRING = {
17017
- className: "string",
17018
- begin: /"""("*)(?!")(.|\n)*?"""\1/,
17019
- relevance: 1
17020
- };
17021
16642
  const VERBATIM_STRING = {
17022
16643
  className: "string",
17023
16644
  begin: '@"',
@@ -17083,7 +16704,6 @@ function csharp(hljs) {
17083
16704
  hljs.inherit(hljs.C_BLOCK_COMMENT_MODE, { illegal: /\n/ })
17084
16705
  ];
17085
16706
  const STRING = { variants: [
17086
- RAW_STRING,
17087
16707
  INTERPOLATED_VERBATIM_STRING,
17088
16708
  INTERPOLATED_STRING,
17089
16709
  VERBATIM_STRING,
@@ -18370,16 +17990,13 @@ function kotlin(hljs) {
18370
17990
  }
18371
17991
  function rust(hljs) {
18372
17992
  const regex = hljs.regex;
18373
- const RAW_IDENTIFIER = /(r#)?/;
18374
- const UNDERSCORE_IDENT_RE2 = regex.concat(RAW_IDENTIFIER, hljs.UNDERSCORE_IDENT_RE);
18375
- const IDENT_RE2 = regex.concat(RAW_IDENTIFIER, hljs.IDENT_RE);
18376
17993
  const FUNCTION_INVOKE = {
18377
17994
  className: "title.function.invoke",
18378
17995
  relevance: 0,
18379
17996
  begin: regex.concat(
18380
17997
  /\b/,
18381
17998
  /(?!let|for|while|if|else|match\b)/,
18382
- IDENT_RE2,
17999
+ hljs.IDENT_RE,
18383
18000
  regex.lookahead(/\s*\(/)
18384
18001
  )
18385
18002
  };
@@ -18429,7 +18046,6 @@ function rust(hljs) {
18429
18046
  "try",
18430
18047
  "type",
18431
18048
  "typeof",
18432
- "union",
18433
18049
  "unsafe",
18434
18050
  "unsized",
18435
18051
  "use",
@@ -18581,7 +18197,7 @@ function rust(hljs) {
18581
18197
  begin: [
18582
18198
  /fn/,
18583
18199
  /\s+/,
18584
- UNDERSCORE_IDENT_RE2
18200
+ hljs.UNDERSCORE_IDENT_RE
18585
18201
  ],
18586
18202
  className: {
18587
18203
  1: "keyword",
@@ -18596,10 +18212,7 @@ function rust(hljs) {
18596
18212
  {
18597
18213
  className: "string",
18598
18214
  begin: /"/,
18599
- end: /"/,
18600
- contains: [
18601
- hljs.BACKSLASH_ESCAPE
18602
- ]
18215
+ end: /"/
18603
18216
  }
18604
18217
  ]
18605
18218
  },
@@ -18608,7 +18221,7 @@ function rust(hljs) {
18608
18221
  /let/,
18609
18222
  /\s+/,
18610
18223
  /(?:mut\s+)?/,
18611
- UNDERSCORE_IDENT_RE2
18224
+ hljs.UNDERSCORE_IDENT_RE
18612
18225
  ],
18613
18226
  className: {
18614
18227
  1: "keyword",
@@ -18621,7 +18234,7 @@ function rust(hljs) {
18621
18234
  begin: [
18622
18235
  /for/,
18623
18236
  /\s+/,
18624
- UNDERSCORE_IDENT_RE2,
18237
+ hljs.UNDERSCORE_IDENT_RE,
18625
18238
  /\s+/,
18626
18239
  /in/
18627
18240
  ],
@@ -18635,7 +18248,7 @@ function rust(hljs) {
18635
18248
  begin: [
18636
18249
  /type/,
18637
18250
  /\s+/,
18638
- UNDERSCORE_IDENT_RE2
18251
+ hljs.UNDERSCORE_IDENT_RE
18639
18252
  ],
18640
18253
  className: {
18641
18254
  1: "keyword",
@@ -18646,7 +18259,7 @@ function rust(hljs) {
18646
18259
  begin: [
18647
18260
  /(?:trait|enum|struct|union|impl|for)/,
18648
18261
  /\s+/,
18649
- UNDERSCORE_IDENT_RE2
18262
+ hljs.UNDERSCORE_IDENT_RE
18650
18263
  ],
18651
18264
  className: {
18652
18265
  1: "keyword",
@@ -21715,7 +21328,7 @@ var sigmasAndXis = {
21715
21328
  sqrtRuleThickness: [0.04, 0.04, 0.04],
21716
21329
  // This value determines how large a pt is, for metrics which are defined
21717
21330
  // in terms of pts.
21718
- // This value is also used in katex.scss; if you change it make sure the
21331
+ // This value is also used in katex.less; if you change it make sure the
21719
21332
  // values match.
21720
21333
  ptPerEm: [10, 10, 10],
21721
21334
  // The space between adjacent `|` columns in an array definition. From
@@ -25450,7 +25063,8 @@ function parseCD(parser) {
25450
25063
  mode: "math",
25451
25064
  body: []
25452
25065
  };
25453
- if ("=|.".indexOf(arrowChar) > -1) ;
25066
+ if ("=|.".indexOf(arrowChar) > -1)
25067
+ ;
25454
25068
  else if ("<>AV".indexOf(arrowChar) > -1) {
25455
25069
  for (var labelNum = 0; labelNum < 2; labelNum++) {
25456
25070
  var inLabel = true;
@@ -29488,7 +29102,8 @@ var mathmlBuilder2 = (group, options) => {
29488
29102
  var isAllString = true;
29489
29103
  for (var i = 0; i < expression.length; i++) {
29490
29104
  var node = expression[i];
29491
- if (node instanceof mathMLTree.SpaceNode) ;
29105
+ if (node instanceof mathMLTree.SpaceNode)
29106
+ ;
29492
29107
  else if (node instanceof mathMLTree.MathNode) {
29493
29108
  switch (node.type) {
29494
29109
  case "mi":
@@ -30432,10 +30047,9 @@ var optionsWithFont = (group, options) => {
30432
30047
  return options.withTextFontFamily(textFontFamilies[font]);
30433
30048
  } else if (textFontWeights[font]) {
30434
30049
  return options.withTextFontWeight(textFontWeights[font]);
30435
- } else if (font === "\\emph") {
30436
- return options.fontShape === "textit" ? options.withTextFontShape("textup") : options.withTextFontShape("textit");
30050
+ } else {
30051
+ return options.withTextFontShape(textFontShapes[font]);
30437
30052
  }
30438
- return options.withTextFontShape(textFontShapes[font]);
30439
30053
  };
30440
30054
  defineFunction({
30441
30055
  type: "text",
@@ -30451,8 +30065,7 @@ defineFunction({
30451
30065
  "\\textmd",
30452
30066
  // Font Shapes
30453
30067
  "\\textit",
30454
- "\\textup",
30455
- "\\emph"
30068
+ "\\textup"
30456
30069
  ],
30457
30070
  props: {
30458
30071
  numArgs: 1,
@@ -33191,7 +32804,7 @@ var katex = {
33191
32804
  /**
33192
32805
  * Current KaTeX version
33193
32806
  */
33194
- version: "0.16.11",
32807
+ version: "0.16.10",
33195
32808
  /**
33196
32809
  * Renders the given LaTeX into an HTML+MathML combination, and adds
33197
32810
  * it as a child to the specified DOM node.
@@ -39520,9 +39133,18 @@ const TableToolbar = defineComponent(
39520
39133
  editor.value.range.anchor.element = editor.value.range.focus.element;
39521
39134
  editor.value.range.anchor.offset = editor.value.range.focus.offset;
39522
39135
  }
39523
- const row = getMatchElementByRange(editor.value, dataRangeCaches.value, { parsedom: "tr" });
39524
- if (row) {
39136
+ const cell = getMatchElementByRange(editor.value, dataRangeCaches.value, { parsedom: "td" });
39137
+ if (cell) {
39138
+ const { rowspan } = getCellSpanNumber(cell);
39139
+ let row = cell.parent;
39525
39140
  const tbody = row.parent;
39141
+ if (type == "down") {
39142
+ let i = 1;
39143
+ while (i < rowspan) {
39144
+ row = editor.value.getNextElement(row);
39145
+ i++;
39146
+ }
39147
+ }
39526
39148
  const { columnNumber } = getTableSize(tbody.children);
39527
39149
  const children = [];
39528
39150
  for (let i = 0; i < columnNumber; i++) {
@@ -44615,7 +44237,7 @@ const Editify = withInstall(editify);
44615
44237
  const install = (app) => {
44616
44238
  app.component(Editify.name, Editify);
44617
44239
  };
44618
- const version = "0.2.27";
44240
+ const version = "0.2.28";
44619
44241
  console.log(`%c vue-editify %c v${version} `, "padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;", "padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");
44620
44242
  export {
44621
44243
  AlexElement,