aboutsummaryrefslogtreecommitdiff
path: root/.ctags.d/gdscript.ctags
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-06-16 00:55:31 +0800
committergxlin <[email protected]>2021-06-16 22:39:15 +0800
commitf456d790b007c3841549ec35a996483135cceec3 (patch)
treee9352e4806ebe27326dba032ef6929157344f87f /.ctags.d/gdscript.ctags
parenta3c1649a195cf87db6581b5a8c703fa867462210 (diff)
downloaddotfiles-f456d790b007c3841549ec35a996483135cceec3.tar.gz
dotfiles-f456d790b007c3841549ec35a996483135cceec3.tar.bz2
dotfiles-f456d790b007c3841549ec35a996483135cceec3.zip
Add vim-godot plug
Diffstat (limited to '.ctags.d/gdscript.ctags')
-rw-r--r--.ctags.d/gdscript.ctags5
1 files changed, 5 insertions, 0 deletions
diff --git a/.ctags.d/gdscript.ctags b/.ctags.d/gdscript.ctags
new file mode 100644
index 0000000..89789c1
--- /dev/null
+++ b/.ctags.d/gdscript.ctags
@@ -0,0 +1,5 @@
+--langdef=GDScript
+--langmap=GDScript:.gd
+--regex-GDScript=/^func[ \t]+([a-zA-Z0-9_]+)/\1/f,function,function definitions/
+--regex-GDScript=/^(onready[ \t]+)?var[ \t]+([a-zA-Z0-9_]+)/\2/v,variable,variable definitions/
+--regex-GDScript=/^(export[ \t]*(.*)?[ \t]+)?var[ \t]+([a-zA-Z0-9_]+)/\3/v,variable,variable definitions/