X-Git-Url: https://git.korewanetadesu.com/?p=apt-sources-list.git;a=blobdiff_plain;f=apt-sources-list.el;h=ed4c876fb1651c81fff1297af13c64fb7441081d;hp=881baa3cc385ad50226e0194aeebe90c3bcf2aa3;hb=44112833b3fa7f4d7e43708e5996782e22bb2fa3;hpb=842c3896f660295e4c16938aa1fd195e5d377460 diff --git a/apt-sources-list.el b/apt-sources-list.el index 881baa3..ed4c876 100644 --- 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 - (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) @@ -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)) +;;;###autoload (add-to-list 'auto-mode-alist (cons (rx (or (and (any "./") "sources.list")