From 54b773e18336b2b01b52686799192808b5aa2751 Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Thu, 29 Aug 2024 11:43:07 +0100 Subject: [PATCH] feat(build): add ctags recipes for indexing assembly files The "ctags" code referencing tool creates an index for all identifiers used in a project. The builtin recipes handle our C files just fine, but due to a lack of a standard for marking functions and variables in assembly files, will fail including the assembly code. Provide the regular expressions that match the function tags used in our assembly files, alongside the syntax we use for macros and "equ" defines. This will include assembly code in a ctags cross reference session. Signed-off-by: Andre Przywara Change-Id: I47d531bfc6fafe9aeef9f4b66b7fdc4490b2e161 --- .ctags | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .ctags diff --git a/.ctags b/.ctags new file mode 100644 index 000000000..5e608e48c --- /dev/null +++ b/.ctags @@ -0,0 +1,4 @@ +--regex-Asm=/^func[ \t]+([a-zA-Z_0-9]+)$/\1/l,function/ +--regex-Asm=/^.*\.macro[ \t]+([a-zA-Z_0-9]+)$/\1/m,macro/ +--regex-Asm=/^vector_entry[ \t]+([a-zA-Z_0-9]+)$/\1/l,function/ +--regex-Asm=/^.equ[ \t]+([a-zA-Z_0-9]+),/\1/l,name/