Skip to content

Give the lexer more tolerance while reading a CODE token #40

@dnbln

Description

@dnbln

I got tired of seeing something like this while editing action code:

simplescreenrecorder-2021-01-18_18.52.50.mp4

Might have been overkill to implement but it also fails if I put a (, [ or { inside a string literal and don't close it:

simplescreenrecorder-2021-01-18_19.11.23.mp4

So here are a few thoughts to improve it at least:

  • Give it some idea of structural braces(see brace matcher)
  • To some extent parse the rust code(worth looking at the pin and recoverWhile attributes in intellij-rust's rust grammar!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions