mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
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 New Issue
Block a user