lsp4jakarta
lsp4jakarta copied to clipboard
JEE11_Data: Whitespace is required between tokens: keyword/identifier/numeric literal sequence is ambiguous.
Description:
The characters Space, Horizontal Tab, Line Feed, Form Feed, and Carriage Return are considered whitespace characters and make no contribution to the token stream.
As usual, token recognition is "greedy". Therefore, whitespace must be placed between two tokens when:
- a keyword directly follows an identifier or named parameter,
- an identifier directly follows a keyword or named parameter, or
- a numeric literal directly follows an identifier, keyword, or parameter.
Examples:
Invalid example
SELECT p FROM Product p WHERE p.price>:minPrice;
Valid example
SELECT p FROM Product p WHERE p.price > :minPrice;
Specification:
https://jakarta.ee/specifications/data/1.0/jakarta-data-1.0#:~:text=The%20characters%20Space,keyword%2C%20or%20parameter.
Type of language feature proposed:
Select all that apply
- [x] diagnostic
- [ ] quick-fix
- [ ] snippet
- [ ] other, please specify: