Skip to content
Discussion options

You must be logged in to vote

Yay.

This is more a workaround than a solution, but replacing the problematic line with - identifier: "[A-Za-z0-9_-]+(\ =|;)" "fixes" the issue (edit: and now quite a bit more detailed "[A-Za-z0-9_-]+(\ *=|;|}.| &&|\\)|\ *\\(|\ *{|\ *\")", will keep updating if needs be). It is not great and is fragile, but, in this case…hey, it works. Probably not going to open a pull request with that kind of quality, though.

This is the full file for those interested:

filetype: nix

detect:
    filename: "\\.nix$"

rules:
    - special: "\\b(null|self|super|true|false|abort)\\b"

    - statement: "\\b(let|in|with|import|rec|inherit)\\b"
    - identifier: "[A-Za-z0-9_-]+(\ *=|;|}.| &&|\\)|\ *\\(|\ *{)"

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@Atemo-C
Comment options

@Atemo-C
Comment options

@Andriamanitra
Comment options

@Atemo-C
Comment options

@Atemo-C
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Atemo-C
Comment options

@Atemo-C
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Atemo-C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants