mirror of
https://github.com/zyedidia/micro.git
synced 2024-10-27 04:31:18 +03:00
Add Elm syntax file
This commit is contained in:
parent
2c219ba647
commit
7e34eabb0e
38
runtime/syntax/elm.yaml
Normal file
38
runtime/syntax/elm.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
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):?"
|
Loading…
Reference in New Issue
Block a user