bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Miscellaneous code readability improvements.


From: Akim Demaille
Subject: Re: [PATCH] Miscellaneous code readability improvements.
Date: Wed, 19 Aug 2009 10:08:17 +0200


Le 19 août 09 à 06:58, Joel E. Denny a écrit :

Hi Akim.

Hi Joel,

  \\(.|\n)      {
- complain_at (*loc, _("unrecognized escape sequence: %s"), quote (yytext));
-    STRING_GROW;
+    char const *p = yytext + 1;
+    if (*p == ' ')
+      p = "` '";
+    else
+      p = quotearg_style_mem (escape_quoting_style, p, 1);
+ complain_at (*loc, _("invalid character after \\-escape: %s"), p);

Is space the only "invisible" character not made visible by quote arg? What about tabulation for instance? Other than that, fine with me.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]