fix: lossless_parser! should be pub(crate)
This commit is contained in:
parent
8698e59df3
commit
0245b9b2c4
2 changed files with 4 additions and 1 deletions
|
|
@ -16,3 +16,5 @@ pub use org::Org;
|
|||
pub use syntax::{
|
||||
SyntaxElement, SyntaxElementChildren, SyntaxKind, SyntaxNode, SyntaxNodeChildren, SyntaxToken,
|
||||
};
|
||||
|
||||
pub(crate) use syntax::combinator::lossless_parser;
|
||||
|
|
|
|||
|
|
@ -71,7 +71,6 @@ token_parser!(hash_plus_token, "#+", HASH_PLUS);
|
|||
token_parser!(hash_token, "#", HASH);
|
||||
token_parser!(double_arrow_token, "=>", DOUBLE_ARROW);
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! lossless_parser {
|
||||
($parser:expr, $input:expr) => {{
|
||||
let i_ = $input;
|
||||
|
|
@ -86,6 +85,8 @@ macro_rules! lossless_parser {
|
|||
}};
|
||||
}
|
||||
|
||||
pub(crate) use lossless_parser;
|
||||
|
||||
/// Takes all blank lines
|
||||
pub fn blank_lines(input: Input) -> IResult<Input, Vec<GreenElement>, ()> {
|
||||
if input.is_empty() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue