Skip to content

Commit

Permalink
Merge pull request #49 from gerlero/dictionaries
Browse files Browse the repository at this point in the history
Update parsing
  • Loading branch information
gerlero authored Mar 29, 2024
2 parents fecd618 + 8c31ae3 commit a102c10
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 a102c10

Please sign in to comment.