From bc99be1df966b9c321fa9d360ec88c0ef99f8bc7 Mon Sep 17 00:00:00 2001 From: Julien Verneuil Date: Thu, 23 Jun 2016 17:27:21 +0200 Subject: [PATCH] add support for CR for "eol" function minor add to "print_yaml_map" to make the output less ambiguous --- file_processor_io/yaml/yaml.anubis | 2 +- file_processor_io/yaml/yaml_parser.anubis | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/file_processor_io/yaml/yaml.anubis b/file_processor_io/yaml/yaml.anubis index 9466d83..74c2aaf 100644 --- a/file_processor_io/yaml/yaml.anubis +++ b/file_processor_io/yaml/yaml.anubis @@ -33,7 +33,7 @@ define One [ ] then unique, [map . t] then since map is key_value(key, yaml_value), - println(indent_str + " - Name: " + key); + println(indent_str + " - Key name: " + key); if *yaml_value is { null then diff --git a/file_processor_io/yaml/yaml_parser.anubis b/file_processor_io/yaml/yaml_parser.anubis index d3c75c0..7681367 100644 --- a/file_processor_io/yaml/yaml_parser.anubis +++ b/file_processor_io/yaml/yaml_parser.anubis @@ -42,7 +42,8 @@ define Maybe(YAML_Parser_Node) ). define Bool eol(Word8 c) = - if c = 10 then true // \n + if c = 10 then true // LF + else if c = 13 then true // CR else false. define One -- libgit2 0.21.4