public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "chwang at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug translator/10913] bad/misleading translator error message
Date: Mon, 22 Mar 2010 19:15:00 -0000	[thread overview]
Message-ID: <20100322191445.24292.qmail@sourceware.org> (raw)
In-Reply-To: <20091106193626.10913.dsmith@redhat.com>


------- Additional Comments From chwang at redhat dot com  2010-03-22 19:14 -------
Created an attachment (id=4671)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4671&action=view)
Patch for 10913

*Very* short patch for 10913.

Would error messages like this be okay?

Embedded:
parse error: could not find matching '%}' to close embedded function block
	at: embedded-code at /home/chwang/Desktop/turnip.stp:3:1
     source: %{
	     ^

Quotes:
parse error: Could not find matching closing quote
	at: string 'enterprise' at <input>:1:17
     source: global starship="enterprise
			     ^
parse error: Could not find matching closing quote
	at: string 'turnip)}' at <input>:3:21
     source: probe begin {printf("turnip)}
				 ^

Took a look at doing something similar for '{' mismatches as well, but haven't
managed to do so without accidentally wiping out other errors within the block.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10913

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

  parent reply	other threads:[~2010-03-22 19:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-06 19:36 [Bug translator/10913] New: " dsmith at redhat dot com
2009-11-06 20:12 ` [Bug translator/10913] " jistone at redhat dot com
2010-03-22 19:15 ` chwang at redhat dot com [this message]
2010-03-22 21:02 ` dsmith at redhat dot com
2010-03-23 15:58 ` chwang at redhat dot com
2010-03-30 13:11 ` fche at redhat dot com

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=20100322191445.24292.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sources.redhat.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).