diff options
author | Charles Brunet <charles.brunet@optelgroup.com> | 2023-08-23 09:24:05 -0400 |
---|---|---|
committer | Charles Brunet <charles.brunet@optelgroup.com> | 2023-09-11 07:51:18 -0400 |
commit | 35936283d24ed5a0aa76b184a7489d637d3e49c4 (patch) | |
tree | e6a0d7e95eca06437c15ddb9f89cfaa99c5f43fb /mesonbuild/interpreter | |
parent | a730a2fe215ae45c928370b5e28d2a844c082f38 (diff) | |
download | meson-35936283d24ed5a0aa76b184a7489d637d3e49c4.zip meson-35936283d24ed5a0aa76b184a7489d637d3e49c4.tar.gz meson-35936283d24ed5a0aa76b184a7489d637d3e49c4.tar.bz2 |
parser: preserve escape chars in strings
use separate Node for multiline strings
Diffstat (limited to 'mesonbuild/interpreter')
-rw-r--r-- | mesonbuild/interpreter/interpreter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index 9b005cb..0814739 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -536,7 +536,7 @@ class Interpreter(InterpreterBase, HoldableObject): assert isinstance(kw, mparser.IdNode), 'for mypy' if kw.value == 'meson_version': # mypy does not understand "and isinstance" - if isinstance(val, mparser.StringNode): + if isinstance(val, mparser.BaseStringNode): self.handle_meson_version(val.value, val) def get_build_def_files(self) -> mesonlib.OrderedSet[str]: |