Skip to content

Commit

Permalink
fix // in link being replaced by the new line
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Auto committed Dec 29, 2024
1 parent 2bf11fb commit 0d18191
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/parse_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,8 @@ def run_parse():
enum_to_mod = next((item for item in enums if item["name"] == enum), dict())
current_var_to_mod = dict()
if enum_to_mod:
sub_matches = extended_enum_info.strip().split("//")
sub_matches = extended_enum_info.strip()
sub_matches = re.split('(?<!:)\s*//\s*', sub_matches)
collected_docs = ""
for sub_match in sub_matches:
var_name = sub_match.strip()
Expand All @@ -1093,7 +1094,8 @@ def run_parse():
type_to_mod = next((item for item in types if item["name"] == type), dict())
current_var_to_mod = dict()
if type_to_mod:
sub_matches = extended_type_info.strip().split("//")
sub_matches = extended_type_info.strip()
sub_matches = re.split('(?<!:)\s*//\s*', sub_matches)
collected_docs = ""
for sub_match in sub_matches:
var_name = sub_match.strip()
Expand Down
2 changes: 1 addition & 1 deletion docs/src/includes/_enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ Name | Data | Description
[ACTIVEFLOOR](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=MASK.ACTIVEFLOOR) | 0x80 | All ACTIVEFLOOR_* entities<br/>Various types, all `Movable`<br/>
[FLOOR](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=MASK.FLOOR) | 0x100 | All FLOOR_* and FLOORSTYLED_* entities<br/>Various types, all `Floor`<br/>
[DECORATION](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=MASK.DECORATION) | 0x200 | All DECORATION_* entities except: DECORATION_CHAINANDBLOCKS_CHAINDECORATION, DECORATION_SLIDINGWALL_CHAINDECORATION, DECORATION_PALACE_PORTRAIT<br/>Also includes: EMBED_GOLD, ENT_TYPE_EMBED_GOLD_BIG<br/>Various types, all `Entity`<br/>
[BG](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=MASK.BG) | 0x400 | All MIDBG* entities and most of the BG_* entities<br/>does not include: a lot .. check `1024` in [search_flags](https:<br/>github.com/spelunky-fyi/overlunky/blob/main/docs/game_data/search_flags.json) for full list of included entities<br/>Also includes: DECORATION_PALACE_PORTRAIT<br/>Various types, all `Entity`<br/>
[BG](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=MASK.BG) | 0x400 | All MIDBG* entities and most of the BG_* entities<br/>does not include: a lot .. check `1024` in [search_flags](https://github.com/spelunky-fyi/overlunky/blob/main/docs/game_data/search_flags.json) for full list of included entities<br/>Also includes: DECORATION_PALACE_PORTRAIT<br/>Various types, all `Entity`<br/>
[SHADOW](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=MASK.SHADOW) | 0x800 | All the BG_* entities excluded from `BG` (MASK.BG &#124; MASK.SHADOW) will get you all BG_* entities plus one extra decoration mentioned above<br/>Various types, all `Entity`<br/>
[LOGICAL](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=MASK.LOGICAL) | 0x1000 | All LOGICAL_* entities<br/>Also includes: ITEM_POWERUP_*, FX_COMPASS, FX_SPECIALCOMPASS, FX_LEADER_FLAG, FX_PLAYERINDICATOR, FX_PLAYERINDICATORPORTRAIT<br/>Various types, all `Entity`<br/>
[WATER](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=MASK.WATER) | 0x2000 | Only: LIQUID_WATER, LIQUID_COARSE_WATER, LIQUID_IMPOSTOR_LAKE<br/>Various types, all `Entity`<br/>
Expand Down

0 comments on commit 0d18191

Please sign in to comment.