From 69ff7ff9e17eca4219aa1fee9e53ffe015454f4a Mon Sep 17 00:00:00 2001 From: Tim Marston Date: Sat, 30 Dec 2023 09:09:20 +0000 Subject: [PATCH] cleanup: remove .ctags.d/v.ctags file (ctags 6.1 now supports V natively with a proper parser, thanks to Tim Marston) (#20299) --- .ctags.d/v.ctags | 44 -------------------------------------------- .gitignore | 5 ++++- 2 files changed, 4 insertions(+), 45 deletions(-) delete mode 100644 .ctags.d/v.ctags diff --git a/.ctags.d/v.ctags b/.ctags.d/v.ctags deleted file mode 100644 index 0584a1e775a25d..00000000000000 --- a/.ctags.d/v.ctags +++ /dev/null @@ -1,44 +0,0 @@ -## TODO: support more precise struct/const/enum fields - ---langdef=V ---map-V=+.v ---map-V=+.vv ---map-V=+.vsh ---kinddef-V=m,imodule,imported modules ---kinddef-V=M,module,modules ---kinddef-V=C,cfunction,cfunctions ---kinddef-V=f,function,functions ---kinddef-V=h,method,functions ---kinddef-V=c,const,constants ---kinddef-V=v,variable,variables ---kinddef-V=s,struct,structs ---kinddef-V=e,enum,enums ---kinddef-V=i,interface,interfaces ---kinddef-V=S,sfield,struct field ---kinddef-V=E,efield,enum field ---_roledef-V.m=imported,imported module ---_roledef-V.M=declared,module declaration ---regex-V=/^module[[:blank:]]+([0-9a-zA-Z]+)[[:blank:]]*$/\1/M/{_role=declared}{scope=push} ---regex-V=/^import[[:blank:]]+(([0-9a-zA-Z]+)?|.*\.([a-zA-Z_][0-9a-zA-Z]+))[[:blank:]]*$/\2\3/m/{_role=imported}{scope=ref} ---regex-V=/^[[:blank:]]*fn[[:blank:]]+C\.([a-zA-Z_][0-9a-zA-Z_]*)\(/C.\1/C/ ---regex-V=/^(pub)?[[:blank:]]*fn[[:blank:]]+([a-zA-Z_][0-9a-zA-Z_]*)\(/\2/f/ ---regex-V=/^(pub)?[[:blank:]]*fn[[:blank:]]+\(.*\)[[:blank:]]*([a-zA-Z_][0-9a-zA-Z_]*)\(/\2/h/ ---regex-V=/^(pub)?[[:blank:]]*struct[[:blank:]]+([a-zA-Z_][0-9a-zA-Z_]*)[[:blank:]]*\{/\2/s/{scope=push} ---regex-V=/^(pub)?[[:blank:]]*enum[[:blank:]]+([a-zA-Z_][0-9a-zA-Z_]*)[[:blank:]]*\{/\2/e/{scope=push} ---regex-V=/^(pub)?[[:blank:]]*interface[[:blank:]]+([a-zA-Z_][0-9a-zA-Z_]*)[[:blank:]]*\{/\2/i/{scope=push} ---regex-V=/^[[:blank:]]*([a-zA-Z_][0-9a-zA-Z_]+)[[:blank:]]*(,)?[[:blank:]]*(\/\/.*)?$/\1/E/{scope=ref} ---regex-V=/^[[:blank:]]*([a-zA-Z_][0-9a-zA-Z_]+)[[:blank:]]+\??\&?(\[[0-9]*\])?([a-zA-Z_][0-9a-zA-Z_.]+)[[:blank:]]*(\/\/.*)?$/\1/S/{scope=ref} ---regex-V=/^[[:blank:]]*\}[[:blank:]]*$//{scope=pop}{placeholder} - -## Variables: ---regex-V=/^[[:blank:]]*(mut[[:blank:]]+)?([a-zA-Z_][0-9a-zA-Z_]+)[[:blank:]]*:=/\2/v/ - -## Consts: ---regex-V=/^(pub)?[[:blank:]]*const[[:blank:]]+\([[:blank:]]*/const/c/{scope=push} -##NB: the next variable regexp should work only inside const ( ), but currently works for ordinary assignments too: ---regex-V=/^[[:blank:]]*([a-zA-Z_][0-9a-zA-Z_]+)[[:blank:]]*=/\1/v/{scope=ref} ---regex-V=/^[[:blank:]]*\)[[:blank:]]*$//{scope=pop}{placeholder} - ---extras=+q ---extras=+r ---fields=+r diff --git a/.gitignore b/.gitignore index ca30ee1b9c3e86..d56b2f8c2a8927 100644 --- a/.gitignore +++ b/.gitignore @@ -135,4 +135,7 @@ tags Gtk-4.0.gir *.gir -vlib/builtin/js/*.js \ No newline at end of file +vlib/builtin/js/*.js + +# ignore the old regexp based v.ctags file (people using universal ctags < 6.1.0, can still benefit from them) +.ctags.d/v.ctags