Fix path-end list not being added to ParserContext

Although this change isn't really needed for parsing, because it only
concerns path-end lists, and the parsing would end there (or it would
use a different rule if it didn't end), it is needed for generating path
completions, because, if the user types in a path ending with a list and
then tries to generate completions the completions wouldn't have been
generated from the whole path, but from the path, where the list is
located (because the list wasn't added to the ParserContext context path).

Change-Id: Id48926e3a8b1929c17490a2b4a7abadb28ed3d48
diff --git a/src/ast_handlers.hpp b/src/ast_handlers.hpp
index c596821..717f077 100644
--- a/src/ast_handlers.hpp
+++ b/src/ast_handlers.hpp
@@ -201,7 +201,14 @@
     }
 };
 
-struct dataNodeList_class;
+struct dataNodeList_class {
+    template <typename T, typename Iterator, typename Context>
+    void on_success(Iterator const&, Iterator const&, T& ast, Context const& context)
+    {
+        auto& parserContext = x3::get<parser_context_tag>(context);
+        parserContext.m_curPath.m_nodes.push_back(dataNodeToSchemaNode(ast));
+    }
+};
 
 struct dataNode_class {
     template <typename T, typename Iterator, typename Context>