Commit 7cbc8cedeada005e97f76fea2c07dbf87095c8bb

Authored by totoro
1 parent c172a9cf

add indentation blank count (must update anubis lib)

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
file_processor_io/yaml/yaml_parser.anubis
... ... @@ -33,7 +33,8 @@ public define Maybe(YAML_Document)
33 33 get_yaml_document_content(s, doc)
34 34 //check for item of the list
35 35 else if start_with(line, "- ") then
36   - println("list item ["+line+"]");
  36 + with indent = count_blank(_line),
  37 + println("list item indent["+indent+"]["+line+"]");
37 38 get_yaml_document_content(s, doc)
38 39 //check for entry of the map
39 40 else
... ... @@ -43,7 +44,8 @@ public define Maybe(YAML_Document)
43 44 println("unrecognize line ["+line+"]");
44 45 get_yaml_document_content(s, doc),
45 46 success(pos) then
46   - println("map entry ["+line+"]");
  47 + with indent = count_blank(_line),
  48 + println("map entry indent["+indent+"]["+line+"]");
47 49 get_yaml_document_content(s, doc)
48 50 }
49 51 }.
... ...