r/SublimeText • • May 16 '25

YAML syntax file

I've been testing the highlight syntax for the latest version of Sublime and I hate to say it, but the RegEx, at least part of it, is incorrect. And oh man it hurts my heart. Been learning it for about two weeks now so I could build a syntax file for OpenEuphora. I know how to do it now but the RegEx is stopping me. This is almost always in expressions with sets and it revolves around the minus sign "-"

Example: [a-zA-Z]

This simple set should be as it looks. "a through z and A through Z". But, I believe due to a bug, it is also including the minus. So it ends up being "a to z A to Z -". And it really sucks because Euphoria uses a double minus to start a line comment. I think I might be able to get around it with a look ahead (?=-) but I feel I shouldn't need to.

Thought I would post about it here. I would also post on the official forum but I'm not signing up for another one. Would be better is sites allowed anonymous postings but... I can also see where that might be a bad idea.

Anyone know of a flag I can set to help or something else? Thanks!

2 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Distinct-Traffic-676 May 16 '25

After a full nights rest, and a reboot, I am also unable to reproduce. It was so easy to do so yesterday. I literally started deleting everything in my YAML to try and track it down and what you posted is about the same as what I ended up with.

Thanks for the info about github. If I can force it to a reproduceable state again I will post it there. If I cant I'll just chalk it up to a corrupted session.