]> git.eshelyaron.com Git - emacs.git/commit
semantic: Fix wisent parser recursion
authorMartin Stein <Martin.Stein.Math@gmx.net>
Mon, 16 Feb 2015 14:01:12 +0000 (09:01 -0500)
committerDavid Engster <deng@randomsample.de>
Fri, 20 Jan 2017 21:59:45 +0000 (22:59 +0100)
commitf11e08ff7208a8e71962c1cdc569d63fa0b09211
tree01bbfa1574e48522da6b31599ffe8832ac9d524e
parent307b510f7609b6a26a5a120b2f11cffb7453c859
semantic: Fix wisent parser recursion

* lisp/cedet/semantic/wisent/wisent.el (wisent-parse): The semantic
 action might be an EXPAND, EXPANDFULL or some similar action calling
 the parser recursively. If the last token of the recursively called
 parsing step failed to match it ends up in wisent-lookahead, and
 function wisent-parse-stream pushs it back onto
 wisent-lex-istream. From there on it simply ends up occuring twice on
 the unmatched-syntax-cache, or worse might even lead to parse errors
 in rare cases.

Copyright-paperwork-exempt: yes
lisp/cedet/semantic/wisent/wisent.el