commit a835760a2fe14d042dd9796685017fb1f9ccbc7d
parent 99a7fb9aa2b70b2fe3e8725bb4ca13b2f0f4c429
Author: citbl <citbl@citbl.org>
Date: Tue, 9 Jun 2026 23:26:42 +1000
reformat
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/makefile b/makefile
@@ -37,7 +37,7 @@ pedantic: clean
gnatmake -gnat2022 -gnatwa -o bin/nightshade src/nightshade.adb
fmt:
- gnatformat src/*.adb src/*.ads
+ gnatformat -w 90 src/*.adb src/*.ads
err: clean
make 2>&1 | grep -w --color=always 'error'
diff --git a/src/lexer.ads b/src/lexer.ads
@@ -44,8 +44,7 @@ package Lexer is
Col : Positive;
end record;
- function Init
- (File_Name : File_Name_Ref; File_Contents : Source_Ref) return Lexer;
+ function Init (File_Name : File_Name_Ref; File_Contents : Source_Ref) return Lexer;
procedure Add_Token (L : in out Lexer; T : Token);
procedure Print_Tokens (L : in out Lexer);
diff --git a/src/parser.adb b/src/parser.adb
@@ -5,7 +5,8 @@ with Ada.Strings.Fixed;
package body Parser is
function Init
- (File_Name : File_Name_Ref; Source : Source_Ref; Tokens : Token_Vector.Vector) return Parser
+ (File_Name : File_Name_Ref; Source : Source_Ref; Tokens : Token_Vector.Vector)
+ return Parser
is
P : constant Parser :=
(Source => Source,