so, I added this to my theme:
(font-lock-add-keywords 'c-mode
'(("\([0-9]+\)" . font-lock-warning-face)))
so far so good... it changes the color of what the variable contain. ex:
int a = 5
where the '5' is colored with a predefined color. the problem goes when I have a variable whose name correnspond to "variable_1" it colors the '1' in "variable_1"... is there a way to fix this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…