diff --git a/kin/grammar/PBXProj.g4 b/kin/grammar/PBXProj.g4 index 64c8799..2bb156e 100644 --- a/kin/grammar/PBXProj.g4 +++ b/kin/grammar/PBXProj.g4 @@ -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 diff --git a/tests/ok/016.pbxproj b/tests/ok/016.pbxproj new file mode 100644 index 0000000..38c8db8 --- /dev/null +++ b/tests/ok/016.pbxproj @@ -0,0 +1,15 @@ +{ + archiveVersion = 1; + classes = {}; + objectVersion = 46; + objects = { + FE870E28DC2371E7ACA886F03F460581 = {isa = PBXFileReference; explicitFileType = text.xcconfig; name = "Something.xcconfig"; path = "Configurations/Something.xcconfig"; sourceTree = ""; }; + 78452DDA02BFEF5D6BA29AEFB4B1266A = {isa = PBXGroup; children = (FE870E28DC2371E7ACA886F03F460581,); name = Configurations; sourceTree = ""; }; + 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 = ""; }; + 49FBBF9A1C10C2A200A1A4BB = {isa = PBXVariantGroup; children = (49FBBF9B1C10C2A200A1A4BB,); name = LaunchScreen.storyboard; sourceTree = ""; }; + 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; +}