| 1350 | } |
| 1351 | |
| 1352 | static CBMLanguage lang_m_text(const char *buf) { |
| 1353 | if (has_objc_markers(buf)) { |
| 1354 | return CBM_LANG_OBJC; |
| 1355 | } |
| 1356 | if (has_magma_end_markers(buf)) { |
| 1357 | return CBM_LANG_MAGMA; |
| 1358 | } |
| 1359 | if ((str_contains(buf, "intrinsic ") || str_contains(buf, "procedure ")) && |
| 1360 | has_magma_callable_pattern(buf)) { |
| 1361 | return CBM_LANG_MAGMA; |
| 1362 | } |
| 1363 | if (has_matlab_line_markers(buf)) { |
| 1364 | return CBM_LANG_MATLAB; |
| 1365 | } |
| 1366 | |
| 1367 | return CBM_LANG_MATLAB; |
| 1368 | } |
| 1369 | |
| 1370 | CBMLanguage cbm_disambiguate_m(const char *path) { |
| 1371 | unsigned char head[LANG_PROBE_HEAD]; |
no test coverage detected