guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: Add emacs-pcre2el.


From: Pierre Neidhardt
Subject: 01/02: gnu: Add emacs-pcre2el.
Date: Wed, 1 Aug 2018 07:06:53 -0400 (EDT)

ambrevar pushed a commit to branch master
in repository guix.

commit d5af41cd0190f6e712d2f71108760d5df4d45674
Author: Pierre Neidhardt <address@hidden>
Date:   Wed Aug 1 12:59:27 2018 +0200

    gnu: Add emacs-pcre2el.
    
    * gnu/packages/emacs.scm (emacs-pcre2el): New variable.
---
 gnu/packages/emacs.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index e607337..0c94bf0 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -11573,3 +11573,39 @@ value.  For directories where the user doesn't have 
read permission, the
 recursive size is not obtained.  Once this mode is enabled, every new Dired
 buffer displays recursive dir sizes.")
     (license license:gpl3+)))
+
+(define-public emacs-pcre2el
+  ;; Last release is very old so we get the latest commit.
+  (let ((commit "0b5b2a2c173aab3fd14aac6cf5e90ad3bf58fa7d"))
+    (package
+      (name "emacs-pcre2el")
+      (version (git-version "1.8" "1" commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/joddie/pcre2el";)
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "14br6ad138qx1z822wqssswqiihxiynz1k69p6mcdisr2q8yyi1z"))))
+      (build-system emacs-build-system)
+      (home-page "https://github.com/joddie/pcre2el";)
+      (synopsis "Convert between PCRE, Emacs and rx regexp syntax")
+      (description "@code{pcre2el} or @code{rxt} (RegeXp Translator or RegeXp
+Tools) is a utility for working with regular expressions in Emacs, based on a
+recursive-descent parser for regexp syntax.  In addition to converting (a
+subset of) PCRE syntax into its Emacs equivalent, it can do the following:
+
address@hidden
address@hidden convert Emacs syntax to PCRE
address@hidden convert either syntax to @code{rx}, an S-expression based regexp 
syntax
address@hidden untangle complex regexps by showing the parse tree in @code{rx} 
form and
+highlighting the corresponding chunks of code
address@hidden show the complete list of strings (productions) matching a 
regexp,
+provided the list is finite
address@hidden provide live font-locking of regexp syntax (so far only for Elisp
+buffers – other modes on the TODO list).
address@hidden itemize\n")
+      (license license:gpl3))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]