This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] Improve flag positioning for missing quote when comma present


This patch improves the positioning for the case of a missing string
quote when a comma is the likely intended end of the string, as shown
by this example:

     1. procedure mquote is
     2. begin
     3.    Error_Msg_NE ("this is a string with missing quote, N, E);
                                                             |
        >>> missing string quote

     4. end;

Previously the flag was placed on the right paren. this improves
quick fix processing in GPS for this case as well.

Tested on x86_64-pc-linux-gnu, committed on trunk

2011-08-05  Robert Dewar  <dewar@adacore.com>

	* scng.adb (Error_Unterminated_String): Improve flag position when
	comma present.

Attachment: difs
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]