diff options
| author | Eli Zaretskii | 2016-02-02 19:50:08 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-02-02 19:50:08 +0200 |
| commit | e42e662f26523ba0d10c41ab6deead85077c9f79 (patch) | |
| tree | 03361b99a13cd7517b7fc17d0cb343e9de27f173 /lib-src | |
| parent | 58bfb6a4f597b98f01169f42410df3184c451408 (diff) | |
| download | emacs-e42e662f26523ba0d10c41ab6deead85077c9f79.tar.gz emacs-e42e662f26523ba0d10c41ab6deead85077c9f79.zip | |
Change Ruby file names and extensions recognized by 'etags'
* lib-src/etags.c <Ruby_filenames>: New variable, holds names
of Ruby files.
<Ruby_suffixes>: Treat .rb, .ru, and .rbw as Ruby extensions.
<lang_names>: Add Ruby_filenames to the Ruby entry.
* test/etags/ruby-src/test1.ru: Renamed from test1.ruby.
(Bug#22241)
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index 769a22027f7..acf20ddceb9 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -729,7 +729,9 @@ static const char Python_help [] = | |||
| 729 | generate a tag."; | 729 | generate a tag."; |
| 730 | 730 | ||
| 731 | static const char *Ruby_suffixes [] = | 731 | static const char *Ruby_suffixes [] = |
| 732 | { "rb", "ruby", NULL }; | 732 | { "rb", "ru", "rbw", NULL }; |
| 733 | static const char *Ruby_filenames [] = | ||
| 734 | { "Rakefile", "Thorfile", NULL }; | ||
| 733 | static const char Ruby_help [] = | 735 | static const char Ruby_help [] = |
| 734 | "In Ruby code, 'def' or 'class' or 'module' at the beginning of\n\ | 736 | "In Ruby code, 'def' or 'class' or 'module' at the beginning of\n\ |
| 735 | a line generate a tag. Constants also generate a tag."; | 737 | a line generate a tag. Constants also generate a tag."; |
| @@ -813,7 +815,7 @@ static language lang_names [] = | |||
| 813 | { "proc", no_lang_help, plain_C_entries, plain_C_suffixes }, | 815 | { "proc", no_lang_help, plain_C_entries, plain_C_suffixes }, |
| 814 | { "prolog", Prolog_help, Prolog_functions, Prolog_suffixes }, | 816 | { "prolog", Prolog_help, Prolog_functions, Prolog_suffixes }, |
| 815 | { "python", Python_help, Python_functions, Python_suffixes }, | 817 | { "python", Python_help, Python_functions, Python_suffixes }, |
| 816 | { "ruby", Ruby_help, Ruby_functions, Ruby_suffixes }, | 818 | { "ruby", Ruby_help,Ruby_functions,Ruby_suffixes,Ruby_filenames }, |
| 817 | { "scheme", Scheme_help, Scheme_functions, Scheme_suffixes }, | 819 | { "scheme", Scheme_help, Scheme_functions, Scheme_suffixes }, |
| 818 | { "tex", TeX_help, TeX_commands, TeX_suffixes }, | 820 | { "tex", TeX_help, TeX_commands, TeX_suffixes }, |
| 819 | { "texinfo", Texinfo_help, Texinfo_nodes, Texinfo_suffixes }, | 821 | { "texinfo", Texinfo_help, Texinfo_nodes, Texinfo_suffixes }, |