• Alan Mackenzie's avatar
    CC Mode: Add a workaround for syntax-ppss ignoring syntax-table prop changes · 468517c8
    Alan Mackenzie authored
    * lisp/progmodes/cc-engine.el (c-truncate-lit-pos-cache): Maintain the new
    variable c-syntax-table-hwm after buffer changes.
    
    * lisp/progmodes/cc-mode.el (c-syntax-table-hwm): New variable.
    (c-before-change): Set c-syntax-table-hwm to "infinity".
    (c-after-change): Call syntax-ppss-flush-cache, just before a font locking is
    due to take place.
    468517c8
cc-mode.el 106 KB