diff --git a/atomisticparsers/lammps/parser.py b/atomisticparsers/lammps/parser.py index 77c2bbd8..3896d2c1 100644 --- a/atomisticparsers/lammps/parser.py +++ b/atomisticparsers/lammps/parser.py @@ -666,7 +666,7 @@ def str_op(val): self._quantities = [ Quantity( name, - r"\n\s*%s\s+([\w\. \/\#\-]+)(\&\n[\w\. \/\#\-]*)*" % name, + r"\n\s*%s\s+(?!.*\$\{)([${}\w\. \/\#\-]+)(\&\n[\w\. \/\#\-]*)*" % name, str_operation=str_op, comment="#", repeats=True,