geany/geany — comment on commit cc62732488420ab099e6aae80fc28580965cbdbe
File: src/document.c line 2472
By codebrainz:

Yep, "Returns: -1 if lexer doesn't support type keywords" and -1 is undefined/out of range for the next call. Good catch.