rossengeorgiev/vdf-parser

Non quoted names are not parsed

andygrunwald opened this issue · 1 comments

According to https://developer.valvesoftware.com/wiki/KeyValues: It has 3 control characters {, } and ". Names and values may be quoted or not..

This means:

"ParentKey1"
{
    ValueKey1   "1"
}

should result in

array(1) {
  'ParentKey1' =>
  array(1) {
    'ValueKey1' =>
    string(1) "1"
  }
}

but results in

array(1) {
  'ParentKey1' =>
  array(0) {
  }
}

Had forgotten to fix. Thanks!