Hi,

Is it possible that what is found with a syn match to reuse the
content later on as the same?

In other words:

In my syntax file I have
+-------------------------------------------------------------------------+
syn match       pbConstant              "^[[:alpha:]][[:alnum:]]*:\="

hi def link     pbConstant      TODO
+-------------------------------------------------------------------------+

In my code this highlights the words RS232, DISPLAY and KEYPAD of the
following lines:

RS232               EQU       $3D
DISPLAY             EQU       $3E
KEYPAD              EQU       $3F

Is it possible to reuse the knowledge that RS232, DISPLAY and KEYPAD
are pbConstant so that they can be highlighted in the lines below?

                    LOAD      GP0, RS232
                    LOAD      GP1, DISPLAY
                    LOAD      GP2, KEYPAD


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