Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALS should highlight known aspects to provide feedback to the user #1170

Open
manthonyaiello opened this issue Nov 17, 2023 · 0 comments
Open
Assignees

Comments

@manthonyaiello
Copy link

Ada has many aspects that are introduced using the keyword with. For example, especially with SPARK, we may place many aspects on suprograms:

   procedure Parse_Formula
     (Formula : Unbounded_String;
      Algebra : out Algebra_Tree;
      Error   : in out Boolean;
      Message : in out Unbounded_String)
   with
     Pre  => Length (Formula) > 1,
     Post => (if not Error then Algebra /= null),
     Subprogram_Variant => (Decreases => Length (Formula));

Currently, these are not highlighted at all. It would be helpful to the user if known aspects received some subtle syntax highlight, so that they know they've used a known aspect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants