gorillascript icon indicating copy to clipboard operation
gorillascript copied to clipboard

Add ctags langdef to document or wiki page

Open unc0 opened this issue 12 years ago • 3 comments

--langdef=gorilla
--langmap=gorilla:.gs
--regex-gorilla=/^let[ \t]+([A-Za-z0-9_$\-]+)[ \t]*=[ \t]*require/\1/e,module,modules/
--regex-gorilla=/^let[ \t]+([A-Za-z0-9_$\-]+)[ \t]*=[ \t]*\{/\1/o,object,objects/
--regex-gorilla=/^const[ \t]+([A-Z][A-Z0-9_\-]+)[ \t]*=/\1/C,constant,constants/
--regex-gorilla=/^let[ \t]+([A-Za-z0-9_$\-]+)[ \t]*=[ \t]*#(\(.*\))?/\1/f,function,functions/
--regex-gorilla=/^let[ \t]+([A-Za-z0-9_$\-]+)[ \t]*\(.*\)/\1/f,function,functions/
--regex-gorilla=/^[^\/*]*class[ \t]+([A-Za-z0-9_$\-]+)/\1/c,class,classes/
--regex-gorilla=/^[^\/*]*def[ \t]+([A-Za-z0-9_$\-]+)/\1/m,method,methods/
--regex-gorilla=/^let[ \t]+([A-Za-z0-9_$\-]+)[ \t]*=[ \t]*\[/\1/a,array,arrays/
--regex-gorilla=/^let[ \t]+([^= ]+)[ \t]*=[ \t]*r'[^']*/\1/r,regex,regexes/
--regex-gorilla=/^let[ \t]+([^= ]+)[ \t]*=[ \t]*r"[^"]*/\1/r,regex,regexes/
--regex-gorilla=/^let[ \t]+([^= ]+)[ \t]*=[ \t]*[^"r]'[^']*/\1/s,string,strings/
--regex-gorilla=/^let[ \t]+([^= ]+)[ \t]*=[ \t]*[^'r]"[^"]*/\1/s,string,strings/

Demo screenshot: 2013-05-30-120011_255x459_scrot

unc0 avatar May 30 '13 04:05 unc0

Is this something for vim?

ckknight avatar May 30 '13 06:05 ckknight

No, this tags file been used in some editors, vim/emacs for example.

http://ctags.sourceforge.net/tools.html

unc0 avatar May 30 '13 07:05 unc0

It seems that textmate also support ctags 'tags' file, http://metasandwich.com/2008/10/18/textmate-meet-ctags/.

unc0 avatar May 30 '13 07:05 unc0