I would like to have my dollar sign yellow coloured.
So after searching around, I learnt that the Emacs regex's are different from default regexs. After a while, I got this worked:
'((t (:foreground "#BD9800")))
"Face to display sigils in.")
'(("\\(\\$\\)[_a-zA-Z]" 1 'font-lock-sigil-face)))
So the dollar sign for $variable, gets a yellow color.
But I would like to make the numbers red.
So for example
var $variable = 0123; (this gets red).
But not the strings would be red.
var $variable = "0123"; (So the regex will not makes this red).
I tried many ways, but I don't understand the backslashes in '(("\(\$\)[_a-zA-Z] clearly enough. I would really appreciate it if anyone could explain this?
Thanks in advance.