Skip to content

Instantly share code, notes, and snippets.

@RyuKojiro
Last active September 20, 2025 22:49
Show Gist options
  • Save RyuKojiro/f9c28529bdfbfbb4d3f12324c84d3bed to your computer and use it in GitHub Desktop.
Save RyuKojiro/f9c28529bdfbfbb4d3f12324c84d3bed to your computer and use it in GitHub Desktop.
Vim tags (ctags) generator for OpenSCAD
#!/usr/bin/env awk -f
# Expected usage:
# scadtags.awk *.scad | sort > tags
BEGIN {
FS = "[[:space:]\(\)]";
}
/module|function/ {
print $2 "\t" FILENAME "\t/^" $0 "$/";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment