Sublime Forum

Makefile syntax highlighting with multiple targets [PATCH]

#1

With the Makefile syntax you get highlighting for:

blah: stuff to do

but not for the valid syntax of multiple targets on the same line:

all build: stuff to do

(Need to get myself acquainted with the syntax highlighting format used by Sublime Text to fix both this and the Python nit I reported a while ago. So in lieu of not having an official bugtracker, consider it also a placeholder. :wink: )

0 Likes

Beta 20100411 crash with regexp in find/search box
#2

Ok, so in Makefile.tmLanguage we need to change

			<key>match</key>
			<string>^(^\t ]+:(?!\=))\s*.*</string>
			<key>name</key>
			<string>meta.function.makefile</string>

to

			<key>match</key>
			<string>^(^\t ]+(\s^\t ]+)*:(?!\=))\s*.*</string>
			<key>name</key>
			<string>meta.function.makefile</string>
0 Likes

#3

I’ll add this patch into the next beta - thanks

0 Likes

#4

Thanks for applying jps.

Small nit, you reversed the mo in my nickname in the attribution. :wink:

0 Likes

#5

Oops, fixed now!

0 Likes