~rabbits/public-inbox

(uxntal.ctags) Add (Universal) ctags definition v1 PROPOSED

Remko Tronçon: 1
 (uxntal.ctags) Add (Universal) ctags definition

 1 files changed, 21 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~rabbits/public-inbox/patches/46447/mbox | git am -3
Learn more about email & git

[PATCH] (uxntal.ctags) Add (Universal) ctags definition Export this patch

---
 etc/uxntal.ctags | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 etc/uxntal.ctags

diff --git a/etc/uxntal.ctags b/etc/uxntal.ctags
new file mode 100644
index 0000000..0757553
--- /dev/null
+++ b/etc/uxntal.ctags
@@ -0,0 +1,21 @@
# Universal Ctags definition for Uxntal

--langdef=uxntal{_autoFQTag}
--langmap=uxntal:+.tal

--kinddef-uxntal=l,label,labels

--_scopesep-uxntal=*/*:/

--_tabledef-uxntal=main
--_tabledef-uxntal=comment

--_mtable-regex-uxntal=main/\([[:space:]]//{tenter=comment}
--_mtable-regex-uxntal=main/@([^[:space:]]+)/\1/l/{scope=set}
--_mtable-regex-uxntal=main/&([^[:space:]]+)/\1/l/{scope=ref}
--_mtable-regex-uxntal=main/[^[:space:]]+//
--_mtable-regex-uxntal=main/[[:space:]]+//

--_mtable-regex-uxntal=comment/\)[[:space:]]//{tleave}
--_mtable-regex-uxntal=comment/[^[:space:]]+//
--_mtable-regex-uxntal=comment/[[:space:]]+//
-- 
2.39.0