mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 06:30:28 +09:00
syntax: Provide default.yaml as fallback definition
This commit is contained in:
16
runtime/syntax/default.yaml
Normal file
16
runtime/syntax/default.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
filetype: unknown
|
||||
|
||||
detect:
|
||||
filename: ""
|
||||
|
||||
rules:
|
||||
# Mails
|
||||
- special: "[[:alnum:].%_+-]+@[[:alnum:].-]+\\.[[:alpha:]]{2,}"
|
||||
# URLs
|
||||
- identifier: "(https?|ftp|ssh)://\\S+\\.\\S+[^])>\\s,.]"
|
||||
|
||||
- comment:
|
||||
start: "(^|\\s)#"
|
||||
end: "$"
|
||||
rules:
|
||||
- todo: "(TODO|XXX|FIXME):?"
|
||||
Reference in New Issue
Block a user