diff --git a/file_processor_io/yaml/yaml_parser.anubis b/file_processor_io/yaml/yaml_parser.anubis index 460db7c..b06670b 100644 --- a/file_processor_io/yaml/yaml_parser.anubis +++ b/file_processor_io/yaml/yaml_parser.anubis @@ -33,7 +33,8 @@ public define Maybe(YAML_Document) get_yaml_document_content(s, doc) //check for item of the list else if start_with(line, "- ") then - println("list item ["+line+"]"); + with indent = count_blank(_line), + println("list item indent["+indent+"]["+line+"]"); get_yaml_document_content(s, doc) //check for entry of the map else @@ -43,7 +44,8 @@ public define Maybe(YAML_Document) println("unrecognize line ["+line+"]"); get_yaml_document_content(s, doc), success(pos) then - println("map entry ["+line+"]"); + with indent = count_blank(_line), + println("map entry indent["+indent+"]["+line+"]"); get_yaml_document_content(s, doc) } }. -- libgit2 0.21.4