Commit Graph

4 Commits (e697de6076bea96584b1109eda2287b889aaef09)

Author SHA1 Message Date
Toshio Kuratomi e697de6076 Move AnsibleBaseBaseYAMLObject's position_info into a property 11 years ago
Toshio Kuratomi 05f1bed12b Use the node's start_mark to determine line and column.
* Elminates a lot of logic in the AnsibleComposer class.
* Update tests with new column offsets.  The rule should now be
  consistently: Column is the start of the entry's value (so for
  strings, the first non-space after the entry beginning, for dicts, the
  first character of the first key)
11 years ago
Toshio Kuratomi b152275a36 Test line numbers and "fix" a bug in the scalar line counting 11 years ago
Toshio Kuratomi c41b917162 Add a yaml constructor for unicode strings:
* Changes AnsibleConstructor so that only unicode strings are returned
  (no str type)
* Tracks line, column numbers for strings
* Adds unittests for AnsibleLoader (generic for all the yaml parsing)
11 years ago