code: def _symbol_token_end(c, ctx, is_field_name, value=None):
      
      if value is None:
          value = ctx.value
      if is_field_name or c in _SYMBOL_TOKEN_TERMINATORS or ctx.quoted_text:
          # This might be an annotation or a field name. Mark it as self-delimiting because a symbol token termination
          # character has been found.
          ctx.set_self_delimiting(ctx.quoted_text).set_pending_symbol(value).set_quoted_text(False)
          trans = ctx.immediate_transition(ctx.whence)
      else:
          trans = ctx.event_transition(IonEvent, IonEventType.SCALAR, IonType.SYMBOL, _as_symbol(value))
      return trans
docs: Returns a transition which ends the current symbol token.