[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tNFA 5463a53 07/23: Bug-fix to \{...\} postfix operator
From: |
Stefan Monnier |
Subject: |
[elpa] externals/tNFA 5463a53 07/23: Bug-fix to \{...\} postfix operator processing in tNFA--from-regexp |
Date: |
Mon, 14 Dec 2020 12:08:28 -0500 (EST) |
branch: externals/tNFA
commit 5463a535a78088ea7cd58e18240becc7c9346485
Author: Toby Cubitt <toby-predictive@dr-qubit.org>
Commit: tsc25 <toby-predictive@dr-qubit.org>
Bug-fix to \{...\} postfix operator processing in tNFA--from-regexp
---
tNFA.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tNFA.el b/tNFA.el
index 87847b5..d8bae16 100644
--- a/tNFA.el
+++ b/tNFA.el
@@ -478,7 +478,7 @@ individual elements of STRING are identical. The default is
`eq'."
(error "Syntax error in regexp: \"(?\" matched with \")\""))
;; syntax error: postfix operator not after atom
- ((or (eq type 'postfix*) (eq type 'postfix+) (eq type 'postfix?))
+ ((eq type 'postfix)
(error "Syntax error in regexp: unexpected \"%s\""
(char-to-string token)))
@@ -658,7 +658,9 @@ individual elements of STRING are identical. The default is
`eq'."
;; prepare for next iteration
(decf (car token))
(when (cdr token) (decf (cdr token)))
- (setq fragment copy))
+ (if (eq (cdr token) 0)
+ (setq fragment nil)
+ (setq fragment copy)))
)))
- [elpa] externals/tNFA 664c98e 20/23: Remove ChangeLogs from library headers., (continued)
- [elpa] externals/tNFA 664c98e 20/23: Remove ChangeLogs from library headers., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 892122c 23/23: Tidy up unnecessary macros by making them into defsubst or defun., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA c9f0989 04/23: Converted transition hash tables to alists, Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 74b68dd 16/23: Updated copyright attribution and license (GPL2 -> GPL3)., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 241dd74 03/23: Bug-fix in tNFA--from-regexp; added public tNFA-group-data function., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 9e1ca74 13/23: Added changelog entries, and bumped tNFA version number., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 83ab8b3 10/23: Re-filled to 72 chars/line, for mailing to gnu-emacs-sources list, Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA b457403 14/23: Trivial docstring and comment fixes., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 1af1e58 22/23: Implement trie-fuzzy-match and trie-fuzzy-complete functions., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 7b44eeb 02/23: Bug-fix in tNFA--from-regexp: add tag transitions *outside* their group fragment,, Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 5463a53 07/23: Bug-fix to \{...\} postfix operator processing in tNFA--from-regexp,
Stefan Monnier <=
- [elpa] externals/tNFA 4771c2f 12/23: Redefined tNFA--NFA-state-create and tNFA--NFA-state-create-tag using defun, Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 5f3bdf7 21/23: Enable lexical binding, and fix issues it picks up., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 7e38f4c 19/23: Add missing autoload cookies., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 454c544 09/23: Added commentary, Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 9a742f6 01/23: Implementation of tagged non-deterministic finite state automata, for regular expression matching, Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA b035e48 11/23: Removed left-over debugging code and other minor tidying., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA ff30781 18/23: More minor whitespace and commentary changes., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA c5004e1 08/23: Updated docstrings for regexp-related functions and others., Stefan Monnier, 2020/12/14
- [elpa] externals/tNFA 87c6223 15/23: Updated Package-Version, Package-Requires, and Keywords package headers., Stefan Monnier, 2020/12/14