Skip to content

SpEL Syntax Highlighting #1234

Closed
Closed

Description

@BoykoAlex

SpEL syntax highlighting via LSP semantic tokens inside:

  • Java annotations
  • Inside JPQL queries

Activity

  1. self-assigned this
    on Apr 18, 2024
  2. added this to the 4.22.1.RELEASE milestone on Apr 18, 2024
  3. added
    for: vscode
    and removed on Apr 18, 2024
  4. changed the title [-]SPEL Syntax Highlighting[/-] [+]SpEL Syntax Highlighting[/+] on Apr 18, 2024
  5. BoykoAlex commented on Jun 6, 2024

    @BoykoAlex
    ContributorAuthor

    I took the Antlr SPEL parser that was kept from the past and it doesn't seem to parse all valid SPEL. For example someBean.someProperty != null ? someBean.someProperty : 'default' also i didn't see matches keyword in the parser hence I suspect that this won't parse either: '100' matches '\\d+'.
    Definitely won't be completed for 4.23.0

  6. BoykoAlex commented on Jun 12, 2024

    @BoykoAlex
    ContributorAuthor

    Fixed with 15f20b6 exceptfor embedded inside SQL queries which is be addressed via #1270

  7. MahatmaFatalError commented on Aug 5, 2024

    @MahatmaFatalError

    @BoykoAlex could you please share a sample screenshot how the syntax highlighting looks like for SpEL? I am not sure if it works for me

  8. BoykoAlex commented on Aug 5, 2024

    @BoykoAlex
    ContributorAuthor

    Screenshot 2024-08-05 at 10 49 40

    Something like the above.

    What are you getting @MahatmaFatalError ? Send a screenshot and a snippet please. (Note: no syntax highlighting in Eclipse yet)

  9. MahatmaFatalError commented on Aug 6, 2024

    @MahatmaFatalError

    ah ok, only VSCode, the release notes https://github.com/spring-projects/sts4/releases/tag/4.24.0.RELEASE lead to the impression that it is generally available, i.e. including eclipse

  10. martinlippert commented on Aug 12, 2024

    @martinlippert
    Member

    @MahatmaFatalError Totally agree, the release notes should be more precise about this. I added a section in the release notes. The support for Eclipse is tracked here #1235. Thanks again for pointing us at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: vscodetheme: spel-supporttype: enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions