ext/rbs_extension/lexstate.c in rbs-3.0.0.dev.1 vs ext/rbs_extension/lexstate.c in rbs-3.0.0.dev.2

- old
+ new

@@ -55,10 +55,12 @@ "kTRUE", /* true */ "kTYPE", /* type */ "kUNCHECKED", /* unchecked */ "kUNTYPED", /* untyped */ "kVOID", /* void */ + "kUSE", /* use */ + "kAS", /* as */ "tLIDENT", /* Identifiers starting with lower case */ "tUIDENT", /* Identifiers starting with upper case */ "tULIDENT", /* Identifiers starting with `_` */ "tULLIDENT", @@ -120,11 +122,11 @@ state->first_token_of_line = false; return t; } -void skip(lexstate *state) { +void rbs_skip(lexstate *state) { if (!state->last_char) { peek(state); } int byte_len = rb_enc_codelen(state->last_char, rb_enc_get(state->string)); @@ -141,10 +143,10 @@ } void skipn(lexstate *state, size_t size) { for (size_t i = 0; i < size; i ++) { peek(state); - skip(state); + rbs_skip(state); } } char *peek_token(lexstate *state, token tok) { return RSTRING_PTR(state->string) + tok.range.start.byte_pos;