Skip to content
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

[librustdoc] Only split lang string on ,, , and \t #78429

Merged
merged 1 commit into from
Feb 26, 2021

Commits on Feb 12, 2021

  1. [librustdoc] Reform lang string token splitting

    Only split doctest lang strings on `,`, ` `, and `\t`. Additionally, to
    preserve backwards compatibility with pandoc-style langstrings, strip a
    surrounding `{}`, and remove leading `.`s from each token.
    
    Prior to this change, doctest lang strings were split on all
    non-alphanumeric characters except `-` or `_`, which limited future
    extensions to doctest lang string tokens, for example using `=` for
    key-value tokens.
    
    This is a breaking change, although it is not expected to be disruptive,
    because lang strings using separators other than `,` and ` ` are not
    very common
    casey committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    66f4883 View commit details
    Browse the repository at this point in the history