Fixed a bug...

This commit is contained in:
Ognjen Milan Robovic 2023-11-20 20:51:26 -05:00
parent aab26dedde
commit add6b442eb

View File

@ -91,9 +91,19 @@ int syntax_select (char * string, int * length) {
for (select = offset = 0; select != syntax_count; ++select) { for (select = offset = 0; select != syntax_count; ++select) {
if (syntax_enrange [select] == FALSE) { if (syntax_enrange [select] == FALSE) {
if (string_compare_limit (string, syntax_begin [select], string_length (syntax_begin [select])) == TRUE) { if (syntax_derange [select] == FALSE) {
break; if (string_compare_limit (string, syntax_begin [select], string_length (syntax_begin [select])) == TRUE) {
break;
}
} else {
if ((string_compare_limit (string, syntax_begin [select], string_length (syntax_begin [select])) == TRUE)
&& (character_compare_array (string [offset + string_length (syntax_begin [select])], syntax_end [select]) == TRUE)) {
break;
}
} }
/*if (string_compare_limit (string, syntax_begin [select], string_length (syntax_begin [select])) == TRUE) {
break;
}*/
} else { } else {
for (subset = 0; subset != string_length (syntax_begin [select]); ++subset) { for (subset = 0; subset != string_length (syntax_begin [select]); ++subset) {
if (string [offset] == syntax_begin [select] [subset]) { if (string [offset] == syntax_begin [select] [subset]) {