hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 6b4df056c8f8ef475b00f4cbfb33ab17e329b639
parent 76c849125028969dbbcb70f6bb17d828241e8a99
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri,  7 May 2021 10:44:29 -0400

haredoc: ! is a prefix now

Diffstat:
Mcmd/haredoc/html.ha | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/cmd/haredoc/html.ha b/cmd/haredoc/html.ha @@ -497,6 +497,14 @@ fn type_html( z += fmt::fprint(out, "<span class='keyword'>const</span> ")?; }; + if (_type.flags & ast::type_flags::ERROR != 0) { + if (_type._type is ast::builtin_type) { + z += fmt::fprint(out, "<span class='type'>!</span>")?; + } else { + z += fmt::fprint(out, "!")?; + }; + }; + match (_type._type) { t: ast::builtin_type => { z += fmt::fprintf(out, "<span class='type'>{}</span>", @@ -573,14 +581,6 @@ fn type_html( * => z += html::escape(out, strio::string(buf))?, }; - if (_type.flags & ast::type_flags::ERROR != 0) { - if (_type._type is ast::builtin_type) { - z += fmt::fprint(out, "<span class='type'>!</span>")?; - } else { - z += fmt::fprint(out, "!")?; - }; - }; - z; };