xbase-lab / xcodeproj

XcodeProj parser and data representation
5 stars 2 forks source link

Adjust ident rule to allow ident starting with (_) underscore #8

Closed Larusso closed 4 months ago

Larusso commented 4 months ago

I tested this crate with an xcode project created by Unity and it crashed. The reason is that unity prefixes some files with __

e.g.

48F04CAAAB193DE466850215 /* __Generated.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = __Generated.cpp; path = Classes/Native/__Generated.cpp; sourceTree = SOURCE_ROOT; };

The project loads and works fine in Xcode so I assume that the error must be in the crate.

I adjusted the grammar and provided another demo file which breaks without the adjusted grammar.