mirror of
https://github.com/zyedidia/micro.git
synced 2024-10-27 20:49:47 +03:00
39 lines
925 B
YAML
39 lines
925 B
YAML
filetype: elm
|
|
|
|
detect:
|
|
filename: "\\.elm$"
|
|
|
|
rules:
|
|
- statement: "\\b(as|alias|case|else|exposing|if|import|in|let|module|of|port|then|type|)\\b"
|
|
- statement: "(\\=|\\:|\\->)"
|
|
- type: "\\b([A-Z][A-Za-z\\d]*)\\b"
|
|
- identifier: "^([a-z][A-Za-z\\d]*)\\b"
|
|
- constant.string:
|
|
start: "\"\"\""
|
|
end: "\"\"\""
|
|
skip: "\\\\."
|
|
rules:
|
|
- constant.specialChar: "\\\\."
|
|
- constant.string:
|
|
start: "\""
|
|
end: "\""
|
|
skip: "\\\\."
|
|
rules:
|
|
- constant.specialChar: "\\\\."
|
|
- constant.string:
|
|
start: "'"
|
|
end: "'"
|
|
skip: "\\\\."
|
|
rules:
|
|
- constant.specialChar: "\\\\."
|
|
- comment:
|
|
start: "--"
|
|
end: "$"
|
|
rules:
|
|
- todo: "(TODO|XXX|FIXME):?"
|
|
- comment:
|
|
start: "\\{-"
|
|
end: "-\\}"
|
|
rules:
|
|
- todo: "(TODO|XXX|FIXME):?"
|