From 8c31ae31a4c2cc94285748381a738c383e26d06d Mon Sep 17 00:00:00 2001 From: Gabriel Gerlero Date: Thu, 28 Mar 2024 20:40:06 -0300 Subject: [PATCH] Update parsing --- foamlib/_dictionaries.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/foamlib/_dictionaries.py b/foamlib/_dictionaries.py index fc6d07f..dc0fb37 100644 --- a/foamlib/_dictionaries.py +++ b/foamlib/_dictionaries.py @@ -27,7 +27,6 @@ c_style_comment, common, cpp_style_comment, - identchars, identbodychars, printables, ) @@ -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())) )