Does it matter that the enum [here](https://github.com/geany/geany/blob/ae1f499e3b2fa108d749942008431ec1aaf0294b...) does not go to level 5?
This is probably "correct" but extremely ugly. Those `K_CHAPTER` up to `K_LEVEL4SECTION` aren't used anywhere in the code, they are there just do define `SECTION_COUNT` which is used for
https://github.com/geany/geany/blob/ae1f499e3b2fa108d749942008431ec1aaf0294b...
and thanks to `SECTION_COUNT` (and missing `K_LEVEL5SECTION`) the following `K_ANCHOR` has the right index too. This thing would really deserve some cleanup.