TG sync Sunday (#201)

* stage one

* datums and shit

* game stuff

* modules

* tgstation.dme

* tools

* these things for icons

* compiling fixes

* merge spree on TG

* other updates

* updated maps with deepfryers

* My helpers were not helping
This commit is contained in:
Poojawa
2017-02-06 00:36:56 -06:00
committed by GitHub
parent aeeca195c7
commit 73b6b33f79
279 changed files with 3548 additions and 2585 deletions

View File

@@ -253,6 +253,9 @@ def get_map_raw_text(mapfile):
return reading.read()
def parse_map(map_raw_text): #still does not support more than one z level per file, but should parse any format
in_comment_line = False
comment_trigger = False
in_quote_block = False
in_key_block = False
in_data_block = False
@@ -289,9 +292,26 @@ def parse_map(map_raw_text): #still does not support more than one z level per f
if not in_map_block:
if char == "\n" or char == "\t":
if char == "\n":
in_comment_line = False
comment_trigger = False
continue
if in_comment_line:
continue
if char == "\t":
continue
if char == "/" and not in_quote_block:
if comment_trigger:
in_comment_line = True
continue
else:
comment_trigger = True
else:
comment_trigger = False
if in_data_block:
if in_varedit_block: