@@ -1195,23 +1195,23 @@ pub trait InputStream {
1195
1195
///
1196
1196
/// # Returns
1197
1197
///
1198
- /// | Type | Return Value |`state.is_within_text_terminated_by` |
1199
- /// |---------------------------|:-----------------------------------:|:------------------------------------:|
1200
- /// |`#"hello"#` |`StringConstant("hello")` |`None` |
1201
- /// |`#"hello`_{EOF}_ |`StringConstant("hello")` |`Some("#")` |
1202
- /// |`####"hello`_{EOF}_ |`StringConstant("hello")` |`Some("####")` |
1203
- /// |`#" "hello" "`_{EOF}_ |`LexError` |`None` |
1204
- /// |`#""hello""#` |`StringConstant("\"hello\"")` |`None` |
1205
- /// |`##"hello #"# world"##` |`StringConstant("hello #\"# world")` |`None` |
1206
- /// |`#"R"#` |`StringConstant("R")` |`None` |
1207
- /// |`#"\x52"#` |`StringConstant("\\x52")` |`None` |
1198
+ /// | Type | Return Value |`state.is_within_text_terminated_by` |
1199
+ /// |---------------------------|:------------------------------------------------------------ :|:------------------------------------:|
1200
+ /// |`#"hello"#` |[ `StringConstant("hello")`][Token::StringConstant] |`None` |
1201
+ /// |`#"hello`_{EOF}_ |[ `StringConstant("hello")`][Token::StringConstant] |`Some("#")` |
1202
+ /// |`####"hello`_{EOF}_ |[ `StringConstant("hello")`][Token::StringConstant] |`Some("####")` |
1203
+ /// |`#" "hello" "`_{EOF}_ |[ `LexError`] |`None` |
1204
+ /// |`#""hello""#` |[ `StringConstant("\"hello\"")`][Token::StringConstant] |`None` |
1205
+ /// |`##"hello #"# world"##` |[ `StringConstant("hello #\"# world")`][Token::StringConstant] |`None` |
1206
+ /// |`#"R"#` |[ `StringConstant("R")`][Token::StringConstant] |`None` |
1207
+ /// |`#"\x52"#` |[ `StringConstant("\\x52")`][Token::StringConstant] |`None` |
1208
1208
///
1209
- /// This function does _not_ throw a `LexError` for an unterminated raw string at _{EOF}_
1209
+ /// This function does _not_ throw a [ `LexError`] for an unterminated raw string at _{EOF}_
1210
1210
///
1211
1211
/// This is to facilitate using this function to parse a script line-by-line, where the end of the
1212
1212
/// line (i.e. _{EOF}_) is not necessarily the end of the script.
1213
1213
///
1214
- /// Any time a [`StringConstant`][` Token::StringConstant` ] is returned with
1214
+ /// Any time a [`StringConstant`][Token::StringConstant] is returned with
1215
1215
/// `state.is_within_text_terminated_by` set to `Some(_)` is one of the above conditions.
1216
1216
pub fn parse_raw_string_literal (
1217
1217
stream : & mut ( impl InputStream + ?Sized ) ,
@@ -1321,18 +1321,18 @@ pub fn parse_raw_string_literal(
1321
1321
///
1322
1322
/// # Returns
1323
1323
///
1324
- /// | Type | Return Value |`state.is_within_text_terminated_by`|
1325
- /// |---------------------------------|:--------------------------:|:----------------------------------:|
1326
- /// |`"hello"` |`StringConstant("hello")` |`None` |
1327
- /// |`"hello`_{LF}_ or _{EOF}_ |`LexError` |`None` |
1328
- /// |`"hello\`_{EOF}_ or _{LF}{EOF}_ |`StringConstant("hello")` |`Some('"')` |
1329
- /// |`` `hello``_{EOF}_ |`StringConstant("hello")` |``Some('`')`` |
1330
- /// |`` `hello``_{LF}{EOF}_ |`StringConstant("hello\n")` |``Some('`')`` |
1331
- /// |`` `hello ${`` |`InterpolatedString("hello ")`<br/>next token is `{`|`None` |
1332
- /// |`` } hello` `` |`StringConstant(" hello")` |`None` |
1333
- /// |`} hello`_{EOF}_ |`StringConstant(" hello")` |``Some('`')`` |
1324
+ /// | Type | Return Value |`state.is_within_text_terminated_by`|
1325
+ /// |---------------------------------|:--------------------------------------------------- :|:----------------------------------:|
1326
+ /// |`"hello"` |[ `StringConstant("hello")`][Token::StringConstant] |`None` |
1327
+ /// |`"hello`_{LF}_ or _{EOF}_ |[ `LexError`] |`None` |
1328
+ /// |`"hello\`_{EOF}_ or _{LF}{EOF}_ |[ `StringConstant("hello")`][Token::StringConstant] |`Some('"')` |
1329
+ /// |`` `hello``_{EOF}_ |[ `StringConstant("hello")`][Token::StringConstant] |``Some('`')`` |
1330
+ /// |`` `hello``_{LF}{EOF}_ |[ `StringConstant("hello\n")`][Token::StringConstant] |``Some('`')`` |
1331
+ /// |`` `hello ${`` |[ `InterpolatedString("hello ")`][Token::InterpolatedString] <br/>next token is `{`|`None` |
1332
+ /// |`` } hello` `` |[ `StringConstant(" hello")`][Token::StringConstant] |`None` |
1333
+ /// |`} hello`_{EOF}_ |[ `StringConstant(" hello")`][Token::StringConstant] |``Some('`')`` |
1334
1334
///
1335
- /// This function does not throw a `LexError` for the following conditions:
1335
+ /// This function does not throw a [ `LexError`] for the following conditions:
1336
1336
///
1337
1337
/// * Unterminated literal string at _{EOF}_
1338
1338
///
@@ -1341,7 +1341,7 @@ pub fn parse_raw_string_literal(
1341
1341
/// This is to facilitate using this function to parse a script line-by-line, where the end of the
1342
1342
/// line (i.e. _{EOF}_) is not necessarily the end of the script.
1343
1343
///
1344
- /// Any time a [`StringConstant`][` Token::StringConstant` ] is returned with
1344
+ /// Any time a [`StringConstant`][Token::StringConstant] is returned with
1345
1345
/// `state.is_within_text_terminated_by` set to `Some(_)` is one of the above conditions.
1346
1346
pub fn parse_string_literal (
1347
1347
stream : & mut ( impl InputStream + ?Sized ) ,
0 commit comments