scenery-io / stallion

Scripting bridge for Cavalry
https://marketplace.visualstudio.com/items?itemName=Scenery.cavalry-bridge
MIT License
8 stars 0 forks source link

Fix: Single-line comments will break IIFE #6

Closed yevgenymakarov closed 1 month ago

yevgenymakarov commented 1 month ago

In case the last line of the script is a single-line comment, add a newline character to the end to prevent the IIFE from breaking.

Klustre commented 1 month ago

Thanks for the contribution! It'll be part of the next release.