X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=mime-def.el;h=bb18d8e8af9a9bc27be3403c5fbe5019268d668a;hb=40a3ee44b7018c2f87a1bcd44c431b27cc95d8f2;hp=350e6685bd6ed2c510812bb658e00e0131842588;hpb=87a10837a51bcaee9d4a3a4f0bafe9276f0efcca;p=elisp%2Fflim.git diff --git a/mime-def.el b/mime-def.el index 350e668..bb18d8e 100644 --- a/mime-def.el +++ b/mime-def.el @@ -25,7 +25,7 @@ ;;; Code: (defconst mime-spadework-module-version-string - "FLIM 1.2.0 - \"J-Dþjò\" ")-A + "FLIM 1.3.0 - \"Fushimi\"") ;;; @ variables @@ -77,8 +77,29 @@ (substring string (match-end 0)) string)) +(defsubst regexp-* (regexp) + (concat regexp "*")) -;;; @ definitions about MIME +(defsubst regexp-or (&rest args) + (concat "\\(" (mapconcat (function identity) args "\\|") "\\)")) + + +;;; @ about STD 11 +;;; + +(defconst std11-quoted-pair-regexp "\\\\.") +(defconst std11-non-qtext-char-list '(?\" ?\\ ?\r ?\n)) +(defconst std11-qtext-regexp + (concat "[^" (char-list-to-string std11-non-qtext-char-list) "]")) +(defconst std11-quoted-string-regexp + (concat "\"" + (regexp-* + (regexp-or std11-qtext-regexp std11-quoted-pair-regexp) + ) + "\"")) + + +;;; @ about MIME ;;; (defconst mime-tspecials "][()<>@,\;:\\\"/?=")