-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
doc: CodeMirror should ignore 'static/'self #9873
Comments
For reference, a cheap fix that didn't work: adrientetar@ded910f#diff-0 |
The CodeMirror Rust mode is waaaay old and hasn't been updated in ages. I unfortunately don't have time for a rewrite right now (mostly because that'd first require familiarizing myself with modern Rust syntax, which'd take some time), but if someone decides to work on this, feel free to ask questions here, I'll try to answer. |
Merged
adrientetar
added a commit
to adrientetar/rust
that referenced
this issue
Nov 13, 2013
CodeMirror parser errors are related to rust-lang#9873.
Merged
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Nov 21, 2022
Move `line_span` to source.rs `line_span` is a non-public function used only in source.rs. It seems like it ought to go in source.rs. changelog: none
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CodeMirror JS syntax highlight currently trys to parse 'static or 'self blocks as string, and fails with a red error highlight because it doesn't find the end '.
We need to configure CodeMirror to ignore syntaxhighlight when it encounters these keywords.
See here: http://static.rust-lang.org/doc/0.8/rust.html#static-items
cc @marijnh
The text was updated successfully, but these errors were encountered: