#214 Needless processing of string in python

open-fixed
None
5
2008-03-29
2008-03-03
someonesdad
No

The following python file contents:

------------cut here----------------
include_file = '''
class (b)
'''
------------cut here----------------

gives the warning message

ctags.exe: Warning: ignoring null tag in a.py

This warning message is printed to stdout; it really should go to stderr.

There really should be no warning message, as this is content inside of a python multi-line string. The keyword 'class' is important, as is the lack of a token before the parentheses and after the space character. The parser should really skip to the closing ''' characters.

Platform: WinXP
Exuberant Ctags 5.7, Copyright (C) 1996-2007 Darren Hiebert
Compiled: Sep 4 2007, 23:24:26
Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
Optional compiled features: +win32, +regex, +internal-sort

Discussion

  • Elliott Hughes

    Elliott Hughes - 2008-03-17
    • assigned_to: nobody --> elias
     
  • Elliott Hughes

    Elliott Hughes - 2008-03-17

    Logged In: YES
    user_id=1127237
    Originator: NO

    assigning to python maintainer.

     
  • Elias Pschernig

    Elias Pschernig - 2008-03-29

    Logged In: YES
    user_id=32894
    Originator: NO

    Thanks, should be fixed as of revision 646. Now ''' as well as """ strings are skipped, previously this only worked for """.

     
  • Elias Pschernig

    Elias Pschernig - 2008-03-29
    • status: open --> open-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks