diff options
Diffstat (limited to 'pkgs/development/tools/misc/ctags/wrapped.nix')
-rw-r--r-- | pkgs/development/tools/misc/ctags/wrapped.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/tools/misc/ctags/wrapped.nix b/pkgs/development/tools/misc/ctags/wrapped.nix index aac995c276d..ff959d94141 100644 --- a/pkgs/development/tools/misc/ctags/wrapped.nix +++ b/pkgs/development/tools/misc/ctags/wrapped.nix @@ -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/" + ]; } |