skuro / plantuml-mode

A major mode for editing PlantUML sources in Emacs
GNU General Public License v3.0
511 stars 96 forks source link

Allow reinitialization of font lock regexps #145

Open exot opened 3 years ago

exot commented 3 years ago

In plantuml-mode, initialization of the font locking regular expressions is done by asking the current version of plantuml for its supported keywords, builtins, etc. Every so often, this might fail for any reason, leaving the current Emacs session with invalid font lock information for plantuml. Redoing the initialization process is tedious, as the corresponding function plantuml-init-once does not allow for that to be done easily (one would have to undefine a lot of global variables to do so).

This commit introduces a force parameter for plantuml-init-once to conduct reinitialization of all font lock information. It also moves regular expressions meant for indentation out of plantuml-init-once, as those are initialized by literal values that do not depend on any runtime information.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

exot commented 2 years ago

Bump to make stale-bot happy.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.