Skip to content

Commit

Permalink
Update parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Mar 28, 2024
1 parent fecd618 commit 8c31ae3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions foamlib/_dictionaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
c_style_comment,
common,
cpp_style_comment,
identchars,
identbodychars,
printables,
)
Expand Down Expand Up @@ -356,7 +355,7 @@ def _list_of(elem: ParserElement) -> ParserElement:


_TENSOR = _list_of(common.number) | common.number
_IDENTIFIER = Word(identchars + "$", identbodychars + "({,./:^!)}")
_IDENTIFIER = Word(identbodychars + "$", identbodychars + "({,./:^!)}")
_DIMENSIONED = (Opt(_IDENTIFIER) + _DIMENSIONS + _TENSOR).set_parse_action(
lambda tks: FoamFile.Dimensioned(*reversed(tks.as_list()))
)
Expand Down

0 comments on commit 8c31ae3

Please sign in to comment.