Hi,
I'm trying to create syntax file and fail into giving numbers a certain color.
I want to give a color to
- binary numbers
- decimal numbers
- hexadecimal number
In my syntax the following applies
binary numbers start with the prefix % .
ie: %10101010
%1001
%1
decimal numbers start with no prefix
ie: 00
55
7890
hexadecimal numbers start with the prefix $
ie: $ABCD
$00AA
$BB55
$10
How do I give this up to the syn match statement?
What must be in the '<what to put here>' below?
"define matching critera for specific number
syn match BinaryNumber "<what to put here>"
syn match DecimalNumber "<what to put here>"
syn match HexNumber "<what to put here>"
" group different numbers to one label MyNumber
hi def link BinaryNumber MyNumber
hi def link DecimalNumber MyNumber
hi def link HexNumber MyNumber
" link MyNumber to standard syn groups so the 'colorschemes' work:
hi def link MyNumber number
Rgds,
Jeri
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---