/[emacs]/emacs/lib-src/etags.c
ViewVC logotype

Diff of /emacs/lib-src/etags.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3.5 by pot, Mon Sep 17 15:47:23 2001 UTC revision 3.5.4.1 by pot, Tue Mar 12 11:17:02 2002 UTC
# Line 4028  Perl_functions (inf) Line 4028  Perl_functions (inf)
4028    
4029  /*  /*
4030   * Python support   * Python support
4031   * Look for /^def[ \t\n]+[^ \t\n(:]+/ or /^class[ \t\n]+[^ \t\n(:]+/   * Look for /^[\t]*def[ \t\n]+[^ \t\n(:]+/ or /^class[ \t\n]+[^ \t\n(:]+/
4032   * Eric S. Raymond <esr@thyrsus.com> (1997)   * Eric S. Raymond <esr@thyrsus.com> (1997)
4033     * More ideas by seb bacon <seb@jamkit.com> (2002)
4034   */   */
4035  static void  static void
4036  Python_functions (inf)  Python_functions (inf)
# Line 4039  Python_functions (inf) Line 4040  Python_functions (inf)
4040    
4041    LOOP_ON_INPUT_LINES (inf, lb, cp)    LOOP_ON_INPUT_LINES (inf, lb, cp)
4042      {      {
4043          cp = skip_spaces (cp);
4044        if (*cp++ == 'd'        if (*cp++ == 'd'
4045            && *cp++ == 'e'            && *cp++ == 'e'
4046            && *cp++ == 'f' && iswhite (*cp++))            && *cp++ == 'f' && iswhite (*cp++))
# Line 4050  Python_functions (inf) Line 4052  Python_functions (inf)
4052                    lb.buffer, cp - lb.buffer + 1, lineno, linecharno);                    lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
4053          }          }
4054    
4055        cp = lb.buffer;        cp = skip_spaces (lb.buffer);
4056        if (*cp++ == 'c'        if (*cp++ == 'c'
4057            && *cp++ == 'l'            && *cp++ == 'l'
4058            && *cp++ == 'a'            && *cp++ == 'a'

Legend:
Removed from v.3.5  
changed lines
  Added in v.3.5.4.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26