Skip to content

Issue: highlighting breaks with long object lines #59

@rejdeboer

Description

@rejdeboer

What is the issue?

Whenever you have lines that contain a lot of logic, like if-statements and variables, the syntax highlighting below that logic line breaks. This problem is triggered when writing logic lines that are longer than 128 characters

Steps to reproduce

Working example

example: 
 teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest:
    test: test
    other_test: test

nvim screenshot:
image

Broken example (add one more e)

example:
  teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest:
    test: test
    other_test: test

nvim screenshot:
image

What behavior is expected?

The syntax highlighting doesn't break when using lines that are longer than 128 characters

What have I already tried?

  • Update tree-sitter
  • Disable synmaxcol limit: :set synmaxcol 0
  • Run :syntax sync fromstart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions