Skip to content

Commit 69d57a7

Browse files
committed
Chef: add column attribute to keyvalues
1 parent 66d2fff commit 69d57a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

glitch/parsers/chef.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ def is_attribute(self, ast: Any) -> bool:
348348
has_variable,
349349
)
350350
a.line = ChefParser._get_content_bounds(ast, self.source)[0]
351+
a.column = ChefParser._get_content_bounds(ast, self.source)[1]
351352
a.code = ChefParser._get_source(ast, self.source)
352353
self.atomic_unit.add_attribute(a)
353354
elif isinstance(ast, (ChefParser.Node, list)):
@@ -368,6 +369,7 @@ def create_variable(
368369
):
369370
variable = Variable(name, value, has_variable)
370371
variable.line = ChefParser._get_content_bounds(key, self.source)[0]
372+
variable.column = ChefParser._get_content_bounds(key, self.source)[1]
371373
variable.code = ChefParser._get_source(ast, self.source)
372374
return variable
373375

0 commit comments

Comments
 (0)