mirror of
https://github.com/ruby/ruby.git
synced 2026-07-31 06:33:39 +08:00
Fix indents in Onigmo files to use spaces instead of tabs (#14047) [no ci]
This commit is contained in:
parent
30f661951b
commit
e02c892ade
6
regenc.c
6
regenc.c
@ -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';
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user