You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code below, the third line uses an odd syntax, which although valid to the compiler and Ada Language Server, results in a partial loss of syntax coloring and code navigation options. When the line is commented out, the syntax coloring returns along with code navigation, except for the line directly under it.
procedure Main is
...
use type USB.Device.Init_Result; -- lose syntax highlighting and other features
Status : USB.Device.Init_Result; -- this line is partially highlighted when the line above is commented out
begin
...
end;
end main;
Interestingly, removing the line produces an error message when compiled:
> operator for type "Init_Result" defined at usb-device.ads:41 is not directly visible
package USB.Device is
type Init_Result is (Ok, Not_Enough_EPs, Not_Enough_EP_Buffer);
end USB.Device;
The text was updated successfully, but these errors were encountered:
In the code below, the third line uses an odd syntax, which although valid to the compiler and Ada Language Server, results in a partial loss of syntax coloring and code navigation options. When the line is commented out, the syntax coloring returns along with code navigation, except for the line directly under it.
procedure Main is
...
use type USB.Device.Init_Result; -- lose syntax highlighting and other features
Status : USB.Device.Init_Result; -- this line is partially highlighted when the line above is commented out
begin
...
end;
end main;
package USB.Device is
type Init_Result is (Ok, Not_Enough_EPs, Not_Enough_EP_Buffer);
end USB.Device;
The text was updated successfully, but these errors were encountered: