Closed pluralia closed 3 years ago
Subexpressions can lose their $cstNode field, and it's impossible to determine their range in a document.
$cstNode
Langium version: 0.1.0 Package name: langium
arithmetics
1 + 3
module
module keyword is highlighted instead of the subexpression
The subexpression is highlighted
Right now, left recursive expressions are missing their $cstNode properties, since they skip the whole LangiumParser.construct call. I'll work on that.
LangiumParser.construct
Subexpressions can lose their
$cstNode
field, and it's impossible to determine their range in a document.Langium version: 0.1.0 Package name: langium
Steps To Reproduce
arithmetics
extension1 + 3
in 3rd line has to be highlighted [because of a validation error], however, amodule
keyword is highlightedThe current behavior
module
keyword is highlighted instead of the subexpressionThe expected behavior
The subexpression is highlighted