summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-04-22 16:26:52 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-04-23 18:29:10 +0200
commit95d688957fccb504c7dc588be1bd72fe029b7460 (patch)
tree1caf310a051adc5d63b1a6e6351c88e86c56de4e /NEWS
parenta9b350fb3adf8e4510d7ca7bf111161bdf713a33 (diff)
downloadbison-95d688957fccb504c7dc588be1bd72fe029b7460.tar.gz
diagnostics: document the change of format
* doc/bison.texiL Adjust output. Also, Graphviz has no uppercsae V. * NEWS: Explain the format change.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS26
1 files changed, 24 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 8a423fdf..89821d82 100644
--- a/NEWS
+++ b/NEWS
@@ -4,10 +4,32 @@ GNU Bison NEWS
** Changes
- In conformance with the recommendations of the GraphViz team, if %require
+*** Graphviz output
+
+ In conformance with the recommendations of the Graphviz team, if %require
"3.4" (or better) is specified, the option --graph generates a *.gv file
by default, instead of *.dot.
+*** Diagnostics overhaul
+
+ Column numbers were wrong with multibyte characters, which would also
+ result in skewed diagnostics with carets. Beside, because we were
+ indenting the quoted source with a single space, lines with tab characters
+ were incorrectly underlined.
+
+ To address these issues, and to be clearer, Bison now issues diagnostics
+ as GCC9 does. For instance it used to display (there's a tab before the
+ opening brace):
+
+ foo.y:3.37-38: error: $2 of ‘expr’ has no declared type
+ expr: expr '+' "number" { $$ = $1 + $2; }
+ ^~
+ It now reports
+
+ foo.y:3.37-38: error: $2 of ‘expr’ has no declared type
+ 3 | expr: expr '+' "number" { $$ = $1 + $2; }
+ | ^~
+
** New features
*** Colored diagnostics
@@ -22,7 +44,7 @@ GNU Bison NEWS
for instance
- https://alpha.gnu.org/gnu/gettext/libtextstyle-0.7.tar.gz
+ https://alpha.gnu.org/gnu/gettext/libtextstyle-0.8.tar.gz
The option --color supports the following arguments:
- always, yes: Enable colors.