syntax: Optimize the patterns and remove the comment region

This commit is contained in:
Jöran Karl 2024-03-17 19:43:35 +01:00
parent 87ee41ab27
commit 4cafa601b5

View File

@ -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,.]"