Sublime Forum

Proper highlighting of floating point numbers

#1

I’m trying to highlighte the dot that separates the whole and fractional part of the floating point number (in C language). I use following snippet (in C.tmLanguage):

<dict>
	<key>match</key>
	<string>[0-9]+\.[0-9]+</string>
	<key>name</key>
	<string>constant.numeric.c</string>
</dict>

I also excluded the dot character from word separators list (in C.sublime-settings):

"word_separators": "/\\()\"'-:,;<>~!@#$%^&*|+=]{}`~?"

But nothing happend. How can I achieve the desired behavior?

0 Likes