-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Fix inconsistent highlight blocks. #62951
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Further refine highlight fix.
- Loading branch information
commit ab2ff17b0bad3a9409b51c2c1ed44abe183b5e64
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,21 +11,21 @@ use super::*; | |
impl char { | ||
/// Checks if a `char` is a digit in the given radix. | ||
/// | ||
/// A `radix` here is sometimes also called a `base`. A radix of two | ||
/// A 'radix' here is sometimes also called a 'base'. A radix of two | ||
/// indicates a binary number, a radix of ten, decimal, and a radix of | ||
/// sixteen, hexadecimal, to give some common values. Arbitrary | ||
/// radices are supported. | ||
/// | ||
/// Compared to `is_numeric()`, this function only recognizes the characters | ||
/// `0-9`, `a-z` and `A-Z`. | ||
/// | ||
/// `Digit` is defined to be only the following characters: | ||
/// 'Digit' is defined to be only the following characters: | ||
/// | ||
/// * `0-9` | ||
/// * `a-z` | ||
/// * `A-Z` | ||
/// | ||
/// For a more comprehensive understanding of `digit`, see [`is_numeric`][is_numeric]. | ||
/// For a more comprehensive understanding of 'digit', see [`is_numeric`][is_numeric]. | ||
/// | ||
/// [is_numeric]: #method.is_numeric | ||
/// | ||
|
@@ -63,12 +63,12 @@ impl char { | |
|
||
/// Converts a `char` to a digit in the given radix. | ||
/// | ||
/// A `radix` here is sometimes also called a `base`. A radix of two | ||
/// A 'radix' here is sometimes also called a 'base'. A radix of two | ||
/// indicates a binary number, a radix of ten, decimal, and a radix of | ||
/// sixteen, hexadecimal, to give some common values. Arbitrary | ||
/// radices are supported. | ||
/// | ||
/// `Digit` is defined to be only the following characters: | ||
/// 'Digit' is defined to be only the following characters: | ||
/// | ||
/// * `0-9` | ||
/// * `a-z` | ||
|
@@ -405,7 +405,7 @@ impl char { | |
/// | ||
/// # Examples | ||
/// | ||
/// In both of these examples, `ß` takes two bytes to encode. | ||
/// In both of these examples, 'ß' takes two bytes to encode. | ||
/// | ||
/// ``` | ||
/// let mut b = [0; 2]; | ||
|
@@ -475,7 +475,7 @@ impl char { | |
/// | ||
/// # Examples | ||
/// | ||
/// In both of these examples, `𝕊` takes two `u16`s to encode. | ||
/// In both of these examples, '𝕊' takes two `u16`s to encode. | ||
/// | ||
/// ``` | ||
/// let mut b = [0; 2]; | ||
|
@@ -582,7 +582,7 @@ impl char { | |
|
||
/// Returns `true` if this `char` is lowercase. | ||
/// | ||
/// `Lowercase` is defined according to the terms of the Unicode Derived Core | ||
/// 'Lowercase' is defined according to the terms of the Unicode Derived Core | ||
/// Property `Lowercase`. | ||
/// | ||
/// # Examples | ||
|
@@ -610,7 +610,7 @@ impl char { | |
|
||
/// Returns `true` if this `char` is uppercase. | ||
/// | ||
/// `Uppercase` is defined according to the terms of the Unicode Derived Core | ||
/// 'Uppercase' is defined according to the terms of the Unicode Derived Core | ||
/// Property `Uppercase`. | ||
/// | ||
/// # Examples | ||
|
@@ -638,7 +638,7 @@ impl char { | |
|
||
/// Returns `true` if this `char` is whitespace. | ||
/// | ||
/// `Whitespace` is defined according to the terms of the Unicode Derived Core | ||
/// 'Whitespace' is defined according to the terms of the Unicode Derived Core | ||
/// Property `White_Space`. | ||
/// | ||
/// # Examples | ||
|
@@ -665,7 +665,7 @@ impl char { | |
|
||
/// Returns `true` if this `char` is alphanumeric. | ||
/// | ||
/// `Alphanumeric`-ness is defined in terms of the Unicode General Categories | ||
/// 'Alphanumeric'-ness is defined in terms of the Unicode General Categories | ||
/// `Nd`, `Nl`, `No` and the Derived Core Property `Alphabetic`. | ||
/// | ||
/// # Examples | ||
|
@@ -719,7 +719,7 @@ impl char { | |
|
||
/// Returns `true` if this `char` is numeric. | ||
/// | ||
/// `Numeric`-ness is defined in terms of the Unicode General Categories | ||
/// 'Numeric'-ness is defined in terms of the Unicode General Categories | ||
/// `Nd`, `Nl`, `No`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep |
||
/// | ||
/// # Examples | ||
|
@@ -865,12 +865,12 @@ impl char { | |
/// | ||
/// # Note on locale | ||
/// | ||
/// In Turkish, the equivalent of `i` in Latin has five forms instead of two: | ||
/// In Turkish, the equivalent of 'i' in Latin has five forms instead of two: | ||
/// | ||
EDBE /// * `Dotless`: I / ı, sometimes written ï | ||
/// * `Dotted`: İ / i | ||
/// * 'Dotless': I / ı, sometimes written ï | ||
/// * 'Dotted': İ / i | ||
/// | ||
/// Note that the lowercase dotted `i` is the same as the Latin. Therefore: | ||
/// Note that the lowercase dotted 'i' is the same as the Latin. Therefore: | ||
/// | ||
/// ``` | ||
/// let upper_i = 'i'.to_uppercase().to_string(); | ||
|
@@ -912,7 +912,7 @@ impl char { | |
|
||
/// Makes a copy of the value in its ASCII upper case equivalent. | ||
/// | ||
/// ASCII letters `a` to `z` are mapped to `A` to `Z`, | ||
/// ASCII letters 'a' to 'z' are mapped to 'A' to 'Z', | ||
/// but non-ASCII letters are unchanged. | ||
/// | ||
/// To uppercase the value in-place, use [`make_ascii_uppercase`]. | ||
|
@@ -944,7 +944,7 @@ impl char { | |
|
||
/// Makes a copy of the value in its ASCII lower case equivalent. | ||
/// | ||
/// ASCII letters `A` to `Z` are mapped to `a` to `z`, | ||
/// ASCII letters 'A' to 'Z' are mapped to 'a' to 'z', | ||
/// but non-ASCII letters are unchanged. | ||
/// | ||
/// To lowercase the value in-place, use [`make_ascii_lowercase`]. | ||
|
@@ -997,7 +997,7 @@ impl char { | |
|
||
/// Converts this type to its ASCII upper case equivalent in-place. | ||
/// | ||
/// ASCII letters `a` to `z` are mapped to `A` to `Z`, | ||
/// ASCII letters 'a' to 'z' are mapped to 'A' to 'Z', | ||
/// but non-ASCII letters are unchanged. | ||
/// | ||
/// To return a new uppercased value without modifying the existing one, use | ||
|
@@ -1022,7 +1022,7 @@ impl char { | |
|
||
/// Converts this type to its ASCII lower case equivalent in-place. | ||
/// | ||
/// ASCII letters `A` to `Z` are mapped to `a` to `z`, | ||
/// ASCII letters 'A' to 'Z' are mapped to 'a' to 'z', | ||
/// but non-ASCII letters are unchanged. | ||
/// | ||
/// To return a new lowercased value without modifying the existing one, use | ||
|
@@ -1047,8 +1047,8 @@ impl char { | |
|
||
/// Checks if the value is an ASCII alphabetic character: | ||
/// | ||
/// - U+0041 `A` ..= U+005A `Z`, or | ||
/// - U+0061 `a` ..= U+007A `z`. | ||
/// - U+0041 'A' ..= U+005A 'Z', or | ||
/// - U+0061 'a' ..= U+007A 'z'. | ||
/// | ||
/// # Examples | ||
/// | ||
|
@@ -1080,7 +1080,7 @@ impl char { | |
} | ||
|
||
/// Checks if the value is an ASCII uppercase character: | ||
/// U+0041 `A` ..= U+005A `Z`. | ||
/// U+0041 'A' ..= U+005A 'Z'. | ||
/// | ||
/// # Examples | ||
/// | ||
|
@@ -1112,7 +1112,7 @@ impl char { | |
} | ||
|
||
/// Checks if the value is an ASCII lowercase character: | ||
/// U+0061 `a` ..= U+007A `z`. | ||
/// U+0061 'a' ..= U+007A 'z'. | ||
/// | ||
/// # Examples | ||
/// | ||
|
@@ -1145,9 +1145,9 @@ impl char { | |
|
||
/// Checks if the value is an ASCII alphanumeric character: | ||
/// | ||
/// - U+0041 `A` ..= U+005A `Z`, or | ||
/// - U+0061 `a` ..= U+007A `z`, or | ||
/// - U+0030 `0` ..= U+0039 `9`. | ||
/// - U+0041 'A' ..= U+005A 'Z', or | ||
/// - U+0061 'a' ..= U+007A 'z', or | ||
/// - U+0030 '0' ..= U+0039 '9'. | ||
/// | ||
/// # Examples | ||
/// | ||
|
@@ -1179,7 +1179,7 @@ impl char { | |
} | ||
|
||
/// Checks if the value is an ASCII decimal digit: | ||
/// U+0030 `0` ..= U+0039 `9`. | ||
/// U+0030 '0' ..= U+0039 '9'. | ||
/// | ||
/// # Examples | ||
/// | ||
|
@@ -1212,9 +1212,9 @@ impl char { | |
|
||
/// Checks if the value is an ASCII hexadecimal digit: | ||
/// | ||
/// - U+0030 `0` ..= U+0039 `9`, or | ||
/// - U+0041 `A` ..= U+0046 `F`, or | ||
/// - U+0061 `a` ..= U+0066 `f`. | ||
/// - U+0030 '0' ..= U+0039 '9', or | ||
/// - U+0041 'A' ..= U+0046 'F', or | ||
/// - U+0061 'a' ..= U+0066 'f'. | ||
/// | ||
/// # Examples | ||
/// | ||
|
@@ -1282,7 +1282,7 @@ impl char { | |
} | ||
|
||
/// Checks if the value is an ASCII graphic character: | ||
/// U+0021 `!` ..= U+007E `~`. | ||
/// U+0021 '!' ..= U+007E '~'. | ||
/// | ||
/// # Examples | ||
/// | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep