ctags wrapper: find ruby classes (eg class Gem::Dependency)

svn path=/nixpkgs/trunk/; revision=16058
This commit is contained in:
Marc Weber 2009-06-26 16:52:52 +00:00
parent 9dbc0bd614
commit 738858983a

View File

@ -16,7 +16,7 @@
exec ${pkgs.ctags}/bin/ctags ${lib.concatStringsSep " " (map lib.escapeShellArg args)} "$@" exec ${pkgs.ctags}/bin/ctags ${lib.concatStringsSep " " (map lib.escapeShellArg args)} "$@"
'') { '') {
args = let x = pkgs.ctagsWrapped; in lib.concatLists [ args = let x = pkgs.ctagsWrapped; in lib.concatLists [
x.defaultArgs x.phpLang x.jsLang x.nixLang x.asLang x.defaultArgs x.phpLang x.jsLang x.nixLang x.asLang x.rubyLang
]; ];
name = "${ctags.name}-wrapped"; name = "${ctags.name}-wrapped";
}; };
@ -66,4 +66,9 @@
"--langmap=NIX:.nix" "--langmap=NIX:.nix"
"--regex-NIX=/\([^ \\t*]*\)[ \\t]*=/\\1/f/" "--regex-NIX=/\([^ \\t*]*\)[ \\t]*=/\\1/f/"
]; ];
rubyLang = [
"--langmap=RUBY:.rb"
"--regex-RUBY=/class ([^ ]*)/\\1/c/"
];
} }