Skip to content

Pattern Alternatives in Pattern matching seems to break the highlighting #38

Closed
@abelbryo

Description

@abelbryo

When using alternative pattern matching using the | "pipe" operator, it seems to break the highlighting. See example --

 val service2 = httpService {
    case req @ POST -> Root / "login" => ServeResponse.login(req)
    case req @ POST -> Root / "logout" => ServeResponse.logout(req)
    case req @ (POST | GET) -> Root / "myProjects" => ServeResponse.myProjects(req)
    case req @ POST -> Root / "refresh-cookie" => ServeResponse.refreshCookie(req)
  }
vim version: NVIM v0.5.0
node version: v16.3.0
coc.nvim version: 0.0.80-03c9add7cd
term: xterm-256color
platform: darwin
coc-metals: 1.0.8
- nvim-treesitter:
  * ecd9efd Update toml highlight queries (2 days ago)

Screenshot 2021-10-06 at 13 45 17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions