Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax: Provide default.yaml as fallback definition #2933

Merged
merged 10 commits into from
Apr 18, 2024
Prev Previous commit
Next Next commit
syntax: Optimize the patterns and remove the comment region
  • Loading branch information
JoeKar committed Apr 18, 2024
commit 4cafa601b5dba96beea59aad21d9e1574fc74c36
10 changes: 2 additions & 8 deletions runtime/syntax/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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,.]"