diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-02 00:02:48 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-04 13:28:18 +0300 |
commit | f4f30ed51b9bcd84cf25b601fab0a0064aae7af8 (patch) | |
tree | 4628e96209c5f03e60682d1fbb9d42a807d76173 | |
parent | db11aff653456e9fa4d06f4a86ce0f7a616171b5 (diff) |
Fix manifest_parser to provide a proper position for multi-line value
-rw-r--r-- | butl/manifest-parser.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/butl/manifest-parser.cxx b/butl/manifest-parser.cxx index 5028f18..6b50d6b 100644 --- a/butl/manifest-parser.cxx +++ b/butl/manifest-parser.cxx @@ -174,6 +174,14 @@ namespace butl unget (c); } + // Multi-line value starts from the line that follows the name. + // + if (ml) + { + r.value_line = c.line; + r.value_column = c.column; + } + // The nl flag signals that the preceding character was a "special // newline", that is, a newline that was part of the milti-line mode // introductor or an escape sequence. |