:property and :invert-property scanning bug fix.
In convert-compound-parse-tree methods for property and
inverted-property, declare accumulate-start-p sepecial and setq it
to nil.
This commit is contained in:
@ -701,11 +701,15 @@ Also used for inverted char classes when INVERTEDP is true."
|
|||||||
(defmethod convert-compound-parse-tree ((token (eql :property)) parse-tree &key)
|
(defmethod convert-compound-parse-tree ((token (eql :property)) parse-tree &key)
|
||||||
"The case for \(:PROPERTY <name>) where <name> is a string."
|
"The case for \(:PROPERTY <name>) where <name> is a string."
|
||||||
(declare #.*standard-optimize-settings*)
|
(declare #.*standard-optimize-settings*)
|
||||||
|
(declare (special accumulate-start-p))
|
||||||
|
(setq accumulate-start-p nil)
|
||||||
(make-instance 'char-class :test-function (resolve-property (second parse-tree))))
|
(make-instance 'char-class :test-function (resolve-property (second parse-tree))))
|
||||||
|
|
||||||
(defmethod convert-compound-parse-tree ((token (eql :inverted-property)) parse-tree &key)
|
(defmethod convert-compound-parse-tree ((token (eql :inverted-property)) parse-tree &key)
|
||||||
"The case for \(:INVERTED-PROPERTY <name>) where <name> is a string."
|
"The case for \(:INVERTED-PROPERTY <name>) where <name> is a string."
|
||||||
(declare #.*standard-optimize-settings*)
|
(declare #.*standard-optimize-settings*)
|
||||||
|
(declare (special accumulate-start-p))
|
||||||
|
(setq accumulate-start-p nil)
|
||||||
(make-instance 'char-class :test-function (complement* (resolve-property (second parse-tree)))))
|
(make-instance 'char-class :test-function (complement* (resolve-property (second parse-tree)))))
|
||||||
|
|
||||||
(defmethod convert-compound-parse-tree ((token (eql :flags)) parse-tree &key)
|
(defmethod convert-compound-parse-tree ((token (eql :flags)) parse-tree &key)
|
||||||
|
|||||||
Reference in New Issue
Block a user