MCPcopy Create free account
hub / github.com/davidblewett/rure-python / ignore_whitespace

Method ignore_whitespace

regex/regex-syntax/src/ast/parse.rs:218–221  ·  view source on GitHub ↗

Enable verbose mode in the regular expression. When enabled, verbose mode permits insigificant whitespace in many places in the regular expression, as well as comments. Comments are started using `#` and continue until the end of the line. By default, this is disabled. It may be selectively enabled in the regular expression by using the `x` flag regardless of this setting.

(&mut self, yes: bool)

Source from the content-addressed store, hash-verified

216 /// By default, this is disabled. It may be selectively enabled in the
217 /// regular expression by using the `x` flag regardless of this setting.
218 pub fn ignore_whitespace(&mut self, yes: bool) -> &mut ParserBuilder {
219 self.ignore_whitespace = yes;
220 self
221 }
222}
223
224/// A regular expression parser.

Callers 5

bump_spaceMethod · 0.45
peek_spaceMethod · 0.45
push_groupMethod · 0.45
parse_escapeMethod · 0.45
parser_ignore_whitespaceFunction · 0.45

Calls 2

parserMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected