Skip to content

Commit

Permalink
Allow missing trailing commas (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson authored Feb 22, 2024
1 parent 89aadd0 commit 5b5e64b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kin/grammar/PBXProj.g4
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ key_value
| str_number_variable '=' NUMBER ';'
| str_number_variable '=' ALPHA_NUMERIC ';'
| str_number_variable '=' '{' key_value '}' ';'
| str_number_variable '=' '(' (str_number_variable ',')* ')' ';'
| str_number_variable '=' '(' str_number_variable? (',' str_number_variable)* ','? ')' ';'
;

build_configurations
Expand Down
15 changes: 15 additions & 0 deletions tests/ok/016.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
archiveVersion = 1;
classes = {};
objectVersion = 46;
objects = {
FE870E28DC2371E7ACA886F03F460581 = {isa = PBXFileReference; explicitFileType = text.xcconfig; name = "Something.xcconfig"; path = "Configurations/Something.xcconfig"; sourceTree = "<group>"; };
78452DDA02BFEF5D6BA29AEFB4B1266A = {isa = PBXGroup; children = (FE870E28DC2371E7ACA886F03F460581,); name = Configurations; sourceTree = "<group>"; };
49FBBF861C10C2A200A1A4BB = {isa = PBXProject; buildConfigurationList = 49FBBF891C10C2A200A1A4BB; compatibilityVersion = "Xcode 3.2"; hasScannedForEncodings = 0; mainGroup = 49FBBF851C10C2A200A1A4BB; productRefGroup = 49FBBF8F1C10C2A200A1A4BB; projectDirPath = ""; projectRoot = ""; targets = (49FBBF8D1C10C2A200A1A4BB, 4973659B1C19BC6E00837617,); };
49FBBF951C10C2A200A1A4BB = {isa = PBXVariantGroup; children = (49FBBF961C10C2A200A1A4BB,); name = Main.storyboard; sourceTree = "<group>"; };
49FBBF9A1C10C2A200A1A4BB = {isa = PBXVariantGroup; children = (49FBBF9B1C10C2A200A1A4BB,); name = LaunchScreen.storyboard; sourceTree = "<group>"; };
497365A41C19BC6E00837617 = {isa = XCBuildConfiguration; baseConfigurationReference = 274E42B0193BA6FEFA8FD71C; buildSettings = { FRAMEWORK_SEARCH_PATHS = ("$(inherited)", "$(PROJECT_DIR)/build/Debug-iphoneos"); }; name = Debug; };
49FBBFB61C10C2A200A1A4BB = {isa = XCConfigurationList; buildConfigurations = (49FBBFB71C10C2A200A1A4BB, 49FBBFB81C10C2A200A1A4BB,); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; };
};
rootObject = 49FBBF861C10C2A200A1A4BB;
}

0 comments on commit 5b5e64b

Please sign in to comment.