aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorFrancesco Potortì1997-05-13 09:38:23 +0000
committerFrancesco Potortì1997-05-13 09:38:23 +0000
commitb7e22e944240f07f7f6950453c3f1f0bfe14e748 (patch)
treee7378ac24244e0adbb4a8b7101bb4bc99f68b938 /lib-src
parent3607b64db964677fa300e0d990750da1c0254075 (diff)
downloademacs-b7e22e944240f07f7f6950453c3f1f0bfe14e748.tar.gz
emacs-b7e22e944240f07f7f6950453c3f1f0bfe14e748.zip
Added support for the Java language.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 1c53e26ec05..5ef118c6870 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -31,7 +31,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
31 * Francesco Potorti` (F.Potorti@cnuce.cnr.it) is the current maintainer. 31 * Francesco Potorti` (F.Potorti@cnuce.cnr.it) is the current maintainer.
32 */ 32 */
33 33
34char pot_etags_version[] = "@(#) pot revision number is 11.90"; 34char pot_etags_version[] = "@(#) pot revision number is 11.91";
35 35
36#define TRUE 1 36#define TRUE 1
37#define FALSE 0 37#define FALSE 0
@@ -438,7 +438,7 @@ struct lang_entry lang_names [] =
438 { "c*", Cstar_entries, Cstar_suffixes, NULL }, 438 { "c*", Cstar_entries, Cstar_suffixes, NULL },
439 { "erlang", Erlang_functions, Erlang_suffixes, NULL }, 439 { "erlang", Erlang_functions, Erlang_suffixes, NULL },
440 { "fortran", Fortran_functions, Fortran_suffixes, NULL }, 440 { "fortran", Fortran_functions, Fortran_suffixes, NULL },
441/*{ "java", Cjava_entries, Cjava_suffixes, NULL },*/ 441 { "java", Cjava_entries, Cjava_suffixes, NULL },
442 { "lisp", Lisp_functions, Lisp_suffixes, NULL }, 442 { "lisp", Lisp_functions, Lisp_suffixes, NULL },
443 { "pascal", Pascal_functions, Pascal_suffixes, NULL }, 443 { "pascal", Pascal_functions, Pascal_suffixes, NULL },
444 { "perl", Perl_functions, Perl_suffixes, Perl_interpreters }, 444 { "perl", Perl_functions, Perl_suffixes, Perl_interpreters },
@@ -1539,7 +1539,7 @@ enum sym_type
1539{ 1539{
1540 st_none, st_C_objprot, st_C_objimpl, st_C_objend, st_C_gnumacro, 1540 st_none, st_C_objprot, st_C_objimpl, st_C_objend, st_C_gnumacro,
1541 st_C_struct, st_C_enum, st_C_define, st_C_typedef, st_C_typespec, 1541 st_C_struct, st_C_enum, st_C_define, st_C_typedef, st_C_typespec,
1542 st_C_jstruct 1542 st_C_javastruct
1543}; 1543};
1544 1544
1545/* Feed stuff between (but not including) %[ and %] lines to: 1545/* Feed stuff between (but not including) %[ and %] lines to:
@@ -1551,8 +1551,8 @@ struct C_stab_entry { char *name; int c_ext; enum sym_type type; }
1551@protocol, 0, st_C_objprot 1551@protocol, 0, st_C_objprot
1552@implementation,0, st_C_objimpl 1552@implementation,0, st_C_objimpl
1553@end, 0, st_C_objend 1553@end, 0, st_C_objend
1554extends, C_JAVA, st_C_jstruct 1554extends, C_JAVA, st_C_javastruct
1555implements, C_JAVA, st_C_jstruct 1555implements, C_JAVA, st_C_javastruct
1556class, C_PLPL, st_C_struct 1556class, C_PLPL, st_C_struct
1557namespace, C_PLPL, st_C_struct 1557namespace, C_PLPL, st_C_struct
1558domain, C_STAR, st_C_struct 1558domain, C_STAR, st_C_struct
@@ -1650,7 +1650,7 @@ in_word_set (str, len)
1650 {"",}, {"",}, 1650 {"",}, {"",},
1651 {"bool", C_PLPL, st_C_typespec}, 1651 {"bool", C_PLPL, st_C_typespec},
1652 {"extern", 0, st_C_typespec}, 1652 {"extern", 0, st_C_typespec},
1653 {"extends", C_JAVA, st_C_jstruct}, 1653 {"extends", C_JAVA, st_C_javastruct},
1654 {"",}, {"",}, 1654 {"",}, {"",},
1655 {"@implementation", 0, st_C_objimpl}, 1655 {"@implementation", 0, st_C_objimpl},
1656 {"",}, {"",}, {"",}, 1656 {"",}, {"",}, {"",},
@@ -1684,7 +1684,7 @@ in_word_set (str, len)
1684 {"typename", C_PLPL, st_C_typespec}, 1684 {"typename", C_PLPL, st_C_typespec},
1685 {"volatile", 0, st_C_typespec}, 1685 {"volatile", 0, st_C_typespec},
1686 {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 1686 {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
1687 {"implements", C_JAVA, st_C_jstruct}, 1687 {"implements", C_JAVA, st_C_javastruct},
1688 {"",}, {"",}, 1688 {"",}, {"",},
1689 {"union", 0, st_C_struct}, 1689 {"union", 0, st_C_struct},
1690 {"",}, 1690 {"",},
@@ -1797,6 +1797,7 @@ enum
1797 1797
1798/* 1798/*
1799 * State machine for Objective C protocols and implementations. 1799 * State machine for Objective C protocols and implementations.
1800 * Tom R.Hageman <tom@basil.icce.rug.nl>
1800 */ 1801 */
1801enum 1802enum
1802{ 1803{
@@ -1950,7 +1951,7 @@ consider_token (str, len, c, c_ext, cblev, parlev, is_func)
1950 */ 1951 */
1951 switch (toktype) 1952 switch (toktype)
1952 { 1953 {
1953 case st_C_jstruct: 1954 case st_C_javastruct:
1954 if (structdef == stagseen) 1955 if (structdef == stagseen)
1955 structdef = scolonseen; 1956 structdef = scolonseen;
1956 return FALSE; 1957 return FALSE;
@@ -3303,6 +3304,7 @@ Lisp_functions (inf)
3303/* 3304/*
3304 * Postscript tag functions 3305 * Postscript tag functions
3305 * Just look for lines where the first character is '/' 3306 * Just look for lines where the first character is '/'
3307 * Richard Mlynarik <mly@adoc.xerox.com>
3306 */ 3308 */
3307void 3309void
3308Postscript_functions (inf) 3310Postscript_functions (inf)
@@ -4073,8 +4075,7 @@ analyse_regex (regex_arg)
4073 return; 4075 return;
4074 } 4076 }
4075 if (regex_arg[0] == '@' 4077 if (regex_arg[0] == '@'
4076 && stat (regex_arg + 1, &stat_buf) == 0 4078 && stat (regex_arg + 1, &stat_buf) == 0)
4077 && S_ISREG (stat_buf.st_mode))
4078 { 4079 {
4079 FILE *regexfp; 4080 FILE *regexfp;
4080 struct linebuffer regexbuf; 4081 struct linebuffer regexbuf;