syntax: Optimize the patterns and remove the comment region

This commit is contained in:
Jöran Karl
2024-04-18 18:20:11 +02:00
parent 87ee41ab27
commit 4cafa601b5
+2 -8
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,.]"