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:
|
rules:
|
||||||
# Mails
|
# Mails
|
||||||
- special: "[[:alnum:].%_+-]+@[[:alnum:].-]+\\.[[:alpha:]]{2,}"
|
- special: "[[:alnum:].%_+-]+@[[:alnum:].-]+"
|
||||||
# URLs
|
# URLs
|
||||||
- identifier: "(https?|ftp|ssh)://\\S+\\.\\S+[^])>\\s,.]"
|
- identifier: "(https?|ftp|ssh)://\\S*[^])>\\s,.]"
|
||||||
|
|
||||||
- comment:
|
|
||||||
start: "(^|\\s)#"
|
|
||||||
end: "$"
|
|
||||||
rules:
|
|
||||||
- todo: "(TODO|XXX|FIXME):?"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user