mirror of
https://github.com/danog/parser.git
synced 2024-11-30 04:29:13 +01:00
parser: scope block method to crate
This commit is contained in:
parent
2cfc502299
commit
e3a0e3e62f
@ -5,7 +5,7 @@ use crate::Block;
|
||||
use super::{Parser, ParseResult};
|
||||
|
||||
impl Parser {
|
||||
pub fn block(&mut self, until: &TokenKind) -> ParseResult<Block> {
|
||||
pub(crate) fn block(&mut self, until: &TokenKind) -> ParseResult<Block> {
|
||||
let mut block = Block::new();
|
||||
|
||||
while ! self.is_eof() && &self.current.kind != until {
|
||||
|
Loading…
Reference in New Issue
Block a user