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

issue when multiplication sign * is not surrounded by whitespace #188

Open
StephanWald opened this issue Nov 2, 2024 · 1 comment · May be fixed by #203
Open

issue when multiplication sign * is not surrounded by whitespace #188

StephanWald opened this issue Nov 2, 2024 · 1 comment · May be fixed by #203

Comments

@StephanWald
Copy link
Member

This is flagged as error, but whitespace is optional around mathematical operators:

imageW = int(p_width + (2*p_hPadding))
imageH = int(p_height + (2*p_vPadding))
@Lotes
Copy link
Collaborator

Lotes commented Nov 26, 2024

@dhuebner The problem here is the symbolic label name:

terminal SYMBOLIC_LABEL_NAME: /\*[a-zA-Z]+?/;

I think *p_hPadding is interpreted as a token instead of a multiplication sign and operand.
I am not sure what we can do here. Maybe split the terminal and validate whether it is a symbolic label name or not. WDYT?

@Lotes Lotes linked a pull request Nov 26, 2024 that will close this issue
dhuebner pushed a commit that referenced this issue Dec 5, 2024
Fix the bug

Add more escaped ids

Added validation for symbolic label reference text #188

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

Successfully merging a pull request may close this issue.

2 participants