emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/lex cd89324 6/7: * packages/gnome-c-style/gnome-c-tests


From: Stefan Monnier
Subject: [elpa] externals/lex cd89324 6/7: * packages/gnome-c-style/gnome-c-tests.el: Add copyright blurb
Date: Tue, 1 Dec 2020 16:18:11 -0500 (EST)

branch: externals/lex
commit cd89324f9117ad08acd9352ea9c19a893b3dfb78
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * packages/gnome-c-style/gnome-c-tests.el: Add copyright blurb
---
 lex.el | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lex.el b/lex.el
index bd84f58..6ba8123 100644
--- a/lex.el
+++ b/lex.el
@@ -1,6 +1,6 @@
 ;;; lex.el --- Lexical analyser construction  -*- lexical-binding:t -*-
 
-;; Copyright (C) 2008,2013,2014  Free Software Foundation, Inc.
+;; Copyright (C) 2008,2013,2014,2015  Free Software Foundation, Inc.
 
 ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
 ;; Keywords:
@@ -918,7 +918,15 @@ Returns a new NFA."
 
     res))
 
+;;;###autoload
 (defun lex-compile (alist)
+  "Compile a set of regular expressions.
+ALIST is a list of elements of the form (REGEXP . VALUE).
+The compiled automaton will match all those regexps at the same time
+and will return the VALUE fof the leftmost longest match.
+
+Each REGEXP object should be in the sexp form described in the
+Commentary section."
   (lex--dfa-wrapper
    (lambda ()
      (let* ((lex--char-equiv-table



reply via email to

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