Fix indents in Onigmo files to use spaces instead of tabs (#14047) [no ci]

This commit is contained in:
Hiroya Fujinami 2025-07-31 13:08:54 +09:00 committed by nagachika
parent 30f661951b
commit e02c892ade
7 changed files with 3737 additions and 3731 deletions

View File

@ -985,7 +985,8 @@ onigenc_ascii_only_case_map(OnigCaseFoldType* flagP, const OnigUChar** pp, const
if (code >= 'a' && code <= 'z' && (flags & ONIGENC_CASE_UPCASE)) {
flags |= ONIGENC_CASE_MODIFIED;
code += 'A' - 'a';
} else if (code >= 'A' && code <= 'Z' &&
}
else if (code >= 'A' && code <= 'Z' &&
(flags & (ONIGENC_CASE_DOWNCASE | ONIGENC_CASE_FOLD))) {
flags |= ONIGENC_CASE_MODIFIED;
code += 'a' - 'A';
@ -1013,7 +1014,8 @@ onigenc_single_byte_ascii_only_case_map(OnigCaseFoldType* flagP, const OnigUChar
if (code >= 'a' && code <= 'z' && (flags & ONIGENC_CASE_UPCASE)) {
flags |= ONIGENC_CASE_MODIFIED;
code += 'A' - 'a';
} else if (code >= 'A' && code <= 'Z' &&
}
else if (code >= 'A' && code <= 'Z' &&
(flags & (ONIGENC_CASE_DOWNCASE | ONIGENC_CASE_FOLD))) {
flags |= ONIGENC_CASE_MODIFIED;
code += 'a' - 'A';

View File

@ -6229,7 +6229,8 @@ is_onechar_cclass(CClassNode* cc, OnigCodePoint* code)
if (b1 != 0) {
if (((b1 & (b1 - 1)) == 0) && (c == not_found)) {
c = BITS_IN_ROOM * i + countbits(b1 - 1);
} else {
}
else {
return 0; /* the character class contains multiple chars */
}
}
@ -6684,7 +6685,10 @@ parse_subexp(Node** top, OnigToken* tok, int term,
headp = &(NCDR(*top));
while (r == TK_ALT) {
r = fetch_token(tok, src, end, env);
if (r < 0) return r;
if (r < 0) {
onig_node_free(node);
return r;
}
r = parse_branch(&node, tok, term, src, end, env);
if (r < 0) {
onig_node_free(node);