Skip to content

Commit

Permalink
Merge pull request #138 from kionz/config
Browse files Browse the repository at this point in the history
config: implement references to nodes across YAML files
  • Loading branch information
lotem authored Aug 29, 2017
2 parents 92a94cd + b7c3918 commit 7fe4428
Show file tree
Hide file tree
Showing 24 changed files with 2,077 additions and 1,118 deletions.
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

0 comments on commit 7fe4428

Please sign in to comment.