Commit 88456bc1 by Arnaud Charlet

Minor reformatting.

From-SVN: r244149
parent eae66578
...@@ -2412,7 +2412,7 @@ package body Checks is ...@@ -2412,7 +2412,7 @@ package body Checks is
begin begin
Prag := Prag :=
Make_Pragma (Loc, Make_Pragma (Loc,
Chars => Prag_Nam, Chars => Prag_Nam,
Pragma_Argument_Associations => New_List ( Pragma_Argument_Associations => New_List (
Make_Pragma_Argument_Association (Loc, Make_Pragma_Argument_Association (Loc,
Chars => Name_Check, Chars => Name_Check,
......
...@@ -140,7 +140,6 @@ package body Scans is ...@@ -140,7 +140,6 @@ package body Scans is
-- Ada 2012 reserved words -- Ada 2012 reserved words
Set_Reserved (Name_Some, Tok_Some); Set_Reserved (Name_Some, Tok_Some);
end Initialize_Ada_Keywords; end Initialize_Ada_Keywords;
------------------ ------------------
...@@ -151,6 +150,7 @@ package body Scans is ...@@ -151,6 +150,7 @@ package body Scans is
Tok : String := Token'Img; Tok : String := Token'Img;
pragma Assert (Tok (1 .. 4) = "TOK_"); pragma Assert (Tok (1 .. 4) = "TOK_");
Name : String renames Tok (5 .. Tok'Last); Name : String renames Tok (5 .. Tok'Last);
begin begin
-- Convert to lower case. We don't want to add a dependence on a -- Convert to lower case. We don't want to add a dependence on a
-- general-purpose To_Lower routine, so we convert "by hand" here. -- general-purpose To_Lower routine, so we convert "by hand" here.
...@@ -160,7 +160,7 @@ package body Scans is ...@@ -160,7 +160,7 @@ package body Scans is
pragma Assert (Name (J) in 'A' .. 'Z'); pragma Assert (Name (J) in 'A' .. 'Z');
Name (J) := Name (J) :=
Character'Val (Character'Pos (Name (J)) + Character'Val (Character'Pos (Name (J)) +
(Character'Pos ('a') - Character'Pos ('A'))); (Character'Pos ('a') - Character'Pos ('A')));
end loop; end loop;
return Name_Find (Name); return Name_Find (Name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment