focustense / StardewUI

UI/widget library for Stardew modding
MIT License
5 stars 0 forks source link

StarML syntax highlighting for VSCode #12

Closed focustense closed 1 month ago

focustense commented 1 month ago

Visual Studio Code is likely the most popular editor used by modders and it doesn't behave very well with .sml right now (thinks it's XML, messes with braces and other punctuation).

According to their syntax highlight guide, it's based on TextMate grammar, which is some flavor of regex parsing. I can't see any reason it shouldn't be possible to add a StarML grammar and upload/distribute it as a VSCode extension, it'll just take some time to learn the tools involved.

focustense commented 1 month ago

There's room for improvement in both the VS and VSCode versions, but what's been merged so far definitely meets the requirement.