@@ -164,6 +164,7 @@ extern const TSLanguage *tree_sitter_apex(void);
164164extern const TSLanguage * tree_sitter_soql (void );
165165extern const TSLanguage * tree_sitter_sosl (void );
166166extern const TSLanguage * tree_sitter_pine (void );
167+ extern const TSLanguage * tree_sitter_mojo (void );
167168
168169// -- Empty sentinel --
169170static const char * empty_types [] = {NULL };
@@ -1596,6 +1597,21 @@ static const char *pine_var_types[] = {"variable_definition_statement",
15961597static const char * pine_branch_types [] = {"if_statement" , "switch_statement" , "for_statement" ,
15971598 "for_in_statement" , "while_statement" , NULL };
15981599static const char * pine_assign_types [] = {"reassignment_statement" , NULL };
1600+ static const char * mojo_func_types [] = {"function_definition" , NULL };
1601+ static const char * mojo_class_types [] = {"class_definition" , "trait_definition" , NULL };
1602+ static const char * mojo_module_types [] = {"module" , NULL };
1603+ static const char * mojo_call_types [] = {"call" , NULL };
1604+ static const char * mojo_import_types [] = {"import_statement" , "import_from_statement" ,
1605+ "future_import_statement" , NULL };
1606+ static const char * mojo_branch_types [] = {"if_statement" ,
1607+ "match_statement" ,
1608+ "for_statement" ,
1609+ "while_statement" ,
1610+ "try_statement" ,
1611+ "with_statement" ,
1612+ NULL };
1613+ static const char * mojo_var_types [] = {"assignment" , NULL };
1614+ static const char * mojo_assign_types [] = {"assignment" , "augmented_assignment" , NULL };
15991615// ==================== SPEC TABLE ====================
16001616
16011617static const CBMLangSpec lang_specs [CBM_LANG_COUNT ] = {
@@ -2571,6 +2587,12 @@ static const CBMLangSpec lang_specs[CBM_LANG_COUNT] = {
25712587 pine_branch_types , pine_var_types , pine_assign_types , empty_types , NULL ,
25722588 empty_types , NULL , NULL , tree_sitter_pine , NULL },
25732589
2590+ // CBM_LANG_MOJO
2591+ [CBM_LANG_MOJO ] = {CBM_LANG_MOJO , mojo_func_types , mojo_class_types , empty_types ,
2592+ mojo_module_types , mojo_call_types , mojo_import_types , mojo_import_types ,
2593+ mojo_branch_types , mojo_var_types , mojo_assign_types , empty_types , NULL ,
2594+ empty_types , NULL , NULL , tree_sitter_mojo , NULL },
2595+
25742596};
25752597
25762598_Static_assert (sizeof (lang_specs ) / sizeof (lang_specs [0 ]) == CBM_LANG_COUNT ,
0 commit comments