Syntax highlighting hangs when using a substring pattern with ' #185
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
I have come across a problem with highlighting sections of source code using a pattern/substring using Nextra.
I am presenting code in Rust that implements lifetimes annotations marked with ' , for example:
fn longer<'a>(a : &'a [i32], b : &'a [i32]) -> &'a [i32]
.I am trying to highlight the annotation itself (
'a
) using the code:This syntax causes the page rendering to crash (even terminating the process causes the node to remain on).
The problem has been previously reported in the Nextra project (shuding/nextra#2792) and was redirected here as a code rendering issue.
The text was updated successfully, but these errors were encountered: