I wrote a rather simple syntax file, but digits in identifiers get colored:
syn match xNumber '\d\+'
1 gets the "numbers" color.
Maybe identifiers need to be matched with higher priority?
Or perhaps the pattern for number needs anchors, like a word beginning/end. I
\B, but then numbers were not highlighted anymore.