Skip to content

Missing spaces in .key files are ignored #3538

@mattulbrich

Description

@mattulbrich

Description

In a .key file, there needs not be a space after a \backslash_keyword. But this should be reported.

Reproducible

always

Steps to reproduce

Load the following example

\rules {
  \lemmanospaces {
  \schemaVar \termint t;
  \find(t+0)
  \replacewith(t)
  };
}

\problem { 5+0=5 }

It will parse – unexpectedly. You can then also apply the rule "nospaces".

It should not parse

Additional information

The problem is that there is no lexer rule for essentially \[a-z]* in the key lexer which would match againt "\termint" to rule it out.
Perhaps adding that lexer rule would solve the issue.

(I assign this to Alexander @wadoon since he implemented the new KeYParser.)


Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions