]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/nix.yaml
edc42eec2999af2893aedd9b51d49b0477e25e31
[micro.git] / runtime / syntax / nix.yaml
1 filetype: nix
2
3 detect:
4     filename: "\\.nix$"
5
6 rules:
7     - special: "\\b(Ellipsis|null|self|super|true|false|abort)\\b"
8     - statement: "\\b(let|in|with|import|rec|inherit)\\b"
9     - symbol.operator: "([~^.:;,+*|=!\\%@]|<|>|/|-|&)"
10     - symbol.brackets: "([(){}]|\\[|\\])"
11
12     - constant.number: "\\b[0-9](_?[0-9])*(\\.([0-9](_?[0-9])*)?)?(e[0-9](_?[0-9])*)?\\b"
13
14     - constant.string:
15         start: "\""
16         end: "\""
17         rules: []
18
19     - constant.string:
20         start: "''"
21         end: "''"
22         rules: []
23
24     - comment:
25         start: "#"
26         end: "$"
27         rules: []