- const int bindCount = sizeof(bindTags) / sizeof(keyword_item);
-
- Lexer lexrc(bindTags, bindCount);
+ enum {
+ BN_BIND,
+ BN_BINDFILE,
+ BN_UNBIND,
+ };
+
+ LexerKeyword bindTags[] = {
+ { "\\bind", BN_BIND },
+ { "\\bind_file", BN_BINDFILE },
+ { "\\unbind", BN_UNBIND },
+ };
+
+ Lexer lexrc(bindTags);