From: Dmitry Gutov <dgutov@yandex.ru>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 22241@debbugs.gnu.org
Subject: bug#22241: 25.0.50; etags Ruby parser problems
Date: Mon, 1 Feb 2016 11:40:46 +0300 [thread overview]
Message-ID: <56AF1A0E.7080802@yandex.ru> (raw)
In-Reply-To: <83powh1uwh.fsf@gnu.org>
On 01/31/2016 09:11 PM, Eli Zaretskii wrote:
> Ah, so it _is_ important.
It kind of is. But I can open a separate bug for it, if you want.
> But then I'd need a complete specification
> of what is needed. (And I already smell a tip of an iceberg.) Again,
> the references are scarce and incomplete, but I already understand
> that it could be either of the following
>
> attr_WHATEVER :foo
> SOMETHING ; attr_WHATEVER :foo ; ...
> attr_WHATEVER :foo, :bar; ...
>
> Is that true? Are there any other forms, or can the symbol be
> followed only by a comma, a semi-colon, or whitespece?
The newline might also be preceded by a comment, I suppose.
But really, if recognizing attr_WHATEVER when it's just one of the
instructions on a line presents a noticeable difficulty, you can
disregard that case: nobody really does that in practice. Or we can
disregard it at least until somebody complains.
So you would handle
attr_WHATEVER :foo, :bar # comment
and probably
attr_WHATEVER :bar;
(the semicolon is redundant, but hey, it shouldn't be too hard to support)
and the most difficult realistic case I can imagine looks like this:
attr_WHATEVER :foo, :bar, # comment
:qux, :tee
> And what ends
> a line like that -- a newline, or can it be continued on the next
> line?
If there's a comma at the end of the current line, the argument list
continues on the next one.
> Couldn't find it. And it isn't important enough to argue, just tell
> which file-name extensions to consider Ruby and I will do it.
Let's go with my original suggestions, then:
.rb .ru .rbw Rakefile Thorfile
Thanks!
next prev parent reply other threads:[~2016-02-01 8:40 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-26 3:59 bug#22241: 25.0.50; etags Ruby parser problems Dmitry Gutov
2015-12-26 4:13 ` Dmitry Gutov
2015-12-26 4:34 ` Dmitry Gutov
2016-01-23 16:38 ` Eli Zaretskii
2016-01-23 18:23 ` Dmitry Gutov
2016-01-23 18:59 ` Eli Zaretskii
2016-01-23 19:29 ` Dmitry Gutov
2016-01-23 20:48 ` Eli Zaretskii
2016-01-23 21:43 ` Dmitry Gutov
2016-01-24 15:44 ` Eli Zaretskii
2016-01-30 12:21 ` Eli Zaretskii
2016-01-30 22:06 ` Dmitry Gutov
2016-01-31 3:37 ` Eli Zaretskii
2016-01-31 5:43 ` Dmitry Gutov
2016-01-31 18:11 ` Eli Zaretskii
2016-02-01 8:40 ` Dmitry Gutov [this message]
2016-02-02 18:16 ` Eli Zaretskii
2016-02-02 19:59 ` Dmitry Gutov
2016-02-03 16:26 ` Eli Zaretskii
2016-02-03 23:21 ` Dmitry Gutov
2016-02-04 3:43 ` Eli Zaretskii
2016-02-04 8:24 ` Dmitry Gutov
2016-02-04 17:24 ` Eli Zaretskii
2016-02-04 20:06 ` Dmitry Gutov
2016-01-31 18:01 ` Eli Zaretskii
2016-02-01 8:24 ` Dmitry Gutov
2016-02-02 18:13 ` Eli Zaretskii
2016-01-30 10:52 ` Eli Zaretskii
2016-01-30 16:43 ` 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=56AF1A0E.7080802@yandex.ru \
--to=dgutov@yandex.ru \
--cc=22241@debbugs.gnu.org \
--cc=eliz@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.