]> andersk Git - libyaml.git/commitdiff
spec-1.2 rule [53]
authorIngy döt Net <ingy@ingy.net>
Mon, 11 Feb 2013 19:25:17 +0000 (11:25 -0800)
committerIngy döt Net <ingy@ingy.net>
Thu, 6 Oct 2016 17:03:48 +0000 (10:03 -0700)
Support "\/" for JSON compatability.

src/scanner.c

index 5ec0be086d27a8f175ffecd28239118aca100580..3f7f2acf48acb95a2e646e54034935bd46f76f84 100644 (file)
@@ -3162,6 +3162,10 @@ yaml_parser_scan_flow_scalar(yaml_parser_t *parser, yaml_token_t *token,
                         *(string.pointer++) = '"';
                         break;
 
+                    case '/':
+                        *(string.pointer++) = '/';
+                        break;
+
                     case '\'':
                         *(string.pointer++) = '\'';
                         break;
This page took 0.177393 seconds and 5 git commands to generate.