Fixed a bug...
This commit is contained in:
parent
aab26dedde
commit
add6b442eb
14
xyntax.c
14
xyntax.c
@ -91,9 +91,19 @@ int syntax_select (char * string, int * length) {
|
||||
|
||||
for (select = offset = 0; select != syntax_count; ++select) {
|
||||
if (syntax_enrange [select] == FALSE) {
|
||||
if (string_compare_limit (string, syntax_begin [select], string_length (syntax_begin [select])) == TRUE) {
|
||||
break;
|
||||
if (syntax_derange [select] == FALSE) {
|
||||
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 {
|
||||
for (subset = 0; subset != string_length (syntax_begin [select]); ++subset) {
|
||||
if (string [offset] == syntax_begin [select] [subset]) {
|
||||
|
Loading…
Reference in New Issue
Block a user