-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Custom code classes in docs warning #115947
Custom code classes in docs warning #115947
Conversation
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @jsha |
46e7b41
to
1ac06dd
Compare
Could this be adjusted so that In the sample grammar, that means changing the syntax for barewords. -bareword = CHAR *(CHAR)
+bareword = LEADINGCHAR *(CHAR)
-CHAR = ALPHA / DIGIT / "_" / "-" / ":"
+LEADINGCHAR = ALPHA / DIGIT / "_" / "-" / ":"
+; all ASCII punctuation except comma, quote, equals, backslash, grave (backquote), and braces
+; comma is used to separate language tokens, so it can't be used in one
+; quote is used to allow otherwise-disallowed characters in language tokens
+; equals is used to make key=value pairs in attribute blocks
+; backslash and grave are special Markdown characters
+; braces are used to start an attribute block
+CHAR = ALPHA / DIGIT / "_" / "-" / ":" / "." / "!" / "#" / "$" / "%" / "&" / "*" / "+" / "/" / ";" / "<" / ">" / "?" / "@" / "^" / "|" / "~" |
Sounds good to me as well. I'll update it tomorrow then. |
1ac06dd
to
295ec09
Compare
I modified the eBNF as suggested. |
@bors r+ rollup |
…llaumeGomez Rollup of 6 pull requests Successful merges: - rust-lang#113383 (style-guide: Add section on bugs, and resolving bugs) - rust-lang#115499 (rustc_target/riscv: Fix passing of transparent unions with only one non-ZST member) - rust-lang#115801 (Detect cycle errors hidden by opaques during monomorphization) - rust-lang#115947 (Custom code classes in docs warning) - rust-lang#115957 (fix mismatched symbols) - rust-lang#115958 (explain mysterious addition in float minimum/maximum) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#115947 - GuillaumeGomez:custom_code_classes_in_docs-warning, r=notriddle Custom code classes in docs warning Fixes rust-lang#115938. This PR does two things: 1. Unless the `custom_code_classes_in_docs` feature is enabled, it will use the old codeblock tag parser. 2. If there is a codeblock tag that starts with a `.`, it will emit a behaviour change warning. Hopefully this is the last missing part for this feature until stabilization. Follow-up of rust-lang#110800. r? `@notriddle`
Fixes #115938.
This PR does two things:
custom_code_classes_in_docs
feature is enabled, it will use the old codeblock tag parser..
, it will emit a behaviour change warning.Hopefully this is the last missing part for this feature until stabilization.
Follow-up of #110800.
r? @notriddle