hare

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

commit cc0de6cd70190ac5e17866439b582f56ee314d00
parent 9171150b2dfd483bede012670ac7d28189a6c5d2
Author: Sebastian <sebastian@sebsite.pw>
Date:   Mon, 28 Mar 2022 17:27:17 -0400

Always keep type specifier on same line as declaration

>From the style guide: "Spaces MUST be placed between the type token, the
type name, the = token, and the type specifier. All of these tokens MUST
be on the same line."

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mfmt/fmt.ha | 4++--
Mhare/ast/expr.ha | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fmt/fmt.ha b/fmt/fmt.ha @@ -19,8 +19,8 @@ use types; export type field = (...formattable | *modifiers); // Tagged union of all types which are formattable. -export type formattable = - (...types::numeric | uintptr | str | rune | bool | nullable *void | void); +export type formattable = (...types::numeric | uintptr | str | rune | bool | + nullable *void | void); // Formats text for printing and writes it to [[os::stdout]]. export fn printf(fmt: str, args: field...) (io::error | size) = diff --git a/hare/ast/expr.ha b/hare/ast/expr.ha @@ -34,8 +34,8 @@ export type access_tuple = struct { }; // An access expression. -export type access_expr = - (access_identifier | access_index | access_field | access_tuple); +export type access_expr = (access_identifier | access_index | access_field + | access_tuple); // The form of an allocation expression. //