Adding ctags support for BrightScript

I was editing some BrightScript (Roku) code and I wanted ctags support for Vim. Ctags doesn't understand BrightScript out of the box, so I made a custom definition. Here is the quick function definition that I used in my ~/.ctags file.

--regex-BrightScript=/^Function[ \t]*([a-zA-Z0-9_]+)/\1/f,function/
--regex-BrightScript=/^Sub[ \t]*([a-zA-Z0-9_]+)/\1/s,sub/
--regex-BrightScript=/^[ \t]*(\w+) ?=/\1/v,variable/
Leave A Reply
All content licensed under the Creative Commons License