mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
syntax: Optimize the patterns and remove the comment region
This commit is contained in:
parent
87ee41ab27
commit
4cafa601b5
@ -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,.]"
|
||||
|
Loading…
Reference in New Issue
Block a user