Home Download Buy Blog Forum Support

percent symbol highlighted in C

percent symbol highlighted in C

Postby zgintasz on Sat Dec 29, 2012 8:53 pm

Hi,

how can I disable percent(%) symbol highlighting in C syntax highliting? And by the way, what is it for?
Image
zgintasz
 
Posts: 6
Joined: Sat Dec 29, 2012 8:38 pm

Re: percent symbol highlighted in C

Postby ArtDesire on Sat Dec 29, 2012 9:57 pm

The percent (%) operator in C and C++ is the modulus operator. It returns the first number mod the second number. Source
But why it's highlights in strings, Idk, probably it's a bug.
ArtDesire
 
Posts: 26
Joined: Thu Dec 27, 2012 9:41 pm
Location: Canada

Re: percent symbol highlighted in C

Postby adzenith on Sun Dec 30, 2012 5:30 am

It's highlighting the % because it's assuming that you're making a printf format string, and that you've made it wrong. Unfortunately there's no way to tell it it's not a printf format string short of changing the syntax file.
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: percent symbol highlighted in C

Postby zgintasz on Sun Dec 30, 2012 10:25 am

@ArtDesire, I was asking what is the percent symbol highlighting for, not what does percent symbol do :).

Anyway, thanks. I've commented the value "invalid.illegal.placeholder.c" in C.tmLanguage on line 1116 and it's gone :roll:.
zgintasz
 
Posts: 6
Joined: Sat Dec 29, 2012 8:38 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 20 guests