alunny / node-xcode

tools and utilities for working with xcode/ios projects
Apache License 2.0
226 stars 105 forks source link

Parser will return error when parsing image which named with number #11

Closed tanhongxu closed 11 years ago

tanhongxu commented 11 years ago

It returns error when parsing this line:

797155D8169AC3B600740968 /* 1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 1.png; sourceTree = ""; };

The parser said,

{ name: 'SyntaxError', message: 'Expected "/*", ";" or [0-9] but "." found.', line: 1301, column: 106 }

tanhongxu commented 11 years ago

in lib/parser/pbxproj.js: (function parse_IntegerValue)

line 1707: var result8 = parse_Alpha(); //bug: not only parseAlpha(), should also omit '. -' etc

alunny commented 11 years ago

Thanks for the report - sorry for leaving it open for so long.