Skip to content

Commit

Permalink
Add build styles
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson committed Feb 20, 2024
1 parent 8c9abce commit 18964af
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions kin/grammar/PBXProj.g4
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ objects
: OBJECTS '=' '{'
pbx_aggregate_target_section?
pbx_build_file_section?
pbx_build_style_section?
pbx_container_item_proxy_section?
pbx_copy_files_build_phase_section?
pbx_file_reference_section
Expand Down Expand Up @@ -71,6 +72,10 @@ pbx_build_file_section
: (pbx_build_file)+
;

pbx_build_style_section
: (pbx_build_style)+
;

pbx_container_item_proxy_section
: (pbx_container_item_proxy)+
;
Expand Down Expand Up @@ -176,6 +181,14 @@ pbx_build_file
'}' ';'
;

pbx_build_style
: REFERENCE '=' '{'
isa_pbx_build_style
build_settings
name
'}' ';'
;

pbx_container_item_proxy
: REFERENCE '=' '{'
isa_pbx_container_item_proxy
Expand Down Expand Up @@ -289,7 +302,8 @@ pbx_project
attributes?
build_configuration_list
build_settings?
compatibility_version
compatibility_version?
build_styles?
development_region?
has_scanned_for_encodings
known_regions?
Expand All @@ -298,7 +312,7 @@ pbx_project
product_ref_group?
project_dir_path
project_references?
project_root
project_root?
targets
'}' ';'
;
Expand Down Expand Up @@ -428,6 +442,10 @@ isa_pbx_build_file
: ISA '=' PBX_BUILD_FILE ';'
;

isa_pbx_build_style
: ISA '=' PBX_BUILD_STYLE ';'
;

isa_pbx_container_item_proxy
: ISA '=' PBX_CONTAINER_ITEM_PROXY ';'
;
Expand Down Expand Up @@ -876,6 +894,10 @@ build_settings
'}' ';'
;

build_styles
: BUILD_STYLES '=' reference_list ';'
;

dst_path
: DST_PATH '=' any_string ';'
;
Expand Down Expand Up @@ -956,6 +978,7 @@ any_token
| ROOT_OBJECT
| PBX_AGGREGATE_TARGET
| PBX_BUILD_FILE
| PBX_BUILD_STYLE
| PBX_CONTAINER_ITEM_PROXY
| PBX_COPY_FILES_BUILD_PHASE
| PBX_FILE_REFERENCE
Expand Down Expand Up @@ -1085,6 +1108,7 @@ SLASH: '/';
UNDERSCORE: '_';
PBX_AGGREGATE_TARGET: 'PBXAggregateTarget';
PBX_BUILD_FILE: 'PBXBuildFile';
PBX_BUILD_STYLE: 'PBXBuildStyle';
PBX_CONTAINER_ITEM_PROXY: 'PBXContainerItemProxy';
PBX_COPY_FILES_BUILD_PHASE: 'PBXCopyFilesBuildPhase';
PBX_FILE_REFERENCE: 'PBXFileReference';
Expand Down Expand Up @@ -1187,6 +1211,7 @@ FILE_TYPE : 'fileType';
REMOTE_REF : 'remoteRef';
BASE_CONFIGURATION_REFERENCE : 'baseConfigurationReference';
BUILD_SETTINGS : 'buildSettings';
BUILD_STYLES : 'buildStyles';
DST_PATH : 'dstPath';
DST_SUBFOLDER_SPEC : 'dstSubfolderSpec';
PRODUCT_GROUP : 'ProductGroup';
Expand Down

0 comments on commit 18964af

Please sign in to comment.