bug#30075: etags misdetects ruby sharp-bang sequence

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

bug#30075: etags misdetects ruby sharp-bang sequence

Dmitry Gutov
Here's a file that is parsed wrongly when it has no .rb extension. The
sharp-bang sequence at the top looks correct to me.

Attaching both the input file and the generated tags file.

The problem is present both in emacs-26 and master.

BAD_TAGS (134 bytes) Download Attachment
no_ext_ruby_test (554 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

bug#30075: etags misdetects ruby sharp-bang sequence

Eli Zaretskii
> From: Dmitry Gutov <[hidden email]>
> Date: Thu, 11 Jan 2018 02:36:55 +0300
>
> Here's a file that is parsed wrongly when it has no .rb extension. The
> sharp-bang sequence at the top looks correct to me.

No one taught etags the name(s) of the Ruby interpreter(s), and nobody
told it about the "#!/usr/bin/env FOO" way of specifying an interpreter.

Should be fixed now on the emacs-26 branch.

Thanks.



Reply | Threaded
Open this post in threaded view
|

bug#30075: etags misdetects ruby sharp-bang sequence

Dmitry Gutov
On 1/11/18 7:39 PM, Eli Zaretskii wrote:

> No one taught etags the name(s) of the Ruby interpreter(s), and nobody
> told it about the "#!/usr/bin/env FOO" way of specifying an interpreter.
>
> Should be fixed now on the emacs-26 branch.

Looks fixed, thank you!



Reply | Threaded
Open this post in threaded view
|

bug#30075: etags misdetects ruby sharp-bang sequence

Dmitry Gutov
On 1/12/18 1:07 AM, Dmitry Gutov wrote:
> On 1/11/18 7:39 PM, Eli Zaretskii wrote:
>
>> No one taught etags the name(s) of the Ruby interpreter(s), and nobody
>> told it about the "#!/usr/bin/env FOO" way of specifying an interpreter.
>>
>> Should be fixed now on the emacs-26 branch.
>
> Looks fixed, thank you!

Closing.