projects
/
apt-sources-list.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correctly handle entries with “empty” suites
[apt-sources-list.git]
/
apt-sources-list.el
diff --git
a/apt-sources-list.el
b/apt-sources-list.el
index
881baa3
..
ed4c876
100644
(file)
--- a/
apt-sources-list.el
+++ b/
apt-sources-list.el
@@
-112,7
+112,7
@@
single “%s” which will be replaced with the source name."
(one-or-more (not (any " \t\n#"))))
(one-or-more blank)
(group
(one-or-more (not (any " \t\n#"))))
(one-or-more blank)
(group
- (or (and (
one
-or-more (not (any " \t\n#"))) "/")
+ (or (and (
zero
-or-more (not (any " \t\n#"))) "/")
(and (zero-or-more (not (any " \t\n#")))
(not (any " \t\n/#"))
(one-or-more blank)
(and (zero-or-more (not (any " \t\n#")))
(not (any " \t\n/#"))
(one-or-more blank)
@@
-362,6
+362,7
@@
is not a correctly-formatted APT source."
(setq-local comment-start-skip "#+ *")
(font-lock-add-keywords nil apt-sources-list-font-lock-keywords))
(setq-local comment-start-skip "#+ *")
(font-lock-add-keywords nil apt-sources-list-font-lock-keywords))
+;;;###autoload
(add-to-list
'auto-mode-alist
(cons (rx (or (and (any "./") "sources.list")
(add-to-list
'auto-mode-alist
(cons (rx (or (and (any "./") "sources.list")