mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
Bruno Haible released libtextstyle, a library for colored output based on CSS. Let's use it to generate colored diagnostics, provided libtextstyle is available. See https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00176.html https://lists.gnu.org/archive/html/bison-patches/2019-02/msg00073.html https://lists.gnu.org/archive/html/bison-patches/2019-02/msg00084.html https://lists.gnu.org/archive/html/bison-patches/2019-03/msg00007.html * bootstrap.conf (gnulib_modules): Use libtextstyle when possible. * data/diagnostics.css: New. * src/complain.c (begin_use_class, end_use_class, flush) (severity_style, complain_init_color): New. Use them. * src/getargs.c (getargs_colors): New. (getargs): Use it. Skip --color and --style. * src/location.h, src/location.c (location_print): Use a style. * tests/bison.in: Force --color=yes when stderr is a tty. * tests/local.at: Disable colors during the test suite. * tests/input.at: Adjust expectations to the extra options passed on the command line.
58 lines
2.3 KiB
Makefile
58 lines
2.3 KiB
Makefile
## Copyright (C) 2002, 2005-2015, 2018-2019 Free Software Foundation,
|
|
## Inc.
|
|
|
|
## This program is free software: you can redistribute it and/or modify
|
|
## it under the terms of the GNU General Public License as published by
|
|
## the Free Software Foundation, either version 3 of the License, or
|
|
## (at your option) any later version.
|
|
##
|
|
## This program is distributed in the hope that it will be useful,
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
## GNU General Public License for more details.
|
|
##
|
|
## You should have received a copy of the GNU General Public License
|
|
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
dist_pkgdata_DATA = \
|
|
data/README.md \
|
|
data/diagnostics.css
|
|
|
|
skeletonsdir = $(pkgdatadir)/skeletons
|
|
dist_skeletons_DATA = \
|
|
data/skeletons/bison.m4 \
|
|
data/skeletons/c++-skel.m4 \
|
|
data/skeletons/c++.m4 \
|
|
data/skeletons/c-like.m4 \
|
|
data/skeletons/c-skel.m4 \
|
|
data/skeletons/c.m4 \
|
|
data/skeletons/glr.c \
|
|
data/skeletons/glr.cc \
|
|
data/skeletons/java-skel.m4 \
|
|
data/skeletons/java.m4 \
|
|
data/skeletons/lalr1.cc \
|
|
data/skeletons/lalr1.java \
|
|
data/skeletons/location.cc \
|
|
data/skeletons/stack.hh \
|
|
data/skeletons/variant.hh \
|
|
data/skeletons/yacc.c
|
|
|
|
# Experimental support for the D language.
|
|
dist_skeletons_DATA += \
|
|
data/skeletons/README-D.txt \
|
|
data/skeletons/d-skel.m4 \
|
|
data/skeletons/d.m4 \
|
|
data/skeletons/lalr1.d
|
|
|
|
m4sugardir = $(pkgdatadir)/m4sugar
|
|
dist_m4sugar_DATA = \
|
|
data/m4sugar/foreach.m4 \
|
|
data/m4sugar/m4sugar.m4
|
|
|
|
xsltdir = $(pkgdatadir)/xslt
|
|
dist_xslt_DATA = \
|
|
data/xslt/bison.xsl \
|
|
data/xslt/xml2dot.xsl \
|
|
data/xslt/xml2text.xsl \
|
|
data/xslt/xml2xhtml.xsl
|