Commit bc99be1df966b9c321fa9d360ec88c0ef99f8bc7

Authored by Julien Verneuil
1 parent d98711a4

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
@@ -33,7 +33,7 @@ define One @@ -33,7 +33,7 @@ define One
33 [ ] then unique, 33 [ ] then unique,
34 [map . t] then 34 [map . t] then
35 since map is key_value(key, yaml_value), 35 since map is key_value(key, yaml_value),
36 - println(indent_str + " - Name: " + key); 36 + println(indent_str + " - Key name: " + key);
37 if *yaml_value is 37 if *yaml_value is
38 { 38 {
39 null then 39 null then
file_processor_io/yaml/yaml_parser.anubis
@@ -42,7 +42,8 @@ define Maybe(YAML_Parser_Node) @@ -42,7 +42,8 @@ define Maybe(YAML_Parser_Node)
42 ). 42 ).
43 43
44 define Bool eol(Word8 c) = 44 define Bool eol(Word8 c) =
45 - if c = 10 then true // \n 45 + if c = 10 then true // LF
  46 + else if c = 13 then true // CR
46 else false. 47 else false.
47 48
48 define One 49 define One