Skip to content

Commit f94df1a

Browse files
committed
Upgrade onigurama and vscode-textmate (fix #17)
1 parent a16c649 commit f94df1a

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

lib/dist/browser.esm.mjs

+2-2
Large diffs are not rendered by default.

lib/dist/index.cjs.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/dist/index.esm.mjs

+2-2
Large diffs are not rendered by default.

lib/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"tslib": "^2.4.1",
2929
"typescript": "^4.9.4",
3030
"vitest": "^0.29.8",
31-
"vscode-oniguruma": "^1.0.0",
32-
"vscode-textmate": "^7.0.0"
31+
"vscode-oniguruma": "1.7.0",
32+
"vscode-textmate": "9.0.0"
3333
},
3434
"scripts": {
3535
"build": "rollup -c",

lib/src/highlighter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function getGrammar(alias: LanguageAlias): {
7272

7373
function getGrammarFromRegistry(scopeName: string) {
7474
const { _syncRegistry } = registry as any;
75-
return _syncRegistry?._grammars[scopeName] as IGrammar;
75+
return _syncRegistry?._grammars.get(scopeName) as IGrammar;
7676
}
7777

7878
export class UnknownLanguageError extends Error {

yarn.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -2965,15 +2965,15 @@ vitest@^0.29.8:
29652965
vite-node "0.29.8"
29662966
why-is-node-running "^2.2.2"
29672967

2968-
vscode-oniguruma@^1.0.0:
2968+
vscode-oniguruma@1.7.0:
29692969
version "1.7.0"
29702970
resolved "https://registry.yarnpkg.com/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz#439bfad8fe71abd7798338d1cd3dc53a8beea94b"
29712971
integrity sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==
29722972

2973-
vscode-textmate@^7.0.0:
2974-
version "7.0.4"
2975-
resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-7.0.4.tgz#a30df59ce573e998e4e2ffbca5ab82d57bc3126f"
2976-
integrity sha512-9hJp0xL7HW1Q5OgGe03NACo7yiCTMEk3WU/rtKXUbncLtdg6rVVNJnHwD88UhbIYU2KoxY0Dih0x+kIsmUKn2A==
2973+
vscode-textmate@9.0.0:
2974+
version "9.0.0"
2975+
resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-9.0.0.tgz#313c6c8792b0507aef35aeb81b6b370b37c44d6c"
2976+
integrity sha512-Cl65diFGxz7gpwbav10HqiY/eVYTO1sjQpmRmV991Bj7wAoOAjGQ97PpQcXorDE2Uc4hnGWLY17xme+5t6MlSg==
29772977

29782978
wcwidth@^1.0.1:
29792979
version "1.0.1"

0 commit comments

Comments
 (0)