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

Syntax highlighting sometimes broken when started #3230

Closed
Philipp-M opened this issue Jul 28, 2022 · 1 comment · Fixed by #3275
Closed

Syntax highlighting sometimes broken when started #3230

Philipp-M opened this issue Jul 28, 2022 · 1 comment · Fixed by #3275
Labels
C-bug Category: This is a bug

Comments

@Philipp-M
Copy link
Contributor

Summary

Sometimes the highlight queries seem to be broken (tested with typescript):

Broken (note the @type highlighting for const or type, although, I've checked none of the @type queries should match const or type):

syntax_highlighting_issue

Correct:

syntax_highlighting_issue_correct

Seems to happen roughly 50% of the time.

This may be related or even a duplicate to/of #2484

Tested with this script:

const constant = "const";

namespace some.namespace {
  function something() {}
}

declare namespace GreetingLib.Options {
  // Refer to via GreetingLib.Options.Log
  interface Log {
    verbose?: boolean;
  }
  interface Alert {
    modal: boolean;
    title?: string;
    color?: string;
  }
}
type MyGreeter = () => number;

type GreetingLike = string | (() => string) | MyGreeter;
declare function greet(g: GreetingLike): void;

Reproduction Steps

Start helix with the script above

Helix log

No response

Platform

Linux

Terminal Emulator

alacritty

Helix Version

22.05-324-g681c0a91

@Philipp-M Philipp-M added the C-bug Category: This is a bug label Jul 28, 2022
@the-mikedavis
Copy link
Member

Yeah, this is most likely another reproduction case of #2484

See also #2986

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants