mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-10 06:40:24 +09:00
syntax: Optimize the patterns and remove the comment region
This commit is contained in:
@@ -5,12 +5,6 @@ detect:
|
||||
|
||||
rules:
|
||||
# Mails
|
||||
- special: "[[:alnum:].%_+-]+@[[:alnum:].-]+\\.[[:alpha:]]{2,}"
|
||||
- special: "[[:alnum:].%_+-]+@[[:alnum:].-]+"
|
||||
# URLs
|
||||
- identifier: "(https?|ftp|ssh)://\\S+\\.\\S+[^])>\\s,.]"
|
||||
|
||||
- comment:
|
||||
start: "(^|\\s)#"
|
||||
end: "$"
|
||||
rules:
|
||||
- todo: "(TODO|XXX|FIXME):?"
|
||||
- identifier: "(https?|ftp|ssh)://\\S*[^])>\\s,.]"
|
||||
|
||||
Reference in New Issue
Block a user