Why is the tab valid in key / value pairs in the YAML parser?

t: test

Note that this is the tab after :, and I used this YAML parser to check if this is really or not (IMO it is not valid):

Array
(
    [t] => test
)
+5
source share
1 answer

According to the specification , both tabs (U + 0009) and space (U + 0020) are considered "space characters" , which can be used to distinguish tokens.

So why do you find it illegal in this context? Especially considering that Example 6.3 makes it clear that it is valid:

6.3.

-·foo:→·bar
- -·baz
  -→baz 

(· (U + 0020), (U + 0009)).

+6

All Articles