forked from mirrors/nixpkgs
ctags wrapper: find ruby classes (eg class Gem::Dependency)
svn path=/nixpkgs/trunk/; revision=16058
This commit is contained in:
parent
9dbc0bd614
commit
738858983a
|
@ -16,7 +16,7 @@
|
|||
exec ${pkgs.ctags}/bin/ctags ${lib.concatStringsSep " " (map lib.escapeShellArg args)} "$@"
|
||||
'') {
|
||||
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";
|
||||
};
|
||||
|
@ -66,4 +66,9 @@
|
|||
"--langmap=NIX:.nix"
|
||||
"--regex-NIX=/\([^ \\t*]*\)[ \\t]*=/\\1/f/"
|
||||
];
|
||||
|
||||
rubyLang = [
|
||||
"--langmap=RUBY:.rb"
|
||||
"--regex-RUBY=/class ([^ ]*)/\\1/c/"
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue