Unable to generate tags for Hashes in Perl

mgg
2012-09-12
2015-07-14
  • mgg
    mgg
    2012-09-12

    Hello,

    I am using this command for generating the tags for perl language, but i am not able to see the tags getting generated in the tags file.

    $> ctags -f mytags -language-force=perl -file-scope -regex-perl=/our\s%\(+\)/\1/b rilTestData.pm

    Could you please tell what is wrong with this command ?

    The hashes that i am trying to parse are written like this:

    our %myHash = (
        'info' => {v =>
           {
            'service'     => {v => 'SERVICE_DEACTIVATE',        f => '%s',     o => 0},
            'reason'            => {v => 'UNREACHABLE_V02',    f => '%s',     o => 1},
           },                                                                                  o => 0},
        'service_class_valid'       => {v => 1,                                 f => '%s',     o => 1},
        'number_valid'              => {v => 0,                                 f => '%s',     o => 2},
        'timer_value_valid'         => {v => 0,                                 f => '%s',     o => 3},
    );

    Thanks,
    Mayank

     
  • ctags -f mytags  --language-force=perl --file-scope --regex-perl='/our\s%\([^ ]\+\)/\1/b' rilTestData.pm