Commit 7cbc8cedeada005e97f76fea2c07dbf87095c8bb
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,7 +33,8 @@ public define Maybe(YAML_Document) | ||
| 33 | get_yaml_document_content(s, doc) | 33 | get_yaml_document_content(s, doc) |
| 34 | //check for item of the list | 34 | //check for item of the list |
| 35 | else if start_with(line, "- ") then | 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 | get_yaml_document_content(s, doc) | 38 | get_yaml_document_content(s, doc) |
| 38 | //check for entry of the map | 39 | //check for entry of the map |
| 39 | else | 40 | else |
| @@ -43,7 +44,8 @@ public define Maybe(YAML_Document) | @@ -43,7 +44,8 @@ public define Maybe(YAML_Document) | ||
| 43 | println("unrecognize line ["+line+"]"); | 44 | println("unrecognize line ["+line+"]"); |
| 44 | get_yaml_document_content(s, doc), | 45 | get_yaml_document_content(s, doc), |
| 45 | success(pos) then | 46 | success(pos) then |
| 46 | - println("map entry ["+line+"]"); | 47 | + with indent = count_blank(_line), |
| 48 | + println("map entry indent["+indent+"]["+line+"]"); | ||
| 47 | get_yaml_document_content(s, doc) | 49 | get_yaml_document_content(s, doc) |
| 48 | } | 50 | } |
| 49 | }. | 51 | }. |