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

Add diagnostic error MultipleParameters #37

Open
AziatkaVictor opened this issue Dec 1, 2023 · 0 comments
Open

Add diagnostic error MultipleParameters #37

AziatkaVictor opened this issue Dec 1, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@AziatkaVictor
Copy link
Owner

Is your feature request related to a problem? Please describe.
In same section sometimes can be multiple same parameters. It's can create errors and crashes during runtime.

Describe the solution you'd like
Add diagnostic for multiple same parameters inside one section. It can be created while validating section:

this.infos = this.findElements(/(\-|\+)(?!\d)\w*\b(?<=\w)/g, LtxSemanticType.variable, LtxSemanticModification.declaration, LtxSemanticDescription.info);
this.validateInfoCondition();
this.actions = this.findElements(/(\=|\!)\w*\b(?<=\w)/g, LtxSemanticType.function, LtxSemanticModification.definition, null);
this.validateActionCondition();
this.validateActions();

@AziatkaVictor AziatkaVictor added the enhancement New feature or request label Dec 1, 2023
@AziatkaVictor AziatkaVictor added this to the 0.7 milestone Dec 1, 2023
@AziatkaVictor AziatkaVictor self-assigned this Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant