1. Setup Keywords
Create a new document type as described here: viewtopic.php?f=5&t=176
Download the keywords.zip attachment and create a new document type using details:
General Panel:
Code: Select all
Extension: asm
Document Type: Z80 Document Type
Code: Select all
Insensitive: Turn on the 'Keywords are case insensitve' option.
Line Comment: ;
Literal: \
Delimiters: #~!@$%^&*()[]{}<>=+/?|;:-,.'
Numbers: ([a-fA-F0-9]+[Hh]*)|(0[xX]+[0-9A-Fa-f]+[Hh]+)|([0-9]+[.eEi+\-0-9L]*)
Reserved: Use the 'Import' button to import directives.txt file.
1: User Defined: Use the 'Import' button to import instructions.txt file.
2: User Defined: Use the 'Import' button to import registers.txt file.
3: User Defined: Use the 'Import' button to import flags.txt file.
Pattern: In the 'Keywords' group select the '5: User Defined' option and use this value in the 'Pattern' field.
![\w]+\:
Change to the Color panel and set the colors for the 'Reserved', '1: User Defined', '2: User Defined' and '3: User Defined' categories.
3. Setting Up CTags
Setup the ctags using the details found here: viewtopic.php?f=5&t=3367
In this case the following ctags details were used:
Code: Select all
--langdef=z80
--langmap=z80:.asm
--languages=-Asm
--regex-z80=/^([a-zA-Z]+[a-zA-Z0-9_]*):/\1/f,function/
--regex-z80=/^macro[ ]+([a-zA-Z]+[a-zA-Z0-9_]*)/\1/m,macro/
--regex-z80=/^([a-zA-Z]+[a-zA-Z0-9_]*)[ ]+equ[ ]+/\1/v,variable/
You test these changes you need to create a works space containing Z80 files.
If these configuration changes are correct:
a. The Class panel should show the tags for the all the files in the workspace.
b. The Tags navigation and search feature should work
More details on creating a workspace can be found here: viewtopic.php?f=5&t=33