Skip to content

Commit

Permalink
feat: update deps and grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 13, 2025
1 parent cffde36 commit 68f7862
Show file tree
Hide file tree
Showing 6 changed files with 2,291 additions and 971 deletions.
116 changes: 58 additions & 58 deletions docs/references/engine-js-compat.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "module",
"version": "1.26.1",
"private": true,
"packageManager": "pnpm@9.15.2",
"packageManager": "pnpm@9.15.3",
"scripts": {
"lint": "eslint . --cache",
"release": "bumpp",
Expand Down Expand Up @@ -42,7 +42,7 @@
"@vitest/coverage-v8": "catalog:",
"ansi-sequence-parser": "catalog:",
"bumpp": "catalog:",
"diff-match-patch-es": "^0.1.1",
"diff-match-patch-es": "^1.0.1",
"eslint": "catalog:",
"eslint-plugin-format": "catalog:",
"esno": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions packages/colorized-brackets/src/splitBracketTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ export default function splitBracketTokens(
else if (i === 0) {
length
= (rawToken.content.match(/^\s*/)?.[0].length ?? 0)
+ explanation.content.trimStart().length
+ explanation.content.trimStart().length
}
else if (i === explanations.length - 1) {
length
= explanation.content.trimEnd().length
+ (rawToken.content.match(/\s*$/)?.[0].length ?? 0)
+ (rawToken.content.match(/\s*$/)?.[0].length ?? 0)
}
currentExplanationStart += length
return {
Expand Down
6 changes: 3 additions & 3 deletions packages/engine-oniguruma/src/oniguruma/onig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ export default async function main(init: Instantiator): Promise<IOnigBinding> {
}
else {
u0 = ((u0 & 7) << 18)
| (u1 << 12)
| (u2 << 6)
| (heapOrArray[idx++] & 63)
| (u1 << 12)
| (u2 << 6)
| (heapOrArray[idx++] & 63)
}
if (u0 < 65536) {
str += String.fromCharCode(u0)
Expand Down
Loading

0 comments on commit 68f7862

Please sign in to comment.