Create a configuration that ignores whitespace.
()
| 503 | |
| 504 | /// Create a configuration that ignores whitespace. |
| 505 | pub fn ignoring_whitespace() -> Self { |
| 506 | Self { |
| 507 | tokenizer_config: TokenizerConfig::default(), |
| 508 | ignore_whitespace_changes: true, |
| 509 | filter_whitespace: true, |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | /// Set whether to ignore whitespace changes (builder method). |
| 514 | pub fn with_ignore_whitespace(mut self, ignore: bool) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected