diff --git a/src/parser/keyword.rs b/src/parser/keyword.rs index 4a71976..8510fe9 100644 --- a/src/parser/keyword.rs +++ b/src/parser/keyword.rs @@ -12,6 +12,7 @@ use nom::combinator::eof; use nom::combinator::not; use nom::combinator::peek; use nom::combinator::recognize; +use nom::combinator::verify; use nom::multi::many_till; use nom::sequence::tuple; @@ -116,7 +117,9 @@ pub(crate) fn table_formula_keyword<'b, 'g, 'r, 's>( _context: RefContext<'b, 'g, 'r, 's>, input: OrgSource<'s>, ) -> Res, Keyword<'s>> { - filtered_keyword(table_formula_key)(input) + verify(filtered_keyword(table_formula_key), |kw| { + !kw.value.is_empty() + })(input) } #[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]