Discussion:
False matching of ctags lines
Neil Hodgson
2013-09-20 10:41:30 UTC
Permalink
Been seeing a few false matches with the errorlist lexer used in SciTE's output pane. The ctags recognition is just a bit too eager with a tab followed by digits anywhere on a line causing a match.

The best definition of the ctags format I've found is

http://ctags.sourceforge.net/FORMAT

which says the format is

{tagname}<Tab>{tagfile}<Tab>{tagaddress}

where {tagname} can not include spaces.

Only recognising after a second tab and not matching if there are any spaces before the first tab reduced false matches greatly.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Neil Hodgson
2013-09-22 00:09:06 UTC
Permalink
Post by Neil Hodgson
Only recognising after a second tab and not matching if there are any spaces before the first tab reduced false matches greatly.
Committed as
http://sourceforge.net/p/scintilla/code/ci/95bd290f4ba84eea29ff98618e37f486c9f8bbda/

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...