JujuAdams / SNAP

Data format converters for GameMaker LTS 2022
MIT License
88 stars 15 forks source link

Fix multiline comments in XML #19

Closed evolutionleo closed 2 years ago

evolutionleo commented 2 years ago

previously, SNAP's XML parser would treat any ">" token like it's a "-->" when inside a comment. this pull fixes that :p

JujuAdams commented 2 years ago
  1. Please only commit changes to files that are the subject of the PR
  2. Please use spaces instead of tabs
  3. Please commit fixes to snap_from_ini_string separately to snap_from_xml
  4. Please verbosely bracket conditional statements: if (!_tag_is_comment || (_tag_is_comment && _previous_value == ord("-")))