[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 e42e662: Change Ruby file names and extensions re
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-25 e42e662: Change Ruby file names and extensions recognized by 'etags' |
Date: |
Tue, 02 Feb 2016 17:52:14 +0000 |
branch: emacs-25
commit e42e662f26523ba0d10c41ab6deead85077c9f79
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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)
---
lib-src/etags.c | 6 ++++--
test/etags/ruby-src/{test1.ruby => test1.ru} | 0
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 769a220..acf20dd 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -729,7 +729,9 @@ static const char Python_help [] =
generate a tag.";
static const char *Ruby_suffixes [] =
- { "rb", "ruby", NULL };
+ { "rb", "ru", "rbw", NULL };
+static const char *Ruby_filenames [] =
+ { "Rakefile", "Thorfile", NULL };
static const char Ruby_help [] =
"In Ruby code, 'def' or 'class' or 'module' at the beginning of\n\
a line generate a tag. Constants also generate a tag.";
@@ -813,7 +815,7 @@ static language lang_names [] =
{ "proc", no_lang_help, plain_C_entries, plain_C_suffixes },
{ "prolog", Prolog_help, Prolog_functions, Prolog_suffixes },
{ "python", Python_help, Python_functions, Python_suffixes },
- { "ruby", Ruby_help, Ruby_functions, Ruby_suffixes },
+ { "ruby", Ruby_help,Ruby_functions,Ruby_suffixes,Ruby_filenames },
{ "scheme", Scheme_help, Scheme_functions, Scheme_suffixes },
{ "tex", TeX_help, TeX_commands, TeX_suffixes },
{ "texinfo", Texinfo_help, Texinfo_nodes, Texinfo_suffixes },
diff --git a/test/etags/ruby-src/test1.ruby b/test/etags/ruby-src/test1.ru
similarity index 100%
rename from test/etags/ruby-src/test1.ruby
rename to test/etags/ruby-src/test1.ru
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 e42e662: Change Ruby file names and extensions recognized by 'etags',
Eli Zaretskii <=