Hi,

I'm trying to define labels and numbers in a syntax file.
But my label definition makes my numbers that start on the beginning of 
a line seen as a label, which shouldn't.

I have the following in my suntax file:
+-------------------------------------------------------------+

syn match pbLabel           "^\w\+\>:"
syn match pbLabel           "^\w\+\>"

syn match pbDecimalNumber   "\<[1-9]\d\+\>"
syn match pbDecimalNumber   "\<\d\>"
syn match pbDecimalNumber   "\<[1-9]\d\+\>"
syn match pbHexNumber       "\$\x\+\>"
syn match pbBinNumber       "\<[01]\+\>"
syn match pbBinNumber       "%\<[01]\+\>"
+-------------------------------------------------------------+

For my syntax the following applies:
A label is text that start on a newline and start with a character , 
followed by a another character or a number and/or a :
So the following are all valid labels:

dividersor
div8
div20:

When it starts with a number, or $ or % it should be not be seen as a 
label but as a number, hexadecimal number or a binairy number
So this are not labels but numbers
012345
$123456
%101010101
$ABCDEF
1

What do I need to change to my pblabel definition?
And what do I need to change to mu pbDecimalNumber, pbHexNumber and my 
pbBinNumber so that when they start on a newline they are seen as such?

Rgds,
Jeri

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to