-
-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The auto-updated csharp language has an issue with OnigScanner #219
Comments
Of course, I didn't see this until now... more info: "105,110,118,97,108,105,100,32,112,97,116,116,101,114,110,32,105,110,32,108,111,111,107,45,98,101,104,105,110,100"
.split(",").map(c => String.fromCharCode(+c)).join("") Gives the error, "invalid pattern in look-behind"
|
Good catch. Let's point to an old version for now to make master green. I subscribed to the upstream issue so once this is fixed I'll upgrade to latest. |
Let's track the dotnet one for latest C# grammar. Master is green again! |
fix: update to latest grammar from dotnet/csharp repo. fix #219
Just wanted to point out two things, which you may already be aware of 😅
Code that produces the error (with shiki 0.9.11): const shiki = require("shiki");
shiki
.getHighlighter({
theme: "nord",
})
.then((highlighter) => {
console.log(
highlighter.codeToHtml(
`
using (var sha256 = SHA256.Create())
{
}
`,
"razor"
)
);
}); |
So that the fix to shikijsgh-219 gets released. @Gerrit0 recommended I do this.
May I ask when will there be a 0.9.12 release? my current blog build is broken with csharp code 😢 |
thanks for the ping, I missed that PR |
https://github.com/shikijs/shiki/pull/218/checks?check_run_id=3497151928#step:10:10
The text was updated successfully, but these errors were encountered: