docs: reflow comments
This commit is contained in:
parent
4dcbc94e0f
commit
0dc140909f
1 changed files with 4 additions and 3 deletions
|
|
@ -79,11 +79,12 @@ impl FromStr for Nodes {
|
||||||
}
|
}
|
||||||
/// A function to check if the given `char` should be used by the parser.
|
/// A function to check if the given `char` should be used by the parser.
|
||||||
///
|
///
|
||||||
/// We ignore whitespace since it has no semantic significance in typst aside from variables,
|
/// We ignore whitespace since it has no semantic significance in typst
|
||||||
/// (which are not implemented)
|
/// (aside from variables, which are not implemented)
|
||||||
/// and `&` because it is only used for visual alignment.
|
/// and `&` because it is only used for visual alignment.
|
||||||
///
|
///
|
||||||
/// Newlines are also ignored because they're likely accidental; like in the case of `echo 1+1 | tylc`.
|
/// Newlines are also ignored because they're likely accidental;
|
||||||
|
/// like in the case of `echo 1+1 | tylc`.
|
||||||
fn is_not_ignored_char(c: &char) -> bool {
|
fn is_not_ignored_char(c: &char) -> bool {
|
||||||
!matches!(c, ' ' | '&' | '\n')
|
!matches!(c, ' ' | '&' | '\n')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue