Commit 2af6314f by Toshio Kuratomi

Comment to clarify why we add one to the line and column recording

parent 79f9fbd5
......@@ -58,6 +58,7 @@ class AnsibleConstructor(Constructor):
def _node_position_info(self, node):
# the line number where the previous token has ended (plus empty lines)
# Add one so that the first line is line 1 rather than line 0
column = node.start_mark.column + 1
line = node.start_mark.line + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment