Skip to content

Commit 369209d

Browse files
committed
[parser] don't add "id" property to section
1 parent 582bed5 commit 369209d

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

lib/parser/pbxproj.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/parser/pbxproj.pegjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ SimpleAssignment
6666
CommentedAssignment
6767
= commentedId:CommentedIdentifier _ "=" _ val:Value ";"
6868
{
69-
commentedId[commentedId.id] = val;
70-
delete(commentedId, 'id')
71-
return commentedId;
69+
var result = Object.create(null),
70+
commentKey = commentedId.id + '_comment';
71+
72+
result[commentedId.id] = val;
73+
result[commentKey] = commentedId.comment;
74+
return result;
7275
}
7376
/
7477
id:Identifier _ "=" _ commentedVal:CommentedValue ";"

0 commit comments

Comments
 (0)