Sublime Forum

Theme Syntax Definition - Regex Broken

#1

(Please, if this topic has been made before, feel free to delete and link me!)

I’m having trouble using Regex to help define some syntax in my themes. As an example, the following;

		<dict>
			<key>name</key>
			<string>blade - echo</string>
			<key>match</key>
			<string>echo</string>
			<key>settings</key>
			<dict>
				<key>foreground</key>
				<string>#f00</string>
			</dict>
		</dict>

should make all instances of the word “echo” go red, right? Except it makes everything go red that’s not already caught in a scope somewhere. (including line numbers even!)

Am I just grossly misunderstanding the Oniguruma Regular Expressions syntax?

Any help would be massively appreciated!

Thanks

0 Likes