]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/elm.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / elm.yaml
1 filetype: elm
2
3 detect:
4     filename: "\\.elm$"
5
6 rules:
7     - statement: "\\b(as|alias|case|else|exposing|if|import|in|let|module|of|port|then|type|)\\b"
8     - statement: "(\\=|\\:|\\->)"
9     - type: "\\b([A-Z][A-Za-z\\d]*)\\b"
10     - identifier: "^([a-z][A-Za-z\\d]*)\\b"
11     - constant.string:
12         start: "\"\"\""
13         end: "\"\"\""
14         skip: "\\\\."
15         rules:
16             - constant.specialChar: "\\\\."
17     - constant.string: 
18         start: "\""
19         end: "\""
20         skip: "\\\\."
21         rules:
22             - constant.specialChar: "\\\\."
23     - constant.string:
24         start: "'"
25         end: "'"
26         skip: "\\\\."
27         rules:
28             - constant.specialChar: "\\\\."
29     - comment:
30         start: "--"
31         end: "$"
32         rules:
33             - todo: "(TODO|XXX|FIXME):?"
34     - comment:
35         start: "\\{-"
36         end: "-\\}"
37         rules:
38             - todo: "(TODO|XXX|FIXME):?"