From 979250653665728c0a69cb82df250e2a0a0ffdfd Mon Sep 17 00:00:00 2001 From: Charles Brunet Date: Thu, 23 Feb 2023 16:47:00 -0500 Subject: rewriter: fix indentation of kwargs --- mesonbuild/rewriter.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mesonbuild') diff --git a/mesonbuild/rewriter.py b/mesonbuild/rewriter.py index 03e4bc9..4c32ff1 100644 --- a/mesonbuild/rewriter.py +++ b/mesonbuild/rewriter.py @@ -594,6 +594,8 @@ class Rewriter: # Convert the keys back to IdNode's arg_node.kwargs = {IdNode(Token('', '', 0, 0, 0, None, k)): v for k, v in arg_node.kwargs.items()} + for k, v in arg_node.kwargs.items(): + k.level = v.level if num_changed > 0 and node not in self.modified_nodes: self.modified_nodes += [node] -- cgit v1.1