• Alan Mackenzie's avatar
    Detect when we hit limit in backward search in c-just-after-func-arglist-p · 23938680
    Alan Mackenzie authored
    This fixes a bug reported by Yasushi SHOJI <yasushi.shoji@gmail.com> to
    emacs-devel on 2018-11-26, where wrong analysis and fontification occurred.
    
    * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): Add new parameter
    HIT-LIM which, if non-nil causes the function to return nil rather than 'same
    when we reach the backward search limit without finding the beginning of
    statement.
    (c-just-after-func-arglist-p): Supply argument t to this new parameter in call
    to c-beginning-of-statement-1.
    23938680
cc-engine.el 484 KB