Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: implement references to nodes across YAML files #138

Merged
merged 13 commits into from
Aug 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions data/test/config_compiler_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# tests for ConfigCompiler features

include_local_reference:
- __include: starcraft
- __include: /starcraft
- __include: :starcraft
- __include: :/starcraft

include_external_reference:
terrans:
__include: config_test:/terrans

include_external_file:
__include: config_test:/

patch_reference:
__patch: /local/patch
battlefields:
- lost temple
- luna
- hunters

patch_literal:
__patch:
zerg/ground_units/@next: lurker
zerg:
__include: /starcraft/zerg

patch_list:
protoss:
__include: /starcraft/protoss
__patch:
- protoss/ground_units/@next: dark templar
- protoss/ground_units/@next: dark archon

dependency_chaining:
alpha:
__include: /dependency_chaining/beta
beta:
__include: /dependency_chaining/epsilon
delta:
__include: /dependency_chaining/beta
epsilon: success

local:
patch:
battlefields/@next: match point

starcraft:
terrans:
player: slayers_boxer
protoss:
ground_units:
- probe
- zealot
- dragoon
- high templar
- archon
- reaver
player: grrrr
zerg:
ground_units:
- drone
- zergling
- hydralisk
- ultralisk
- defiler
player: yellow
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
aux_source_directory(. rime_src_api)
aux_source_directory(rime rime_src_base)
aux_source_directory(rime/algo rime_src_algo)
aux_source_directory(rime/config rime_src_config)
aux_source_directory(rime/dict rime_src_dict)
aux_source_directory(rime/gear rime_src_gear)
aux_source_directory(rime/lever rime_src_lever)
Expand Down
Loading