We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e284d7b commit b2943c0Copy full SHA for b2943c0
src/sudoers/ast.rs
@@ -670,6 +670,7 @@ fn get_directive<'a>(
670
// Backtrack and start parsing following the '@' sign
671
*stream = begin_state;
672
stream.advance(DEFAULTS_LEN + 1);
673
+ skip_trailing_whitespace(stream)?;
674
675
ConfigScope::Host(expect_nonterminal(stream)?)
676
} else if is_syntax(':', stream)? {
src/sudoers/basic_parser.rs
@@ -144,7 +144,7 @@ impl Parse for Comment {
144
}
145
146
147
-fn skip_trailing_whitespace(stream: &mut CharStream) -> Parsed<()> {
+pub fn skip_trailing_whitespace(stream: &mut CharStream) -> Parsed<()> {
148
TrailingWhitespace::parse(stream)?;
149
make(())
150
0 commit comments