Skip to content

Commit 4cafa60

Browse files
committed
syntax: Optimize the patterns and remove the comment region
1 parent 87ee41a commit 4cafa60

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

runtime/syntax/default.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ detect:
55

66
rules:
77
# Mails
8-
- special: "[[:alnum:].%_+-]+@[[:alnum:].-]+\\.[[:alpha:]]{2,}"
8+
- special: "[[:alnum:].%_+-]+@[[:alnum:].-]+"
99
# URLs
10-
- identifier: "(https?|ftp|ssh)://\\S+\\.\\S+[^])>\\s,.]"
11-
12-
- comment:
13-
start: "(^|\\s)#"
14-
end: "$"
15-
rules:
16-
- todo: "(TODO|XXX|FIXME):?"
10+
- identifier: "(https?|ftp|ssh)://\\S*[^])>\\s,.]"

0 commit comments

Comments
 (0)