MysteryBlokHed / databind

Expand the functionality of Minecraft Datapacks.
https://databind.rtfd.io/en/stable
GNU General Public License v3.0
4 stars 0 forks source link

Comments breaking tags #39

Closed MysteryBlokHed closed 3 years ago

MysteryBlokHed commented 3 years ago

Datapacks support tags by creating a /tags folder under a namespace folder. These tags are referenced using a #. For example:

kill @e[type=#namespace:my_tag]

The support for comments means that this like in a .databind file would be compiled to:

kill @e[type=

The tag and anything following it is removed since the compiler thinks it's a comment. Comments should only be possible if the # is at the beginning of a line, not partway through.