diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-10-04 18:14:33 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-12-08 10:08:10 -0800 |
| commit | e2ebe0ef46a8b4619e219eef88df7660a0a0b4eb (patch) | |
| tree | b4418a1206aa8fd0cc9483809cffa4d83a7e341a /mesonbuild/mparser.py | |
| parent | 18f3abb6e662b5a3d6ec2c13992f87b3f690cae5 (diff) | |
| download | meson-e2ebe0ef46a8b4619e219eef88df7660a0a0b4eb.tar.gz | |
make ctype the same as the printed AST
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/mparser.py')
| -rw-r--r-- | mesonbuild/mparser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/mparser.py b/mesonbuild/mparser.py index b9bc22213..f80706a90 100644 --- a/mesonbuild/mparser.py +++ b/mesonbuild/mparser.py @@ -674,7 +674,7 @@ class ParenthesizedNode(BaseNode): self.is_multiline = False if T.TYPE_CHECKING: - COMPARISONS = Literal['==', '!=', '<', '<=', '>=', '>', 'in', 'notin'] + COMPARISONS = Literal['==', '!=', '<', '<=', '>=', '>', 'in', 'not in'] comparison_map: T.Mapping[str, COMPARISONS] = { 'equal': '==', @@ -684,7 +684,7 @@ comparison_map: T.Mapping[str, COMPARISONS] = { 'gt': '>', 'ge': '>=', 'in': 'in', - 'not in': 'notin', + 'not in': 'not in', } # Recursive descent parser for Meson's definition language. @@ -844,7 +844,7 @@ class Parser: not_token.bytespan = (not_token.bytespan[0], in_token.bytespan[1]) not_token.value += temp_node.whitespaces.value + in_token.value operator = self.create_node(SymbolNode, not_token) - return self.create_node(ComparisonNode, 'notin', left, operator, self.e5()) + return self.create_node(ComparisonNode, 'not in', left, operator, self.e5()) return left def e5(self) -> BaseNode: |
