+{
- TMParserMap *map = &parser_map[lang];
- guint i;
- for (i = 0; i < map->size; i++)
- {
TMParserMapEntry *entry = &map->entries[i];
if (entry->type == type)
return entry->kind;
- }
- return '-';
+}
+void tm_parser_verify_type_mappings(void)
I don't really worry about checks taking up time, I rather worry about issues not getting noticed because they are a mere runtime warning. Having them run on `make check` and error-out will make Travis and `make dist` fail if they fail, so they should never get unnoticed.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/957/files/aea7d7845917843dd6b02e5a8dc903...