ruby-changes:62017
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Mon, 29 Jun 2020 11:07:34 +0900 (JST)
Subject: [ruby-changes:62017] 08fc718e8c (master): indent [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=08fc718e8c From 08fc718e8c3a949c17d2b894a441ef183c28d8ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Fri, 19 Jun 2020 10:47:46 +0900 Subject: indent [ci skip] diff --git a/symbol.c b/symbol.c index b40af88..e9f0942 100644 --- a/symbol.c +++ b/symbol.c @@ -321,28 +321,28 @@ rb_enc_symname_type(const char *name, long len, rb_encoding *enc, unsigned int a https://github.com/ruby/ruby/blob/trunk/symbol.c#L321 goto stophere; id: - if (m >= e || (*m != '_' && !ISALPHA(*m) && ISASCII(*m))) { - if (len > 1 && *(e-1) == '=') { - type = rb_enc_symname_type(name, len-1, enc, allowed_attrset); - if (type != ID_ATTRSET) return ID_ATTRSET; - } - return -1; - } - while (m < e && is_identchar(m, e, enc)) m += rb_enc_mbclen(m, e, enc); - if (m >= e) goto stophere; - switch (*m) { - case '!': case '?': - if (type == ID_GLOBAL || type == ID_CLASS || type == ID_INSTANCE) return -1; - type = ID_JUNK; - ++m; - if (m + 1 < e || *m != '=') break; - /* fall through */ - case '=': - if (!(allowed_attrset & (1U << type))) return -1; - type = ID_ATTRSET; - ++m; - break; - } + if (m >= e || (*m != '_' && !ISALPHA(*m) && ISASCII(*m))) { + if (len > 1 && *(e-1) == '=') { + type = rb_enc_symname_type(name, len-1, enc, allowed_attrset); + if (type != ID_ATTRSET) return ID_ATTRSET; + } + return -1; + } + while (m < e && is_identchar(m, e, enc)) m += rb_enc_mbclen(m, e, enc); + if (m >= e) goto stophere; + switch (*m) { + case '!': case '?': + if (type == ID_GLOBAL || type == ID_CLASS || type == ID_INSTANCE) return -1; + type = ID_JUNK; + ++m; + if (m + 1 < e || *m != '=') break; + /* fall through */ + case '=': + if (!(allowed_attrset & (1U << type))) return -1; + type = ID_ATTRSET; + ++m; + break; + } stophere: return m == e ? type : -1; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/