In tagmanager/src/tm_parser.c:
> +{ > + 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)
Forgot to mention - the check is really cheap. I tested it both on my normal machine where for all the languages the check took 10-20 microseconds and on Raspberry 3 it took 100-200 microseconds and even if we add more languages and types, it will probably always be below 1ms and completely invisible to user.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub