Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
I'm using ctags-5.5 and its custom regex support to try
and find labels in assembly files. The source (e.g.,
blah.s) looks something like this:
ADD r0, r0, 3
SUB r0, r0, 1
The command line is
However, ctags doesn't return anything on the above
file. If I modify the above regular expression by
omitting the $, it finds the two labels.
Is this a bug, or a mistake in my regex?
Logged In: YES
This is because your pattern does not allow for spaces. Your
second label contains a space between "label" and "2", thus
the pattern with a '$' in it does not qualify because the
pattern before the '$' does not match the entire line.
Either remove the space from the label name or change your
pattern to take it into account..