alstr / todo-to-issue-action

Action that converts TODO comments to GitHub issues on push.
MIT License
603 stars 115 forks source link

WIP: add Svelte support (.svelte) #198

Open chadsr opened 3 weeks ago

chadsr commented 3 weeks ago

Adds support for mixed comment support (JS/HTML syntax) found in .svelte files

chadsr commented 3 weeks ago

It seems adding mixed support of JS and HTML style comments is not straightforward with the current action.

Svelte's ace_mode property in https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml returns html (codemirror_mode is htmlmixed)

Am I correct in assuming that mixed comments of this sort are currently not possible due to the usage of ace_mode making only HTML style comments recognisable?

alstr commented 2 weeks ago

Yes, that would be a challenge to overcome at this stage unfortunately. I imagine the action could check codemirror_mode and then do something different if that is htmlmixed; it would just add some extra layers of complexity. Open to ideas though.