We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tree-sitter --version
No response
Whenever the following line occured inside a class, methods under the line are getting inconsistent highlight. and shows error in playground.
selectedColor: (typeof this.colors)[number] = this.colors[0];
(subscript_expression) ; [90:26 - 45] object: (member_expression) ; [90:26 - 36] object: (this) ; [90:26 - 29] property: (property_identifier) ; [90:31 - 36] (ERROR) ; [90:37 - 37] index: (identifier) ; [90:39 - 44] (ERROR) ; [90:49 - 63]
Syntax highlight should work well when this line occurs.
@Component({ selector: "app-add-credit-card", standalone: true, }) export class AddCreditCardComponent implements OnInit, OnDestroy { colors = [ { color: "green", code: "#E5F8F2" }, { color: "blue", code: "#E9F3FF" }, { color: "violet", code: "#EDEBFF" }, { color: "red", code: "#FAEFF5" }, ] as const; selectedColor: (typeof this.colors)[number] = this.colors[0]; form = new FormGroup({ nickName: new FormControl("", Validators.required), firstName: new FormControl("", Validators.required), lastName: new FormControl("", Validators.required), }); constructor() { this.renderer = this.rendererFactory.createRenderer(null, null); } selectColor(color: typeof this.selectedColor) { this.selectedColor = color; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
Whenever the following line occured inside a class, methods under the line are getting inconsistent highlight. and shows error in playground.
selectedColor: (typeof this.colors)[number] = this.colors[0];
Steps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
Syntax highlight should work well when this line occurs.
Repro
The text was updated successfully, but these errors were encountered: