Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks break highlighting #86

Open
galdor opened this issue Jun 3, 2021 · 2 comments
Open

Blocks break highlighting #86

galdor opened this issue Jun 3, 2021 · 2 comments

Comments

@galdor
Copy link

galdor commented Jun 3, 2021

Issue

a: "test1"
b: |
  test2
c: "test3"

yaml-mode-issue

As you can see, highlighting stops working right after the block.

Am I the only one seeing this ?

Environment

  • Emacs 27.2
  • yaml-mode 0.0.15
@glroman
Copy link

glroman commented Feb 15, 2022

I'm also seeing buggy highlighting with multi-line string blocks: any quoted strings in the block are highlighted instead of all the text in the block. It manifests when the file is first loaded. As soon as I change the trigger symbol (simply deleting and re-typing it), the problem in the block goes away. Emacs 25.1 and 27.1, YM v0.15.

  properties:
    multiLiner:
      type: boolean
      description: |
        A normal sentence.
        A sentence with a "quoted" word.
        A sentence with 'single quotes' in it.
        Ending without any quotes.
      example: "true"

@quoideneuf
Copy link

I'm also seeing buggy highlighting with multi-line string blocks: any quoted strings in the block are highlighted instead of all the text in the block. It manifests when the file is first loaded. As soon as I change the trigger symbol (simply deleting and re-typing it), the problem in the block goes away. Emacs 25.1 and 27.1, YM v0.15.

  properties:
    multiLiner:
      type: boolean
      description: |
        A normal sentence.
        A sentence with a "quoted" word.
        A sentence with 'single quotes' in it.
        Ending without any quotes.
      example: "true"

Same experience - thanks for the tip about retyping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants