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

Consecutive keywords are not rightfully colorised #156

Open
jthulhu opened this issue May 17, 2022 · 0 comments
Open

Consecutive keywords are not rightfully colorised #156

jthulhu opened this issue May 17, 2022 · 0 comments

Comments

@jthulhu
Copy link

jthulhu commented May 17, 2022

Issue description

Keywords that are only space-separated are not colorised as they should: only the first one has the keyword font, the next one has regular colorisation. Inserting a newline in between solves it.

Examples

Note how github will colorise every keyword, but in the comments I point out the ones that will not get colored by Emacs.

{
    a = let in {}; # `let` is colorized, not `in`
    b = let something = 3; in rec {}; # `rec` is not colorised
    c = let in with rec {}; 3; # `let` and `with` are colorised, not `in` and `rec`.
}

Also, in this case, it all works as in github:

{
    a = let 
        in {};
    b = let something = 3; in
        rec {};
    c = let
        in 
        with
        rec {}; 3;
}

Version

I tested this in the latest NixOS unstable version there is (at the time writing), Emacs 29.0.50 and nix-mode is version 20220505.1706 (the latest published on melpa for the time being). However, this seems like a lasting bug because I have experienced this strange behavior for some time now.

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

1 participant