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