all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: 30075@debbugs.gnu.org
Subject: bug#30075: etags misdetects ruby sharp-bang sequence
Date: Thu, 11 Jan 2018 02:36:55 +0300	[thread overview]
Message-ID: <808f90cf-3fa8-a72b-35ea-c0e549d96f43@yandex.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]

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.

[-- Attachment #2: BAD_TAGS --]
[-- Type: application/octet-stream, Size: 98 bytes --]

[-- Attachment #3: no_ext_ruby_test --]
[-- Type: text/plain, Size: 403 bytes --]

#!/usr/bin/env ruby

module SimpleCov
  module ResultMerger
    class << self
      def resultset_files
        Dir.glob()
      end

      def foo
        resultset_files.map do |path|
          begin
            JSON.parse(File.read(path))
          rescue
            {}
          end
        end
      end

      def resultset
        resultset_hashes.reduce({}, :merge)
      end
    end
  end
end

             reply	other threads:[~2018-01-10 23:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-10 23:36 Dmitry Gutov [this message]
2018-01-11 16:39 ` bug#30075: etags misdetects ruby sharp-bang sequence Eli Zaretskii
2018-01-11 22:07   ` Dmitry Gutov
2018-01-11 22:50     ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=808f90cf-3fa8-a72b-35ea-c0e549d96f43@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=30075@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.